Project: engagement_generation License: BSD Dependencies:
Used by:
None |
engagement_generation/msg_gen/java/ros/pkg/engagement_msgs/msg/HumanBackchannel.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/HumanBackchannel.msg */ 00002 00003 package ros.pkg.engagement_msgs.msg; 00004 00005 import java.nio.ByteBuffer; 00006 00007 public class HumanBackchannel 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 00012 public HumanBackchannel() { 00013 } 00014 00015 public static java.lang.String __s_getDataType() { return "engagement_msgs/HumanBackchannel"; } 00016 public java.lang.String getDataType() { return __s_getDataType(); } 00017 public static java.lang.String __s_getMD5Sum() { return "d3079ec57f3b4a779e754562dba4e4d0"; } 00018 public java.lang.String getMD5Sum() { return __s_getMD5Sum(); } 00019 public static java.lang.String __s_getMessageDefinition() { return "# Unique id for the actor that initiated this event\n" + 00020 "ActorID actor\n" + 00021 "\n" + 00022 "# The timeout for this human initiated connection event\n" + 00023 "float32 timeout\n" + 00024 "================================================================================\n" + 00025 "MSG: engagement_msgs/ActorID\n" + 00026 "# Unique string identifier for the actor\n" + 00027 "string id\n" + 00028 "\n" + 00029 "# Constant to identify the Robot as the actor\n" + 00030 "string ROBOT=ROBOT\n" + 00031 ""; } 00032 public java.lang.String getMessageDefinition() { return __s_getMessageDefinition(); } 00033 00034 public HumanBackchannel clone() { 00035 HumanBackchannel c = new HumanBackchannel(); 00036 c.deserialize(serialize(0)); 00037 return c; 00038 } 00039 00040 public void setTo(ros.communication.Message m) { 00041 deserialize(m.serialize(0)); 00042 } 00043 00044 public int serializationLength() { 00045 int __l = 0; 00046 __l += actor.serializationLength(); 00047 __l += 4; // timeout 00048 return __l; 00049 } 00050 00051 public void serialize(ByteBuffer bb, int seq) { 00052 actor.serialize(bb, seq); 00053 bb.putFloat(timeout); 00054 } 00055 00056 public void deserialize(ByteBuffer bb) { 00057 actor.deserialize(bb); 00058 timeout = bb.getFloat(); 00059 } 00060 00061 @SuppressWarnings("all") 00062 public boolean equals(Object o) { 00063 if(!(o instanceof HumanBackchannel)) 00064 return false; 00065 HumanBackchannel other = (HumanBackchannel) o; 00066 return 00067 actor.equals(other.actor) && 00068 timeout == other.timeout && 00069 true; 00070 } 00071 00072 @SuppressWarnings("all") 00073 public int hashCode() { 00074 final int prime = 31; 00075 int result = 1; 00076 long tmp; 00077 result = prime * result + (this.actor == null ? 0 : this.actor.hashCode()); 00078 result = prime * result + Float.floatToIntBits(this.timeout); 00079 return result; 00080 } 00081 } // class HumanBackchannel 00082 |