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