Project: engagement_generation License: BSD Dependencies:
Used by:
None |
engagement_generation/msg_gen/java/ros/pkg/engagement_msgs/msg/Performance.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/Performance.msg */ 00002 00003 package ros.pkg.engagement_msgs.msg; 00004 00005 import java.nio.ByteBuffer; 00006 00007 public class Performance 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 float[] prob = new float[0]; 00012 public java.util.ArrayList<ros.pkg.bml_msgs.msg.Entity> objects = new java.util.ArrayList<ros.pkg.bml_msgs.msg.Entity>(); 00013 00014 public Performance() { 00015 } 00016 00017 public static java.lang.String __s_getDataType() { return "engagement_msgs/Performance"; } 00018 public java.lang.String getDataType() { return __s_getDataType(); } 00019 public static java.lang.String __s_getMD5Sum() { return "c36e931d173db44349ed85e8abf79f39"; } 00020 public java.lang.String getMD5Sum() { return __s_getMD5Sum(); } 00021 public static java.lang.String __s_getMessageDefinition() { return "# The identifier for the actor\n" + 00022 "ActorID actor\n" + 00023 "\n" + 00024 "# A flag which determines between BEGIN and END\n" + 00025 "bml_msgs/Flag begin\n" + 00026 "\n" + 00027 "# The probability associated with this Gesture\n" + 00028 "float32[] prob\n" + 00029 "\n" + 00030 "# The sequence of objects\n" + 00031 "bml_msgs/Entity[] objects\n" + 00032 "================================================================================\n" + 00033 "MSG: engagement_msgs/ActorID\n" + 00034 "# Unique string identifier for the actor\n" + 00035 "string id\n" + 00036 "\n" + 00037 "# Constant to identify the Robot as the actor\n" + 00038 "string ROBOT=ROBOT\n" + 00039 "================================================================================\n" + 00040 "MSG: bml_msgs/Flag\n" + 00041 "# A flag which determines between TRUE and FALSE\n" + 00042 "int8 value\n" + 00043 "\n" + 00044 "# Constant for an invalid value\n" + 00045 "int8 INVALID=-1\n" + 00046 "\n" + 00047 "# Constants which define the values for true\n" + 00048 "int8 TRUE=1\n" + 00049 "int8 START=1\n" + 00050 "int8 BEGIN=1\n" + 00051 "int8 SUCCESS=1\n" + 00052 "int8 DONE=1\n" + 00053 "\n" + 00054 "# Constants which define the values for false\n" + 00055 "int8 FALSE=0\n" + 00056 "int8 STOP=0\n" + 00057 "int8 END=0\n" + 00058 "int8 FAILURE=0\n" + 00059 "int8 NOT_DONE=0\n" + 00060 "\n" + 00061 "# Constants for response types\n" + 00062 "int8 OPTIONAL_RESPONSE=0\n" + 00063 "int8 IS_A_RESPONSE=1\n" + 00064 "int8 REQUIRES_RESPONSE=2\n" + 00065 "int8 BACKCHANNEL=3\n" + 00066 "\n" + 00067 "# Constants which define the values for the side to use\n" + 00068 "int8 NEITHER=0\n" + 00069 "int8 LEFT=1\n" + 00070 "int8 RIGHT=2\n" + 00071 "int8 EITHER=3\n" + 00072 "\n" + 00073 "================================================================================\n" + 00074 "MSG: bml_msgs/Entity\n" + 00075 "#The following constants represent all possible salient objects\n" + 00076 "uint8 OBJECT=0\n" + 00077 "uint8 HAND=1\n" + 00078 "uint8 FACE=2\n" + 00079 "uint8 QUADRANT=3\n" + 00080 "uint8 UNKNOWN=4\n" + 00081 "\n" + 00082 "# Constants for the upper quadrants\n" + 00083 "string UP_LEFT=UP_LEFT\n" + 00084 "string UP_FRONT=UP_FRONT\n" + 00085 "string UP_RIGHT=UP_RIGHT\n" + 00086 "\n" + 00087 "# Constants for the middle quadrants\n" + 00088 "string STRAIGHT_LEFT=STRAIGHT_LEFT\n" + 00089 "string STRAIGHT_FRONT=STRAIGHT_FRONT\n" + 00090 "string STRAIGHT_RIGHT=STRAIGHT_RIGHT\n" + 00091 "\n" + 00092 "# Constants for the lower quadrants\n" + 00093 "string DOWN_LEFT=DOWN_LEFT\n" + 00094 "string DOWN_FRONT=DOWN_FRONT\n" + 00095 "string DOWN_RIGHT=DOWN_RIGHT\n" + 00096 "\n" + 00097 "#there is just one field for type\n" + 00098 "uint8 type\n" + 00099 "\n" + 00100 "# The id of the object\n" + 00101 "string id\n" + 00102 "\n" + 00103 ""; } 00104 public java.lang.String getMessageDefinition() { return __s_getMessageDefinition(); } 00105 00106 public Performance clone() { 00107 Performance c = new Performance(); 00108 c.deserialize(serialize(0)); 00109 return c; 00110 } 00111 00112 public void setTo(ros.communication.Message m) { 00113 deserialize(m.serialize(0)); 00114 } 00115 00116 public int serializationLength() { 00117 int __l = 0; 00118 __l += actor.serializationLength(); 00119 __l += begin.serializationLength(); 00120 __l += 4 + prob.length * 4; // prob 00121 __l += 4; 00122 for(ros.pkg.bml_msgs.msg.Entity val : objects) { 00123 __l += val.serializationLength(); 00124 } 00125 return __l; 00126 } 00127 00128 public void serialize(ByteBuffer bb, int seq) { 00129 actor.serialize(bb, seq); 00130 begin.serialize(bb, seq); 00131 bb.putInt(prob.length); 00132 for(float val : prob) { 00133 bb.putFloat(val); 00134 } 00135 bb.putInt(objects.size()); 00136 for(ros.pkg.bml_msgs.msg.Entity val : objects) { 00137 val.serialize(bb, seq); 00138 } 00139 } 00140 00141 public void deserialize(ByteBuffer bb) { 00142 actor.deserialize(bb); 00143 begin.deserialize(bb); 00144 00145 int __prob_len = bb.getInt(); 00146 prob = new float[__prob_len]; 00147 for(int __i=0; __i<__prob_len; __i++) { 00148 prob[__i] = bb.getFloat(); 00149 } 00150 00151 int __objects_len = bb.getInt(); 00152 objects = new java.util.ArrayList<ros.pkg.bml_msgs.msg.Entity>(__objects_len); 00153 for(int __i=0; __i<__objects_len; __i++) { 00154 ros.pkg.bml_msgs.msg.Entity __tmp = new ros.pkg.bml_msgs.msg.Entity(); 00155 __tmp.deserialize(bb); 00156 objects.add(__tmp);; 00157 } 00158 } 00159 00160 @SuppressWarnings("all") 00161 public boolean equals(Object o) { 00162 if(!(o instanceof Performance)) 00163 return false; 00164 Performance other = (Performance) o; 00165 return 00166 actor.equals(other.actor) && 00167 begin.equals(other.begin) && 00168 java.util.Arrays.equals(prob, other.prob) && 00169 objects.equals(other.objects) && 00170 true; 00171 } 00172 00173 @SuppressWarnings("all") 00174 public int hashCode() { 00175 final int prime = 31; 00176 int result = 1; 00177 long tmp; 00178 result = prime * result + (this.actor == null ? 0 : this.actor.hashCode()); 00179 result = prime * result + (this.begin == null ? 0 : this.begin.hashCode()); 00180 result = prime * result + java.util.Arrays.hashCode(this.prob); 00181 result = prime * result + (this.objects == null ? 0 : this.objects.hashCode()); 00182 return result; 00183 } 00184 } // class Performance 00185 |