00001
00002
00003 package ros.pkg.geometry_msgs.msg;
00004
00005 import java.nio.ByteBuffer;
00006
00007 public class TwistWithCovarianceStamped 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.TwistWithCovariance twist = new ros.pkg.geometry_msgs.msg.TwistWithCovariance();
00011
00012 public TwistWithCovarianceStamped() {
00013 }
00014
00015 public static java.lang.String __s_getDataType() { return "geometry_msgs/TwistWithCovarianceStamped"; }
00016 public java.lang.String getDataType() { return __s_getDataType(); }
00017 public static java.lang.String __s_getMD5Sum() { return "8927a1a12fb2607ceea095b2dc440a96"; }
00018 public java.lang.String getMD5Sum() { return __s_getMD5Sum(); }
00019 public static java.lang.String __s_getMessageDefinition() { return "# This represents an estimate twist with reference coordinate frame and timestamp.\n" +
00020 "Header header\n" +
00021 "TwistWithCovariance 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/TwistWithCovariance\n" +
00043 "# This expresses velocity in free space with uncertianty.\n" +
00044 "\n" +
00045 "Twist twist\n" +
00046 "\n" +
00047 "# Row-major representation of the 6x6 covariance matrix\n" +
00048 "# The orientation parameters use a fixed-axis representation.\n" +
00049 "# In order, the parameters are:\n" +
00050 "# (x, y, z, rotation about X axis, rotation about Y axis, rotation about Z axis)\n" +
00051 "float64[36] covariance\n" +
00052 "\n" +
00053 "================================================================================\n" +
00054 "MSG: geometry_msgs/Twist\n" +
00055 "# This expresses velocity in free space broken into it's linear and angular parts. \n" +
00056 "Vector3 linear\n" +
00057 "Vector3 angular\n" +
00058 "\n" +
00059 "================================================================================\n" +
00060 "MSG: geometry_msgs/Vector3\n" +
00061 "# This represents a vector in free space. \n" +
00062 "\n" +
00063 "float64 x\n" +
00064 "float64 y\n" +
00065 "float64 z\n" +
00066 ""; }
00067 public java.lang.String getMessageDefinition() { return __s_getMessageDefinition(); }
00068
00069 public TwistWithCovarianceStamped clone() {
00070 TwistWithCovarianceStamped c = new TwistWithCovarianceStamped();
00071 c.deserialize(serialize(0));
00072 return c;
00073 }
00074
00075 public void setTo(ros.communication.Message m) {
00076 deserialize(m.serialize(0));
00077 }
00078
00079 public int serializationLength() {
00080 int __l = 0;
00081 __l += header.serializationLength();
00082 __l += twist.serializationLength();
00083 return __l;
00084 }
00085
00086 public void serialize(ByteBuffer bb, int seq) {
00087 header.serialize(bb, seq);
00088 twist.serialize(bb, seq);
00089 }
00090
00091 public void deserialize(ByteBuffer bb) {
00092 header.deserialize(bb);
00093 twist.deserialize(bb);
00094 }
00095
00096 @SuppressWarnings("all")
00097 public boolean equals(Object o) {
00098 if(!(o instanceof TwistWithCovarianceStamped))
00099 return false;
00100 TwistWithCovarianceStamped other = (TwistWithCovarianceStamped) o;
00101 return
00102 header.equals(other.header) &&
00103 twist.equals(other.twist) &&
00104 true;
00105 }
00106
00107 @SuppressWarnings("all")
00108 public int hashCode() {
00109 final int prime = 31;
00110 int result = 1;
00111 long tmp;
00112 result = prime * result + (this.header == null ? 0 : this.header.hashCode());
00113 result = prime * result + (this.twist == null ? 0 : this.twist.hashCode());
00114 return result;
00115 }
00116 }
00117