Project: engagement_generation License: BSD Dependencies:
Used by:
None |
engagement_generation/msg_gen/java/ros/pkg/bml_msgs/msg/BehaviorResult.javaGo to the documentation of this file.00001 /* Auto-generated by genmsg_java.py for file /home/mel/workspace/ros_stacks/bml/bml_msgs/msg/BehaviorResult.msg */ 00002 00003 package ros.pkg.bml_msgs.msg; 00004 00005 import java.nio.ByteBuffer; 00006 00007 public class BehaviorResult extends ros.communication.Message { 00008 00009 public ros.pkg.bml_msgs.msg.Behavior behavior = new ros.pkg.bml_msgs.msg.Behavior(); 00010 public ros.pkg.bml_msgs.msg.Flag result = new ros.pkg.bml_msgs.msg.Flag(); 00011 00012 public BehaviorResult() { 00013 } 00014 00015 public static java.lang.String __s_getDataType() { return "bml_msgs/BehaviorResult"; } 00016 public java.lang.String getDataType() { return __s_getDataType(); } 00017 public static java.lang.String __s_getMD5Sum() { return "a3e9c828e2aecb9c1f250d152dc60b04"; } 00018 public java.lang.String getMD5Sum() { return __s_getMD5Sum(); } 00019 public static java.lang.String __s_getMessageDefinition() { return "# this message is used to link a result flag to an id\n" + 00020 "Behavior behavior\n" + 00021 "Flag result\n" + 00022 "\n" + 00023 "================================================================================\n" + 00024 "MSG: bml_msgs/Behavior\n" + 00025 "# this message type contains the information for basic behavior types\n" + 00026 "\n" + 00027 "#constants for the synch point\n" + 00028 "uint8 START=0\n" + 00029 "uint8 READY=1\n" + 00030 "uint8 STROKE_START=2\n" + 00031 "uint8 STROKE=3\n" + 00032 "uint8 STROKE_END=4\n" + 00033 "uint8 RELAX=5\n" + 00034 "uint8 END=6\n" + 00035 "\n" + 00036 "# the fields\n" + 00037 "string id\n" + 00038 "uint8 synchPoint\n" + 00039 "\n" + 00040 "================================================================================\n" + 00041 "MSG: bml_msgs/Flag\n" + 00042 "# A flag which determines between TRUE and FALSE\n" + 00043 "int8 value\n" + 00044 "\n" + 00045 "# Constant for an invalid value\n" + 00046 "int8 INVALID=-1\n" + 00047 "\n" + 00048 "# Constants which define the values for true\n" + 00049 "int8 TRUE=1\n" + 00050 "int8 START=1\n" + 00051 "int8 BEGIN=1\n" + 00052 "int8 SUCCESS=1\n" + 00053 "int8 DONE=1\n" + 00054 "\n" + 00055 "# Constants which define the values for false\n" + 00056 "int8 FALSE=0\n" + 00057 "int8 STOP=0\n" + 00058 "int8 END=0\n" + 00059 "int8 FAILURE=0\n" + 00060 "int8 NOT_DONE=0\n" + 00061 "\n" + 00062 "# Constants for response types\n" + 00063 "int8 OPTIONAL_RESPONSE=0\n" + 00064 "int8 IS_A_RESPONSE=1\n" + 00065 "int8 REQUIRES_RESPONSE=2\n" + 00066 "int8 BACKCHANNEL=3\n" + 00067 "\n" + 00068 "# Constants which define the values for the side to use\n" + 00069 "int8 NEITHER=0\n" + 00070 "int8 LEFT=1\n" + 00071 "int8 RIGHT=2\n" + 00072 "int8 EITHER=3\n" + 00073 "\n" + 00074 ""; } 00075 public java.lang.String getMessageDefinition() { return __s_getMessageDefinition(); } 00076 00077 public BehaviorResult clone() { 00078 BehaviorResult c = new BehaviorResult(); 00079 c.deserialize(serialize(0)); 00080 return c; 00081 } 00082 00083 public void setTo(ros.communication.Message m) { 00084 deserialize(m.serialize(0)); 00085 } 00086 00087 public int serializationLength() { 00088 int __l = 0; 00089 __l += behavior.serializationLength(); 00090 __l += result.serializationLength(); 00091 return __l; 00092 } 00093 00094 public void serialize(ByteBuffer bb, int seq) { 00095 behavior.serialize(bb, seq); 00096 result.serialize(bb, seq); 00097 } 00098 00099 public void deserialize(ByteBuffer bb) { 00100 behavior.deserialize(bb); 00101 result.deserialize(bb); 00102 } 00103 00104 @SuppressWarnings("all") 00105 public boolean equals(Object o) { 00106 if(!(o instanceof BehaviorResult)) 00107 return false; 00108 BehaviorResult other = (BehaviorResult) o; 00109 return 00110 behavior.equals(other.behavior) && 00111 result.equals(other.result) && 00112 true; 00113 } 00114 00115 @SuppressWarnings("all") 00116 public int hashCode() { 00117 final int prime = 31; 00118 int result = 1; 00119 long tmp; 00120 result = prime * result + (this.behavior == null ? 0 : this.behavior.hashCode()); 00121 result = prime * result + (this.result == null ? 0 : this.result.hashCode()); 00122 return result; 00123 } 00124 } // class BehaviorResult 00125 |