00001
00002
00003 package ros.pkg.geometry_msgs.msg;
00004
00005 import java.nio.ByteBuffer;
00006
00007 public class PoseStamped 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.Pose pose = new ros.pkg.geometry_msgs.msg.Pose();
00011
00012 public PoseStamped() {
00013 }
00014
00015 public static java.lang.String __s_getDataType() { return "geometry_msgs/PoseStamped"; }
00016 public java.lang.String getDataType() { return __s_getDataType(); }
00017 public static java.lang.String __s_getMD5Sum() { return "d3812c3cbc69362b77dc0b19b345f8f5"; }
00018 public java.lang.String getMD5Sum() { return __s_getMD5Sum(); }
00019 public static java.lang.String __s_getMessageDefinition() { return "# A Pose with reference coordinate frame and timestamp\n" +
00020 "Header header\n" +
00021 "Pose pose\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/Pose\n" +
00043 "# A representation of pose in free space, composed of postion and orientation. \n" +
00044 "Point position\n" +
00045 "Quaternion orientation\n" +
00046 "\n" +
00047 "================================================================================\n" +
00048 "MSG: geometry_msgs/Point\n" +
00049 "# This contains the position of a point in free space\n" +
00050 "float64 x\n" +
00051 "float64 y\n" +
00052 "float64 z\n" +
00053 "\n" +
00054 "================================================================================\n" +
00055 "MSG: geometry_msgs/Quaternion\n" +
00056 "# This represents an orientation in free space in quaternion form.\n" +
00057 "\n" +
00058 "float64 x\n" +
00059 "float64 y\n" +
00060 "float64 z\n" +
00061 "float64 w\n" +
00062 "\n" +
00063 ""; }
00064 public java.lang.String getMessageDefinition() { return __s_getMessageDefinition(); }
00065
00066 public PoseStamped clone() {
00067 PoseStamped c = new PoseStamped();
00068 c.deserialize(serialize(0));
00069 return c;
00070 }
00071
00072 public void setTo(ros.communication.Message m) {
00073 deserialize(m.serialize(0));
00074 }
00075
00076 public int serializationLength() {
00077 int __l = 0;
00078 __l += header.serializationLength();
00079 __l += pose.serializationLength();
00080 return __l;
00081 }
00082
00083 public void serialize(ByteBuffer bb, int seq) {
00084 header.serialize(bb, seq);
00085 pose.serialize(bb, seq);
00086 }
00087
00088 public void deserialize(ByteBuffer bb) {
00089 header.deserialize(bb);
00090 pose.deserialize(bb);
00091 }
00092
00093 @SuppressWarnings("all")
00094 public boolean equals(Object o) {
00095 if(!(o instanceof PoseStamped))
00096 return false;
00097 PoseStamped other = (PoseStamped) o;
00098 return
00099 header.equals(other.header) &&
00100 pose.equals(other.pose) &&
00101 true;
00102 }
00103
00104 @SuppressWarnings("all")
00105 public int hashCode() {
00106 final int prime = 31;
00107 int result = 1;
00108 long tmp;
00109 result = prime * result + (this.header == null ? 0 : this.header.hashCode());
00110 result = prime * result + (this.pose == null ? 0 : this.pose.hashCode());
00111 return result;
00112 }
00113 }
00114