00001 /* Auto-generated by genmsg_java.py for file /opt/ros/diamondback/stacks/common_msgs/geometry_msgs/msg/Twist.msg */ 00002 00003 package ros.pkg.geometry_msgs.msg; 00004 00005 import java.nio.ByteBuffer; 00006 00007 public class Twist extends ros.communication.Message { 00008 00009 public ros.pkg.geometry_msgs.msg.Vector3 linear = new ros.pkg.geometry_msgs.msg.Vector3(); 00010 public ros.pkg.geometry_msgs.msg.Vector3 angular = new ros.pkg.geometry_msgs.msg.Vector3(); 00011 00012 public Twist() { 00013 } 00014 00015 public static java.lang.String __s_getDataType() { return "geometry_msgs/Twist"; } 00016 public java.lang.String getDataType() { return __s_getDataType(); } 00017 public static java.lang.String __s_getMD5Sum() { return "9f195f881246fdfa2798d1d3eebca84a"; } 00018 public java.lang.String getMD5Sum() { return __s_getMD5Sum(); } 00019 public static java.lang.String __s_getMessageDefinition() { return "# This expresses velocity in free space broken into it's linear and angular parts. \n" + 00020 "Vector3 linear\n" + 00021 "Vector3 angular\n" + 00022 "\n" + 00023 "================================================================================\n" + 00024 "MSG: geometry_msgs/Vector3\n" + 00025 "# This represents a vector in free space. \n" + 00026 "\n" + 00027 "float64 x\n" + 00028 "float64 y\n" + 00029 "float64 z\n" + 00030 ""; } 00031 public java.lang.String getMessageDefinition() { return __s_getMessageDefinition(); } 00032 00033 public Twist clone() { 00034 Twist c = new Twist(); 00035 c.deserialize(serialize(0)); 00036 return c; 00037 } 00038 00039 public void setTo(ros.communication.Message m) { 00040 deserialize(m.serialize(0)); 00041 } 00042 00043 public int serializationLength() { 00044 int __l = 0; 00045 __l += linear.serializationLength(); 00046 __l += angular.serializationLength(); 00047 return __l; 00048 } 00049 00050 public void serialize(ByteBuffer bb, int seq) { 00051 linear.serialize(bb, seq); 00052 angular.serialize(bb, seq); 00053 } 00054 00055 public void deserialize(ByteBuffer bb) { 00056 linear.deserialize(bb); 00057 angular.deserialize(bb); 00058 } 00059 00060 @SuppressWarnings("all") 00061 public boolean equals(Object o) { 00062 if(!(o instanceof Twist)) 00063 return false; 00064 Twist other = (Twist) o; 00065 return 00066 linear.equals(other.linear) && 00067 angular.equals(other.angular) && 00068 true; 00069 } 00070 00071 @SuppressWarnings("all") 00072 public int hashCode() { 00073 final int prime = 31; 00074 int result = 1; 00075 long tmp; 00076 result = prime * result + (this.linear == null ? 0 : this.linear.hashCode()); 00077 result = prime * result + (this.angular == null ? 0 : this.angular.hashCode()); 00078 return result; 00079 } 00080 } // class Twist 00081