Project: engagement_generation License: BSD Dependencies:
Used by:
None |
engagement_generation/msg_gen/java/ros/pkg/bml_msgs/msg/Behavior.javaGo to the documentation of this file.00001 /* Auto-generated by genmsg_java.py for file /home/mel/workspace/ros_stacks/bml/bml_msgs/msg/Behavior.msg */ 00002 00003 package ros.pkg.bml_msgs.msg; 00004 00005 import java.nio.ByteBuffer; 00006 00007 public class Behavior extends ros.communication.Message { 00008 static public final short START = 0; 00009 static public final short READY = 1; 00010 static public final short STROKE_START = 2; 00011 static public final short STROKE = 3; 00012 static public final short STROKE_END = 4; 00013 static public final short RELAX = 5; 00014 static public final short END = 6; 00015 00016 public java.lang.String id = new java.lang.String(); 00017 public short synchPoint; 00018 00019 public Behavior() { 00020 } 00021 00022 public static java.lang.String __s_getDataType() { return "bml_msgs/Behavior"; } 00023 public java.lang.String getDataType() { return __s_getDataType(); } 00024 public static java.lang.String __s_getMD5Sum() { return "f1baba6970add2dea20242587ba6e2ce"; } 00025 public java.lang.String getMD5Sum() { return __s_getMD5Sum(); } 00026 public static java.lang.String __s_getMessageDefinition() { return "# this message type contains the information for basic behavior types\n" + 00027 "\n" + 00028 "#constants for the synch point\n" + 00029 "uint8 START=0\n" + 00030 "uint8 READY=1\n" + 00031 "uint8 STROKE_START=2\n" + 00032 "uint8 STROKE=3\n" + 00033 "uint8 STROKE_END=4\n" + 00034 "uint8 RELAX=5\n" + 00035 "uint8 END=6\n" + 00036 "\n" + 00037 "# the fields\n" + 00038 "string id\n" + 00039 "uint8 synchPoint\n" + 00040 "\n" + 00041 ""; } 00042 public java.lang.String getMessageDefinition() { return __s_getMessageDefinition(); } 00043 00044 public Behavior clone() { 00045 Behavior c = new Behavior(); 00046 c.deserialize(serialize(0)); 00047 return c; 00048 } 00049 00050 public void setTo(ros.communication.Message m) { 00051 deserialize(m.serialize(0)); 00052 } 00053 00054 public int serializationLength() { 00055 int __l = 0; 00056 __l += 4 + id.length(); 00057 __l += 1; // synchPoint 00058 return __l; 00059 } 00060 00061 public void serialize(ByteBuffer bb, int seq) { 00062 Serialization.writeString(bb, id); 00063 bb.put((byte)synchPoint); 00064 } 00065 00066 public void deserialize(ByteBuffer bb) { 00067 id = Serialization.readString(bb); 00068 synchPoint = (short)(bb.get() & 0xff); 00069 } 00070 00071 @SuppressWarnings("all") 00072 public boolean equals(Object o) { 00073 if(!(o instanceof Behavior)) 00074 return false; 00075 Behavior other = (Behavior) o; 00076 return 00077 id.equals(other.id) && 00078 synchPoint == other.synchPoint && 00079 true; 00080 } 00081 00082 @SuppressWarnings("all") 00083 public int hashCode() { 00084 final int prime = 31; 00085 int result = 1; 00086 long tmp; 00087 result = prime * result + (this.id == null ? 0 : this.id.hashCode()); 00088 result = prime * result + this.synchPoint; 00089 return result; 00090 } 00091 } // class Behavior 00092 |