Project: engagement_generation License: BSD Dependencies:
Used by:
None |
engagement_generation/msg_gen/java/ros/pkg/engagement_msgs/msg/ActorIDStatus.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/ActorIDStatus.msg */ 00002 00003 package ros.pkg.engagement_msgs.msg; 00004 00005 import java.nio.ByteBuffer; 00006 00007 public class ActorIDStatus 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 status = new ros.pkg.bml_msgs.msg.Flag(); 00011 00012 public ActorIDStatus() { 00013 } 00014 00015 public static java.lang.String __s_getDataType() { return "engagement_msgs/ActorIDStatus"; } 00016 public java.lang.String getDataType() { return __s_getDataType(); } 00017 public static java.lang.String __s_getMD5Sum() { return "3e271f34123bd3ec9d4062945abf4e53"; } 00018 public java.lang.String getMD5Sum() { return __s_getMD5Sum(); } 00019 public static java.lang.String __s_getMessageDefinition() { return "# The actor id\n" + 00020 "ActorID actor\n" + 00021 "\n" + 00022 "# The actor's flag\n" + 00023 "bml_msgs/Flag status\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 "================================================================================\n" + 00032 "MSG: bml_msgs/Flag\n" + 00033 "# A flag which determines between TRUE and FALSE\n" + 00034 "int8 value\n" + 00035 "\n" + 00036 "# Constant for an invalid value\n" + 00037 "int8 INVALID=-1\n" + 00038 "\n" + 00039 "# Constants which define the values for true\n" + 00040 "int8 TRUE=1\n" + 00041 "int8 START=1\n" + 00042 "int8 BEGIN=1\n" + 00043 "int8 SUCCESS=1\n" + 00044 "int8 DONE=1\n" + 00045 "\n" + 00046 "# Constants which define the values for false\n" + 00047 "int8 FALSE=0\n" + 00048 "int8 STOP=0\n" + 00049 "int8 END=0\n" + 00050 "int8 FAILURE=0\n" + 00051 "int8 NOT_DONE=0\n" + 00052 "\n" + 00053 "# Constants for response types\n" + 00054 "int8 OPTIONAL_RESPONSE=0\n" + 00055 "int8 IS_A_RESPONSE=1\n" + 00056 "int8 REQUIRES_RESPONSE=2\n" + 00057 "int8 BACKCHANNEL=3\n" + 00058 "\n" + 00059 "# Constants which define the values for the side to use\n" + 00060 "int8 NEITHER=0\n" + 00061 "int8 LEFT=1\n" + 00062 "int8 RIGHT=2\n" + 00063 "int8 EITHER=3\n" + 00064 "\n" + 00065 ""; } 00066 public java.lang.String getMessageDefinition() { return __s_getMessageDefinition(); } 00067 00068 public ActorIDStatus clone() { 00069 ActorIDStatus c = new ActorIDStatus(); 00070 c.deserialize(serialize(0)); 00071 return c; 00072 } 00073 00074 public void setTo(ros.communication.Message m) { 00075 deserialize(m.serialize(0)); 00076 } 00077 00078 public int serializationLength() { 00079 int __l = 0; 00080 __l += actor.serializationLength(); 00081 __l += status.serializationLength(); 00082 return __l; 00083 } 00084 00085 public void serialize(ByteBuffer bb, int seq) { 00086 actor.serialize(bb, seq); 00087 status.serialize(bb, seq); 00088 } 00089 00090 public void deserialize(ByteBuffer bb) { 00091 actor.deserialize(bb); 00092 status.deserialize(bb); 00093 } 00094 00095 @SuppressWarnings("all") 00096 public boolean equals(Object o) { 00097 if(!(o instanceof ActorIDStatus)) 00098 return false; 00099 ActorIDStatus other = (ActorIDStatus) o; 00100 return 00101 actor.equals(other.actor) && 00102 status.equals(other.status) && 00103 true; 00104 } 00105 00106 @SuppressWarnings("all") 00107 public int hashCode() { 00108 final int prime = 31; 00109 int result = 1; 00110 long tmp; 00111 result = prime * result + (this.actor == null ? 0 : this.actor.hashCode()); 00112 result = prime * result + (this.status == null ? 0 : this.status.hashCode()); 00113 return result; 00114 } 00115 } // class ActorIDStatus 00116 |