Project: engagement_generation License: BSD Dependencies:
Used by:
None |
engagement_generation/msg_gen/java/ros/pkg/engagement_msgs/msg/Speech.javaGo to the documentation of this file.00001 /* Auto-generated by genmsg_java.py for file /home/mel/workspace/ros_stacks/engagement/engagement_msgs/msg/Speech.msg */ 00002 00003 package ros.pkg.engagement_msgs.msg; 00004 00005 import java.nio.ByteBuffer; 00006 00007 public class Speech extends ros.communication.Message { 00008 00009 public ros.pkg.engagement_msgs.msg.ActorID actor = new ros.pkg.engagement_msgs.msg.ActorID(); 00010 public ros.pkg.bml_msgs.msg.Flag begin = new ros.pkg.bml_msgs.msg.Flag(); 00011 public ros.pkg.bml_msgs.msg.Flag response = new ros.pkg.bml_msgs.msg.Flag(); 00012 00013 public Speech() { 00014 } 00015 00016 public static java.lang.String __s_getDataType() { return "engagement_msgs/Speech"; } 00017 public java.lang.String getDataType() { return __s_getDataType(); } 00018 public static java.lang.String __s_getMD5Sum() { return "8c7d1df4646faab3f0225cf87204bdbc"; } 00019 public java.lang.String getMD5Sum() { return __s_getMD5Sum(); } 00020 public static java.lang.String __s_getMessageDefinition() { return "# Unique string identifier for the actor who is giving up the floor\n" + 00021 "ActorID actor\n" + 00022 "\n" + 00023 "# A flag which determines between BEGIN and END\n" + 00024 "bml_msgs/Flag begin\n" + 00025 "\n" + 00026 "# Whether this utterance requires a response or not\n" + 00027 "bml_msgs/Flag response\n" + 00028 "================================================================================\n" + 00029 "MSG: engagement_msgs/ActorID\n" + 00030 "# Unique string identifier for the actor\n" + 00031 "string id\n" + 00032 "\n" + 00033 "# Constant to identify the Robot as the actor\n" + 00034 "string ROBOT=ROBOT\n" + 00035 "================================================================================\n" + 00036 "MSG: bml_msgs/Flag\n" + 00037 "# A flag which determines between TRUE and FALSE\n" + 00038 "int8 value\n" + 00039 "\n" + 00040 "# Constant for an invalid value\n" + 00041 "int8 INVALID=-1\n" + 00042 "\n" + 00043 "# Constants which define the values for true\n" + 00044 "int8 TRUE=1\n" + 00045 "int8 START=1\n" + 00046 "int8 BEGIN=1\n" + 00047 "int8 SUCCESS=1\n" + 00048 "int8 DONE=1\n" + 00049 "\n" + 00050 "# Constants which define the values for false\n" + 00051 "int8 FALSE=0\n" + 00052 "int8 STOP=0\n" + 00053 "int8 END=0\n" + 00054 "int8 FAILURE=0\n" + 00055 "int8 NOT_DONE=0\n" + 00056 "\n" + 00057 "# Constants for response types\n" + 00058 "int8 OPTIONAL_RESPONSE=0\n" + 00059 "int8 IS_A_RESPONSE=1\n" + 00060 "int8 REQUIRES_RESPONSE=2\n" + 00061 "int8 BACKCHANNEL=3\n" + 00062 "\n" + 00063 "# Constants which define the values for the side to use\n" + 00064 "int8 NEITHER=0\n" + 00065 "int8 LEFT=1\n" + 00066 "int8 RIGHT=2\n" + 00067 "int8 EITHER=3\n" + 00068 "\n" + 00069 ""; } 00070 public java.lang.String getMessageDefinition() { return __s_getMessageDefinition(); } 00071 00072 public Speech clone() { 00073 Speech c = new Speech(); 00074 c.deserialize(serialize(0)); 00075 return c; 00076 } 00077 00078 public void setTo(ros.communication.Message m) { 00079 deserialize(m.serialize(0)); 00080 } 00081 00082 public int serializationLength() { 00083 int __l = 0; 00084 __l += actor.serializationLength(); 00085 __l += begin.serializationLength(); 00086 __l += response.serializationLength(); 00087 return __l; 00088 } 00089 00090 public void serialize(ByteBuffer bb, int seq) { 00091 actor.serialize(bb, seq); 00092 begin.serialize(bb, seq); 00093 response.serialize(bb, seq); 00094 } 00095 00096 public void deserialize(ByteBuffer bb) { 00097 actor.deserialize(bb); 00098 begin.deserialize(bb); 00099 response.deserialize(bb); 00100 } 00101 00102 @SuppressWarnings("all") 00103 public boolean equals(Object o) { 00104 if(!(o instanceof Speech)) 00105 return false; 00106 Speech other = (Speech) o; 00107 return 00108 actor.equals(other.actor) && 00109 begin.equals(other.begin) && 00110 response.equals(other.response) && 00111 true; 00112 } 00113 00114 @SuppressWarnings("all") 00115 public int hashCode() { 00116 final int prime = 31; 00117 int result = 1; 00118 long tmp; 00119 result = prime * result + (this.actor == null ? 0 : this.actor.hashCode()); 00120 result = prime * result + (this.begin == null ? 0 : this.begin.hashCode()); 00121 result = prime * result + (this.response == null ? 0 : this.response.hashCode()); 00122 return result; 00123 } 00124 } // class Speech 00125 |