00001
00002
00003 package ros.pkg.geometry_msgs.msg;
00004
00005 import java.nio.ByteBuffer;
00006
00007 public class TwistWithCovariance extends ros.communication.Message {
00008
00009 public ros.pkg.geometry_msgs.msg.Twist twist = new ros.pkg.geometry_msgs.msg.Twist();
00010 public double[] covariance = new double[36];
00011
00012 public TwistWithCovariance() {
00013 }
00014
00015 public static java.lang.String __s_getDataType() { return "geometry_msgs/TwistWithCovariance"; }
00016 public java.lang.String getDataType() { return __s_getDataType(); }
00017 public static java.lang.String __s_getMD5Sum() { return "1fe8a28e6890a4cc3ae4c3ca5c7d82e6"; }
00018 public java.lang.String getMD5Sum() { return __s_getMD5Sum(); }
00019 public static java.lang.String __s_getMessageDefinition() { return "# This expresses velocity in free space with uncertianty.\n" +
00020 "\n" +
00021 "Twist twist\n" +
00022 "\n" +
00023 "# Row-major representation of the 6x6 covariance matrix\n" +
00024 "# The orientation parameters use a fixed-axis representation.\n" +
00025 "# In order, the parameters are:\n" +
00026 "# (x, y, z, rotation about X axis, rotation about Y axis, rotation about Z axis)\n" +
00027 "float64[36] covariance\n" +
00028 "\n" +
00029 "================================================================================\n" +
00030 "MSG: geometry_msgs/Twist\n" +
00031 "# This expresses velocity in free space broken into it's linear and angular parts. \n" +
00032 "Vector3 linear\n" +
00033 "Vector3 angular\n" +
00034 "\n" +
00035 "================================================================================\n" +
00036 "MSG: geometry_msgs/Vector3\n" +
00037 "# This represents a vector in free space. \n" +
00038 "\n" +
00039 "float64 x\n" +
00040 "float64 y\n" +
00041 "float64 z\n" +
00042 ""; }
00043 public java.lang.String getMessageDefinition() { return __s_getMessageDefinition(); }
00044
00045 public TwistWithCovariance clone() {
00046 TwistWithCovariance c = new TwistWithCovariance();
00047 c.deserialize(serialize(0));
00048 return c;
00049 }
00050
00051 public void setTo(ros.communication.Message m) {
00052 deserialize(m.serialize(0));
00053 }
00054
00055 public int serializationLength() {
00056 int __l = 0;
00057 __l += twist.serializationLength();
00058 __l += 288;
00059 return __l;
00060 }
00061
00062 public void serialize(ByteBuffer bb, int seq) {
00063 twist.serialize(bb, seq);
00064
00065 for(double val : covariance) {
00066 bb.putDouble(val);
00067 }
00068 }
00069
00070 public void deserialize(ByteBuffer bb) {
00071 twist.deserialize(bb);
00072
00073 int __covariance_len = covariance.length;;
00074 covariance = new double[__covariance_len];
00075 for(int __i=0; __i<__covariance_len; __i++) {
00076 covariance[__i] = bb.getDouble();
00077 }
00078 }
00079
00080 @SuppressWarnings("all")
00081 public boolean equals(Object o) {
00082 if(!(o instanceof TwistWithCovariance))
00083 return false;
00084 TwistWithCovariance other = (TwistWithCovariance) o;
00085 return
00086 twist.equals(other.twist) &&
00087 java.util.Arrays.equals(covariance, other.covariance) &&
00088 true;
00089 }
00090
00091 @SuppressWarnings("all")
00092 public int hashCode() {
00093 final int prime = 31;
00094 int result = 1;
00095 long tmp;
00096 result = prime * result + (this.twist == null ? 0 : this.twist.hashCode());
00097 result = prime * result + java.util.Arrays.hashCode(this.covariance);
00098 return result;
00099 }
00100 }
00101