Project: engagement_test License: BSD Dependencies:
Used by:
None |
engagement_test/msg_gen/java/ros/pkg/bml_msgs/msg/Direction.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/Direction.msg */ 00002 00003 package ros.pkg.bml_msgs.msg; 00004 00005 import java.nio.ByteBuffer; 00006 00007 public class Direction extends ros.communication.Message { 00008 static public final short RIGHT = 1; 00009 static public final short LEFT = 2; 00010 static public final short UP = 3; 00011 static public final short DOWN = 4; 00012 static public final short UP_RIGHT = 5; 00013 static public final short UP_LEFT = 6; 00014 static public final short DOWN_LEFT = 7; 00015 static public final short DOWN_RIGHT = 8; 00016 static public final short POLAR = 0; 00017 00018 public short value; 00019 00020 public Direction() { 00021 } 00022 00023 public static java.lang.String __s_getDataType() { return "bml_msgs/Direction"; } 00024 public java.lang.String getDataType() { return __s_getDataType(); } 00025 public static java.lang.String __s_getMD5Sum() { return "8f3506f992bde6ef49f51ece4ef0b17d"; } 00026 public java.lang.String getMD5Sum() { return __s_getMD5Sum(); } 00027 public static java.lang.String __s_getMessageDefinition() { return "# the direction message is used by offsetting or directing actions\n" + 00028 "uint8 value\n" + 00029 "\n" + 00030 "uint8 RIGHT=1\n" + 00031 "uint8 LEFT=2\n" + 00032 "uint8 UP=3\n" + 00033 "uint8 DOWN=4\n" + 00034 "uint8 UP_RIGHT=5\n" + 00035 "uint8 UP_LEFT=6\n" + 00036 "uint8 DOWN_LEFT=7\n" + 00037 "uint8 DOWN_RIGHT=8\n" + 00038 "uint8 POLAR=0\n" + 00039 "\n" + 00040 ""; } 00041 public java.lang.String getMessageDefinition() { return __s_getMessageDefinition(); } 00042 00043 public Direction clone() { 00044 Direction c = new Direction(); 00045 c.deserialize(serialize(0)); 00046 return c; 00047 } 00048 00049 public void setTo(ros.communication.Message m) { 00050 deserialize(m.serialize(0)); 00051 } 00052 00053 public int serializationLength() { 00054 int __l = 0; 00055 __l += 1; // value 00056 return __l; 00057 } 00058 00059 public void serialize(ByteBuffer bb, int seq) { 00060 bb.put((byte)value); 00061 } 00062 00063 public void deserialize(ByteBuffer bb) { 00064 value = (short)(bb.get() & 0xff); 00065 } 00066 00067 @SuppressWarnings("all") 00068 public boolean equals(Object o) { 00069 if(!(o instanceof Direction)) 00070 return false; 00071 Direction other = (Direction) o; 00072 return 00073 value == other.value && 00074 true; 00075 } 00076 00077 @SuppressWarnings("all") 00078 public int hashCode() { 00079 final int prime = 31; 00080 int result = 1; 00081 long tmp; 00082 result = prime * result + this.value; 00083 return result; 00084 } 00085 } // class Direction 00086 |