Project: engagement_test License: BSD Dependencies:
Used by:
None |
engagement_test/msg_gen/java/ros/pkg/engagement_msgs/msg/HumanAdjacencyPair.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/HumanAdjacencyPair.msg */ 00002 00003 package ros.pkg.engagement_msgs.msg; 00004 00005 import java.nio.ByteBuffer; 00006 00007 public class HumanAdjacencyPair extends ros.communication.Message { 00008 00009 public ros.pkg.engagement_msgs.msg.ActorID actor = new ros.pkg.engagement_msgs.msg.ActorID(); 00010 public float timeout; 00011 public ros.pkg.engagement_msgs.msg.APAction action = new ros.pkg.engagement_msgs.msg.APAction(); 00012 00013 public HumanAdjacencyPair() { 00014 } 00015 00016 public static java.lang.String __s_getDataType() { return "engagement_msgs/HumanAdjacencyPair"; } 00017 public java.lang.String getDataType() { return __s_getDataType(); } 00018 public static java.lang.String __s_getMD5Sum() { return "b2b998c268fdd2e6ed3b451da100654d"; } 00019 public java.lang.String getMD5Sum() { return __s_getMD5Sum(); } 00020 public static java.lang.String __s_getMessageDefinition() { return "# Unique id for the actor that initiated this event\n" + 00021 "ActorID actor\n" + 00022 "\n" + 00023 "# The timeout for this human initiated connection event\n" + 00024 "float32 timeout\n" + 00025 "\n" + 00026 "# The action that initiated the connection event\n" + 00027 "engagement_msgs/APAction action\n" + 00028 "\n" + 00029 "================================================================================\n" + 00030 "MSG: engagement_msgs/ActorID\n" + 00031 "# Unique string identifier for the actor\n" + 00032 "string id\n" + 00033 "\n" + 00034 "# Constant to identify the Robot as the actor\n" + 00035 "string ROBOT=ROBOT\n" + 00036 "================================================================================\n" + 00037 "MSG: engagement_msgs/APAction\n" + 00038 "# Declare constants for the different actions\n" + 00039 "int8 NO_ACTION=-1\n" + 00040 "int8 NOD=0\n" + 00041 "int8 SHAKE=1\n" + 00042 "int8 SPEECH=2\n" + 00043 "int8 POINT=3\n" + 00044 "int8 LOOK=4\n" + 00045 "int8 EXTENDED_ACTION=5\n" + 00046 "\n" + 00047 "# What action the human used to complete the adjacency pair\n" + 00048 "int8 value\n" + 00049 "\n" + 00050 "# Additional data for this action\n" + 00051 "string data\n" + 00052 ""; } 00053 public java.lang.String getMessageDefinition() { return __s_getMessageDefinition(); } 00054 00055 public HumanAdjacencyPair clone() { 00056 HumanAdjacencyPair c = new HumanAdjacencyPair(); 00057 c.deserialize(serialize(0)); 00058 return c; 00059 } 00060 00061 public void setTo(ros.communication.Message m) { 00062 deserialize(m.serialize(0)); 00063 } 00064 00065 public int serializationLength() { 00066 int __l = 0; 00067 __l += actor.serializationLength(); 00068 __l += 4; // timeout 00069 __l += action.serializationLength(); 00070 return __l; 00071 } 00072 00073 public void serialize(ByteBuffer bb, int seq) { 00074 actor.serialize(bb, seq); 00075 bb.putFloat(timeout); 00076 action.serialize(bb, seq); 00077 } 00078 00079 public void deserialize(ByteBuffer bb) { 00080 actor.deserialize(bb); 00081 timeout = bb.getFloat(); 00082 action.deserialize(bb); 00083 } 00084 00085 @SuppressWarnings("all") 00086 public boolean equals(Object o) { 00087 if(!(o instanceof HumanAdjacencyPair)) 00088 return false; 00089 HumanAdjacencyPair other = (HumanAdjacencyPair) o; 00090 return 00091 actor.equals(other.actor) && 00092 timeout == other.timeout && 00093 action.equals(other.action) && 00094 true; 00095 } 00096 00097 @SuppressWarnings("all") 00098 public int hashCode() { 00099 final int prime = 31; 00100 int result = 1; 00101 long tmp; 00102 result = prime * result + (this.actor == null ? 0 : this.actor.hashCode()); 00103 result = prime * result + Float.floatToIntBits(this.timeout); 00104 result = prime * result + (this.action == null ? 0 : this.action.hashCode()); 00105 return result; 00106 } 00107 } // class HumanAdjacencyPair 00108 |