00001
00002
00003 package ros.pkg.geometry_msgs.msg;
00004
00005 import java.nio.ByteBuffer;
00006
00007 public class TwistStamped extends ros.communication.Message {
00008
00009 public ros.pkg.std_msgs.msg.Header header = new ros.pkg.std_msgs.msg.Header();
00010 public ros.pkg.geometry_msgs.msg.Twist twist = new ros.pkg.geometry_msgs.msg.Twist();
00011
00012 public TwistStamped() {
00013 }
00014
00015 public static java.lang.String __s_getDataType() { return "geometry_msgs/TwistStamped"; }
00016 public java.lang.String getDataType() { return __s_getDataType(); }
00017 public static java.lang.String __s_getMD5Sum() { return "98d34b0043a2093cf9d9345ab6eef12e"; }
00018 public java.lang.String getMD5Sum() { return __s_getMD5Sum(); }
00019 public static java.lang.String __s_getMessageDefinition() { return "# A twist with reference coordinate frame and timestamp\n" +
00020 "Header header\n" +
00021 "Twist twist\n" +
00022 "\n" +
00023 "================================================================================\n" +
00024 "MSG: std_msgs/Header\n" +
00025 "# Standard metadata for higher-level stamped data types.\n" +
00026 "# This is generally used to communicate timestamped data \n" +
00027 "# in a particular coordinate frame.\n" +
00028 "# \n" +
00029 "# sequence ID: consecutively increasing ID \n" +
00030 "uint32 seq\n" +
00031 "#Two-integer timestamp that is expressed as:\n" +
00032 "# * stamp.secs: seconds (stamp_secs) since epoch\n" +
00033 "# * stamp.nsecs: nanoseconds since stamp_secs\n" +
00034 "# time-handling sugar is provided by the client library\n" +
00035 "time stamp\n" +
00036 "#Frame this data is associated with\n" +
00037 "# 0: no frame\n" +
00038 "# 1: global frame\n" +
00039 "string frame_id\n" +
00040 "\n" +
00041 "================================================================================\n" +
00042 "MSG: geometry_msgs/Twist\n" +
00043 "# This expresses velocity in free space broken into it's linear and angular parts. \n" +
00044 "Vector3 linear\n" +
00045 "Vector3 angular\n" +
00046 "\n" +
00047 "================================================================================\n" +
00048 "MSG: geometry_msgs/Vector3\n" +
00049 "# This represents a vector in free space. \n" +
00050 "\n" +
00051 "float64 x\n" +
00052 "float64 y\n" +
00053 "float64 z\n" +
00054 ""; }
00055 public java.lang.String getMessageDefinition() { return __s_getMessageDefinition(); }
00056
00057 public TwistStamped clone() {
00058 TwistStamped c = new TwistStamped();
00059 c.deserialize(serialize(0));
00060 return c;
00061 }
00062
00063 public void setTo(ros.communication.Message m) {
00064 deserialize(m.serialize(0));
00065 }
00066
00067 public int serializationLength() {
00068 int __l = 0;
00069 __l += header.serializationLength();
00070 __l += twist.serializationLength();
00071 return __l;
00072 }
00073
00074 public void serialize(ByteBuffer bb, int seq) {
00075 header.serialize(bb, seq);
00076 twist.serialize(bb, seq);
00077 }
00078
00079 public void deserialize(ByteBuffer bb) {
00080 header.deserialize(bb);
00081 twist.deserialize(bb);
00082 }
00083
00084 @SuppressWarnings("all")
00085 public boolean equals(Object o) {
00086 if(!(o instanceof TwistStamped))
00087 return false;
00088 TwistStamped other = (TwistStamped) o;
00089 return
00090 header.equals(other.header) &&
00091 twist.equals(other.twist) &&
00092 true;
00093 }
00094
00095 @SuppressWarnings("all")
00096 public int hashCode() {
00097 final int prime = 31;
00098 int result = 1;
00099 long tmp;
00100 result = prime * result + (this.header == null ? 0 : this.header.hashCode());
00101 result = prime * result + (this.twist == null ? 0 : this.twist.hashCode());
00102 return result;
00103 }
00104 }
00105