Project: engagement_generation License: BSD Dependencies:
Used by:
None |
engagement_generation/msg_gen/java/ros/pkg/std_msgs/msg/UInt16.javaGo to the documentation of this file.00001 /* Auto-generated by genmsg_java.py for file /opt/ros/diamondback/stacks/ros_comm/messages/std_msgs/msg/UInt16.msg */ 00002 00003 package ros.pkg.std_msgs.msg; 00004 00005 import java.nio.ByteBuffer; 00006 00007 public class UInt16 extends ros.communication.Message { 00008 00009 public int data; 00010 00011 public UInt16() { 00012 } 00013 00014 public static java.lang.String __s_getDataType() { return "std_msgs/UInt16"; } 00015 public java.lang.String getDataType() { return __s_getDataType(); } 00016 public static java.lang.String __s_getMD5Sum() { return "1df79edf208b629fe6b81923a544552d"; } 00017 public java.lang.String getMD5Sum() { return __s_getMD5Sum(); } 00018 public static java.lang.String __s_getMessageDefinition() { return "uint16 data\n" + 00019 "\n" + 00020 ""; } 00021 public java.lang.String getMessageDefinition() { return __s_getMessageDefinition(); } 00022 00023 public UInt16 clone() { 00024 UInt16 c = new UInt16(); 00025 c.deserialize(serialize(0)); 00026 return c; 00027 } 00028 00029 public void setTo(ros.communication.Message m) { 00030 deserialize(m.serialize(0)); 00031 } 00032 00033 public int serializationLength() { 00034 int __l = 0; 00035 __l += 2; // data 00036 return __l; 00037 } 00038 00039 public void serialize(ByteBuffer bb, int seq) { 00040 bb.putShort((short)data); 00041 } 00042 00043 public void deserialize(ByteBuffer bb) { 00044 data = (int)(bb.getShort() & 0xffff); 00045 } 00046 00047 @SuppressWarnings("all") 00048 public boolean equals(Object o) { 00049 if(!(o instanceof UInt16)) 00050 return false; 00051 UInt16 other = (UInt16) o; 00052 return 00053 data == other.data && 00054 true; 00055 } 00056 00057 @SuppressWarnings("all") 00058 public int hashCode() { 00059 final int prime = 31; 00060 int result = 1; 00061 long tmp; 00062 result = prime * result + this.data; 00063 return result; 00064 } 00065 } // class UInt16 00066 |