00001
00002
00003 package ros.pkg.geometry_msgs.msg;
00004
00005 import java.nio.ByteBuffer;
00006
00007 public class PoseWithCovarianceStamped 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.PoseWithCovariance pose = new ros.pkg.geometry_msgs.msg.PoseWithCovariance();
00011
00012 public PoseWithCovarianceStamped() {
00013 }
00014
00015 public static java.lang.String __s_getDataType() { return "geometry_msgs/PoseWithCovarianceStamped"; }
00016 public java.lang.String getDataType() { return __s_getDataType(); }
00017 public static java.lang.String __s_getMD5Sum() { return "953b798c0f514ff060a53a3498ce6246"; }
00018 public java.lang.String getMD5Sum() { return __s_getMD5Sum(); }
00019 public static java.lang.String __s_getMessageDefinition() { return "# This expresses an estimated pose with a reference coordinate frame and timestamp\n" +
00020 "\n" +
00021 "Header header\n" +
00022 "PoseWithCovariance pose\n" +
00023 "\n" +
00024 "================================================================================\n" +
00025 "MSG: std_msgs/Header\n" +
00026 "# Standard metadata for higher-level stamped data types.\n" +
00027 "# This is generally used to communicate timestamped data \n" +
00028 "# in a particular coordinate frame.\n" +
00029 "# \n" +
00030 "# sequence ID: consecutively increasing ID \n" +
00031 "uint32 seq\n" +
00032 "#Two-integer timestamp that is expressed as:\n" +
00033 "# * stamp.secs: seconds (stamp_secs) since epoch\n" +
00034 "# * stamp.nsecs: nanoseconds since stamp_secs\n" +
00035 "# time-handling sugar is provided by the client library\n" +
00036 "time stamp\n" +
00037 "#Frame this data is associated with\n" +
00038 "# 0: no frame\n" +
00039 "# 1: global frame\n" +
00040 "string frame_id\n" +
00041 "\n" +
00042 "================================================================================\n" +
00043 "MSG: geometry_msgs/PoseWithCovariance\n" +
00044 "# This represents a pose in free space with uncertainty.\n" +
00045 "\n" +
00046 "Pose pose\n" +
00047 "\n" +
00048 "# Row-major representation of the 6x6 covariance matrix\n" +
00049 "# The orientation parameters use a fixed-axis representation.\n" +
00050 "# In order, the parameters are:\n" +
00051 "# (x, y, z, rotation about X axis, rotation about Y axis, rotation about Z axis)\n" +
00052 "float64[36] covariance\n" +
00053 "\n" +
00054 "================================================================================\n" +
00055 "MSG: geometry_msgs/Pose\n" +
00056 "# A representation of pose in free space, composed of postion and orientation. \n" +
00057 "Point position\n" +
00058 "Quaternion orientation\n" +
00059 "\n" +
00060 "================================================================================\n" +
00061 "MSG: geometry_msgs/Point\n" +
00062 "# This contains the position of a point in free space\n" +
00063 "float64 x\n" +
00064 "float64 y\n" +
00065 "float64 z\n" +
00066 "\n" +
00067 "================================================================================\n" +
00068 "MSG: geometry_msgs/Quaternion\n" +
00069 "# This represents an orientation in free space in quaternion form.\n" +
00070 "\n" +
00071 "float64 x\n" +
00072 "float64 y\n" +
00073 "float64 z\n" +
00074 "float64 w\n" +
00075 "\n" +
00076 ""; }
00077 public java.lang.String getMessageDefinition() { return __s_getMessageDefinition(); }
00078
00079 public PoseWithCovarianceStamped clone() {
00080 PoseWithCovarianceStamped c = new PoseWithCovarianceStamped();
00081 c.deserialize(serialize(0));
00082 return c;
00083 }
00084
00085 public void setTo(ros.communication.Message m) {
00086 deserialize(m.serialize(0));
00087 }
00088
00089 public int serializationLength() {
00090 int __l = 0;
00091 __l += header.serializationLength();
00092 __l += pose.serializationLength();
00093 return __l;
00094 }
00095
00096 public void serialize(ByteBuffer bb, int seq) {
00097 header.serialize(bb, seq);
00098 pose.serialize(bb, seq);
00099 }
00100
00101 public void deserialize(ByteBuffer bb) {
00102 header.deserialize(bb);
00103 pose.deserialize(bb);
00104 }
00105
00106 @SuppressWarnings("all")
00107 public boolean equals(Object o) {
00108 if(!(o instanceof PoseWithCovarianceStamped))
00109 return false;
00110 PoseWithCovarianceStamped other = (PoseWithCovarianceStamped) o;
00111 return
00112 header.equals(other.header) &&
00113 pose.equals(other.pose) &&
00114 true;
00115 }
00116
00117 @SuppressWarnings("all")
00118 public int hashCode() {
00119 final int prime = 31;
00120 int result = 1;
00121 long tmp;
00122 result = prime * result + (this.header == null ? 0 : this.header.hashCode());
00123 result = prime * result + (this.pose == null ? 0 : this.pose.hashCode());
00124 return result;
00125 }
00126 }
00127