Project: engagement_test License: BSD Dependencies:
Used by:
None |
engagement_test/msg_gen/java/ros/pkg/engagement_msgs/msg/HumanDirectedGaze.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/HumanDirectedGaze.msg */ 00002 00003 package ros.pkg.engagement_msgs.msg; 00004 00005 import java.nio.ByteBuffer; 00006 00007 public class HumanDirectedGaze extends ros.communication.Message { 00008 static public final byte POINT = 3; 00009 static public final byte LOOK = 4; 00010 00011 public ros.pkg.engagement_msgs.msg.ActorID actor = new ros.pkg.engagement_msgs.msg.ActorID(); 00012 public float timeout; 00013 public java.util.ArrayList<ros.pkg.bml_msgs.msg.Entity> objects = new java.util.ArrayList<ros.pkg.bml_msgs.msg.Entity>(); 00014 public byte action; 00015 00016 public HumanDirectedGaze() { 00017 } 00018 00019 public static java.lang.String __s_getDataType() { return "engagement_msgs/HumanDirectedGaze"; } 00020 public java.lang.String getDataType() { return __s_getDataType(); } 00021 public static java.lang.String __s_getMD5Sum() { return "dbbe704718bbae7b9e008cb359675968"; } 00022 public java.lang.String getMD5Sum() { return __s_getMD5Sum(); } 00023 public static java.lang.String __s_getMessageDefinition() { return "# Unique id for the actor that initiated this event\n" + 00024 "ActorID actor\n" + 00025 "\n" + 00026 "# The timeout for this human initiated connection event\n" + 00027 "float32 timeout\n" + 00028 "\n" + 00029 "# The objects associated with this connection event\n" + 00030 "bml_msgs/Entity[] objects\n" + 00031 "\n" + 00032 "# Declare constants for the different actions\n" + 00033 "int8 POINT=3\n" + 00034 "int8 LOOK=4\n" + 00035 "\n" + 00036 "# What action the human used\n" + 00037 "int8 action\n" + 00038 "================================================================================\n" + 00039 "MSG: engagement_msgs/ActorID\n" + 00040 "# Unique string identifier for the actor\n" + 00041 "string id\n" + 00042 "\n" + 00043 "# Constant to identify the Robot as the actor\n" + 00044 "string ROBOT=ROBOT\n" + 00045 "================================================================================\n" + 00046 "MSG: bml_msgs/Entity\n" + 00047 "#The following constants represent all possible salient objects\n" + 00048 "uint8 OBJECT=0\n" + 00049 "uint8 HAND=1\n" + 00050 "uint8 FACE=2\n" + 00051 "uint8 QUADRANT=3\n" + 00052 "uint8 UNKNOWN=4\n" + 00053 "\n" + 00054 "# Constants for the upper quadrants\n" + 00055 "string UP_LEFT=UP_LEFT\n" + 00056 "string UP_FRONT=UP_FRONT\n" + 00057 "string UP_RIGHT=UP_RIGHT\n" + 00058 "\n" + 00059 "# Constants for the middle quadrants\n" + 00060 "string STRAIGHT_LEFT=STRAIGHT_LEFT\n" + 00061 "string STRAIGHT_FRONT=STRAIGHT_FRONT\n" + 00062 "string STRAIGHT_RIGHT=STRAIGHT_RIGHT\n" + 00063 "\n" + 00064 "# Constants for the lower quadrants\n" + 00065 "string DOWN_LEFT=DOWN_LEFT\n" + 00066 "string DOWN_FRONT=DOWN_FRONT\n" + 00067 "string DOWN_RIGHT=DOWN_RIGHT\n" + 00068 "\n" + 00069 "#there is just one field for type\n" + 00070 "uint8 type\n" + 00071 "\n" + 00072 "# The id of the object\n" + 00073 "string id\n" + 00074 "\n" + 00075 ""; } 00076 public java.lang.String getMessageDefinition() { return __s_getMessageDefinition(); } 00077 00078 public HumanDirectedGaze clone() { 00079 HumanDirectedGaze c = new HumanDirectedGaze(); 00080 c.deserialize(serialize(0)); 00081 return c; 00082 } 00083 00084 public void setTo(ros.communication.Message m) { 00085 deserialize(m.serialize(0)); 00086 } 00087 00088 public int serializationLength() { 00089 int __l = 0; 00090 __l += actor.serializationLength(); 00091 __l += 4; // timeout 00092 __l += 4; 00093 for(ros.pkg.bml_msgs.msg.Entity val : objects) { 00094 __l += val.serializationLength(); 00095 } 00096 __l += 1; // action 00097 return __l; 00098 } 00099 00100 public void serialize(ByteBuffer bb, int seq) { 00101 actor.serialize(bb, seq); 00102 bb.putFloat(timeout); 00103 bb.putInt(objects.size()); 00104 for(ros.pkg.bml_msgs.msg.Entity val : objects) { 00105 val.serialize(bb, seq); 00106 } 00107 bb.put(action); 00108 } 00109 00110 public void deserialize(ByteBuffer bb) { 00111 actor.deserialize(bb); 00112 timeout = bb.getFloat(); 00113 00114 int __objects_len = bb.getInt(); 00115 objects = new java.util.ArrayList<ros.pkg.bml_msgs.msg.Entity>(__objects_len); 00116 for(int __i=0; __i<__objects_len; __i++) { 00117 ros.pkg.bml_msgs.msg.Entity __tmp = new ros.pkg.bml_msgs.msg.Entity(); 00118 __tmp.deserialize(bb); 00119 objects.add(__tmp);; 00120 } 00121 action = bb.get(); 00122 } 00123 00124 @SuppressWarnings("all") 00125 public boolean equals(Object o) { 00126 if(!(o instanceof HumanDirectedGaze)) 00127 return false; 00128 HumanDirectedGaze other = (HumanDirectedGaze) o; 00129 return 00130 actor.equals(other.actor) && 00131 timeout == other.timeout && 00132 objects.equals(other.objects) && 00133 action == other.action && 00134 true; 00135 } 00136 00137 @SuppressWarnings("all") 00138 public int hashCode() { 00139 final int prime = 31; 00140 int result = 1; 00141 long tmp; 00142 result = prime * result + (this.actor == null ? 0 : this.actor.hashCode()); 00143 result = prime * result + Float.floatToIntBits(this.timeout); 00144 result = prime * result + (this.objects == null ? 0 : this.objects.hashCode()); 00145 result = prime * result + this.action; 00146 return result; 00147 } 00148 } // class HumanDirectedGaze 00149 |