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