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