Project: engagement_test License: BSD Dependencies:
Used by:
None |
engagement_test/msg_gen/java/ros/pkg/engagement_msgs/msg/BCOccurrence.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/BCOccurrence.msg */ 00002 00003 package ros.pkg.engagement_msgs.msg; 00004 00005 import java.nio.ByteBuffer; 00006 00007 public class BCOccurrence 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.Behavior behavior = new ros.pkg.bml_msgs.msg.Behavior(); 00011 public ros.pkg.bml_msgs.msg.Flag result = new ros.pkg.bml_msgs.msg.Flag(); 00012 00013 public BCOccurrence() { 00014 } 00015 00016 public static java.lang.String __s_getDataType() { return "engagement_msgs/BCOccurrence"; } 00017 public java.lang.String getDataType() { return __s_getDataType(); } 00018 public static java.lang.String __s_getMD5Sum() { return "7a25d6513316e6c452a8b6253aa95538"; } 00019 public java.lang.String getMD5Sum() { return __s_getMD5Sum(); } 00020 public static java.lang.String __s_getMessageDefinition() { return "# this message is used for referring to when a backchannel happened during a CCA\n" + 00021 "ActorID actor\n" + 00022 "bml_msgs/Behavior behavior\n" + 00023 "bml_msgs/Flag result\n" + 00024 "\n" + 00025 "================================================================================\n" + 00026 "MSG: engagement_msgs/ActorID\n" + 00027 "# Unique string identifier for the actor\n" + 00028 "string id\n" + 00029 "\n" + 00030 "# Constant to identify the Robot as the actor\n" + 00031 "string ROBOT=ROBOT\n" + 00032 "================================================================================\n" + 00033 "MSG: bml_msgs/Behavior\n" + 00034 "# this message type contains the information for basic behavior types\n" + 00035 "\n" + 00036 "#constants for the synch point\n" + 00037 "uint8 START=0\n" + 00038 "uint8 READY=1\n" + 00039 "uint8 STROKE_START=2\n" + 00040 "uint8 STROKE=3\n" + 00041 "uint8 STROKE_END=4\n" + 00042 "uint8 RELAX=5\n" + 00043 "uint8 END=6\n" + 00044 "\n" + 00045 "# the fields\n" + 00046 "string id\n" + 00047 "uint8 synchPoint\n" + 00048 "\n" + 00049 "================================================================================\n" + 00050 "MSG: bml_msgs/Flag\n" + 00051 "# A flag which determines between TRUE and FALSE\n" + 00052 "int8 value\n" + 00053 "\n" + 00054 "# Constant for an invalid value\n" + 00055 "int8 INVALID=-1\n" + 00056 "\n" + 00057 "# Constants which define the values for true\n" + 00058 "int8 TRUE=1\n" + 00059 "int8 START=1\n" + 00060 "int8 BEGIN=1\n" + 00061 "int8 SUCCESS=1\n" + 00062 "int8 DONE=1\n" + 00063 "\n" + 00064 "# Constants which define the values for false\n" + 00065 "int8 FALSE=0\n" + 00066 "int8 STOP=0\n" + 00067 "int8 END=0\n" + 00068 "int8 FAILURE=0\n" + 00069 "int8 NOT_DONE=0\n" + 00070 "\n" + 00071 "# Constants for response types\n" + 00072 "int8 OPTIONAL_RESPONSE=0\n" + 00073 "int8 IS_A_RESPONSE=1\n" + 00074 "int8 REQUIRES_RESPONSE=2\n" + 00075 "int8 BACKCHANNEL=3\n" + 00076 "\n" + 00077 "# Constants which define the values for the side to use\n" + 00078 "int8 NEITHER=0\n" + 00079 "int8 LEFT=1\n" + 00080 "int8 RIGHT=2\n" + 00081 "int8 EITHER=3\n" + 00082 "\n" + 00083 ""; } 00084 public java.lang.String getMessageDefinition() { return __s_getMessageDefinition(); } 00085 00086 public BCOccurrence clone() { 00087 BCOccurrence c = new BCOccurrence(); 00088 c.deserialize(serialize(0)); 00089 return c; 00090 } 00091 00092 public void setTo(ros.communication.Message m) { 00093 deserialize(m.serialize(0)); 00094 } 00095 00096 public int serializationLength() { 00097 int __l = 0; 00098 __l += actor.serializationLength(); 00099 __l += behavior.serializationLength(); 00100 __l += result.serializationLength(); 00101 return __l; 00102 } 00103 00104 public void serialize(ByteBuffer bb, int seq) { 00105 actor.serialize(bb, seq); 00106 behavior.serialize(bb, seq); 00107 result.serialize(bb, seq); 00108 } 00109 00110 public void deserialize(ByteBuffer bb) { 00111 actor.deserialize(bb); 00112 behavior.deserialize(bb); 00113 result.deserialize(bb); 00114 } 00115 00116 @SuppressWarnings("all") 00117 public boolean equals(Object o) { 00118 if(!(o instanceof BCOccurrence)) 00119 return false; 00120 BCOccurrence other = (BCOccurrence) o; 00121 return 00122 actor.equals(other.actor) && 00123 behavior.equals(other.behavior) && 00124 result.equals(other.result) && 00125 true; 00126 } 00127 00128 @SuppressWarnings("all") 00129 public int hashCode() { 00130 final int prime = 31; 00131 int result = 1; 00132 long tmp; 00133 result = prime * result + (this.actor == null ? 0 : this.actor.hashCode()); 00134 result = prime * result + (this.behavior == null ? 0 : this.behavior.hashCode()); 00135 result = prime * result + (this.result == null ? 0 : this.result.hashCode()); 00136 return result; 00137 } 00138 } // class BCOccurrence 00139 |