Project: engagement_generation License: BSD Dependencies:
Used by:
None |
engagement_generation/msg_gen/java/ros/pkg/bml_msgs/msg/BMLPerformance.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/BMLPerformance.msg */ 00002 00003 package ros.pkg.bml_msgs.msg; 00004 00005 import java.nio.ByteBuffer; 00006 00007 public class BMLPerformance 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 status = new ros.pkg.bml_msgs.msg.Flag(); 00011 00012 public BMLPerformance() { 00013 } 00014 00015 public static java.lang.String __s_getDataType() { return "bml_msgs/BMLPerformance"; } 00016 public java.lang.String getDataType() { return __s_getDataType(); } 00017 public static java.lang.String __s_getMD5Sum() { return "90df3e0b77369d18e099cb5ded7ba3cd"; } 00018 public java.lang.String getMD5Sum() { return __s_getMD5Sum(); } 00019 public static java.lang.String __s_getMessageDefinition() { return "# fields for the performance of a BML behavior\n" + 00020 "Behavior behavior\n" + 00021 "Flag status\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 BMLPerformance clone() { 00078 BMLPerformance c = new BMLPerformance(); 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 += status.serializationLength(); 00091 return __l; 00092 } 00093 00094 public void serialize(ByteBuffer bb, int seq) { 00095 behavior.serialize(bb, seq); 00096 status.serialize(bb, seq); 00097 } 00098 00099 public void deserialize(ByteBuffer bb) { 00100 behavior.deserialize(bb); 00101 status.deserialize(bb); 00102 } 00103 00104 @SuppressWarnings("all") 00105 public boolean equals(Object o) { 00106 if(!(o instanceof BMLPerformance)) 00107 return false; 00108 BMLPerformance other = (BMLPerformance) o; 00109 return 00110 behavior.equals(other.behavior) && 00111 status.equals(other.status) && 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.status == null ? 0 : this.status.hashCode()); 00122 return result; 00123 } 00124 } // class BMLPerformance 00125 |