00001
00002
00003 package ros.pkg.geometry_msgs.msg;
00004
00005 import java.nio.ByteBuffer;
00006
00007 public class TransformStamped extends ros.communication.Message {
00008
00009 public ros.pkg.std_msgs.msg.Header header = new ros.pkg.std_msgs.msg.Header();
00010 public java.lang.String child_frame_id = new java.lang.String();
00011 public ros.pkg.geometry_msgs.msg.Transform transform = new ros.pkg.geometry_msgs.msg.Transform();
00012
00013 public TransformStamped() {
00014 }
00015
00016 public static java.lang.String __s_getDataType() { return "geometry_msgs/TransformStamped"; }
00017 public java.lang.String getDataType() { return __s_getDataType(); }
00018 public static java.lang.String __s_getMD5Sum() { return "b5764a33bfeb3588febc2682852579b0"; }
00019 public java.lang.String getMD5Sum() { return __s_getMD5Sum(); }
00020 public static java.lang.String __s_getMessageDefinition() { return "# This expresses a transform from coordinate frame header.frame_id\n" +
00021 "# to the coordinate frame child_frame_id\n" +
00022 "#\n" +
00023 "# This message is mostly used by the \n" +
00024 "# <a href=\"http://www.ros.org/wiki/tf\">tf</a> package. \n" +
00025 "# See it's documentation for more information.\n" +
00026 "\n" +
00027 "Header header\n" +
00028 "string child_frame_id # the frame id of the child frame\n" +
00029 "Transform transform\n" +
00030 "\n" +
00031 "================================================================================\n" +
00032 "MSG: std_msgs/Header\n" +
00033 "# Standard metadata for higher-level stamped data types.\n" +
00034 "# This is generally used to communicate timestamped data \n" +
00035 "# in a particular coordinate frame.\n" +
00036 "# \n" +
00037 "# sequence ID: consecutively increasing ID \n" +
00038 "uint32 seq\n" +
00039 "#Two-integer timestamp that is expressed as:\n" +
00040 "# * stamp.secs: seconds (stamp_secs) since epoch\n" +
00041 "# * stamp.nsecs: nanoseconds since stamp_secs\n" +
00042 "# time-handling sugar is provided by the client library\n" +
00043 "time stamp\n" +
00044 "#Frame this data is associated with\n" +
00045 "# 0: no frame\n" +
00046 "# 1: global frame\n" +
00047 "string frame_id\n" +
00048 "\n" +
00049 "================================================================================\n" +
00050 "MSG: geometry_msgs/Transform\n" +
00051 "# This represents the transform between two coordinate frames in free space.\n" +
00052 "\n" +
00053 "Vector3 translation\n" +
00054 "Quaternion rotation\n" +
00055 "\n" +
00056 "================================================================================\n" +
00057 "MSG: geometry_msgs/Vector3\n" +
00058 "# This represents a vector in free space. \n" +
00059 "\n" +
00060 "float64 x\n" +
00061 "float64 y\n" +
00062 "float64 z\n" +
00063 "================================================================================\n" +
00064 "MSG: geometry_msgs/Quaternion\n" +
00065 "# This represents an orientation in free space in quaternion form.\n" +
00066 "\n" +
00067 "float64 x\n" +
00068 "float64 y\n" +
00069 "float64 z\n" +
00070 "float64 w\n" +
00071 "\n" +
00072 ""; }
00073 public java.lang.String getMessageDefinition() { return __s_getMessageDefinition(); }
00074
00075 public TransformStamped clone() {
00076 TransformStamped c = new TransformStamped();
00077 c.deserialize(serialize(0));
00078 return c;
00079 }
00080
00081 public void setTo(ros.communication.Message m) {
00082 deserialize(m.serialize(0));
00083 }
00084
00085 public int serializationLength() {
00086 int __l = 0;
00087 __l += header.serializationLength();
00088 __l += 4 + child_frame_id.length();
00089 __l += transform.serializationLength();
00090 return __l;
00091 }
00092
00093 public void serialize(ByteBuffer bb, int seq) {
00094 header.serialize(bb, seq);
00095 Serialization.writeString(bb, child_frame_id);
00096 transform.serialize(bb, seq);
00097 }
00098
00099 public void deserialize(ByteBuffer bb) {
00100 header.deserialize(bb);
00101 child_frame_id = Serialization.readString(bb);
00102 transform.deserialize(bb);
00103 }
00104
00105 @SuppressWarnings("all")
00106 public boolean equals(Object o) {
00107 if(!(o instanceof TransformStamped))
00108 return false;
00109 TransformStamped other = (TransformStamped) o;
00110 return
00111 header.equals(other.header) &&
00112 child_frame_id.equals(other.child_frame_id) &&
00113 transform.equals(other.transform) &&
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.child_frame_id == null ? 0 : this.child_frame_id.hashCode());
00124 result = prime * result + (this.transform == null ? 0 : this.transform.hashCode());
00125 return result;
00126 }
00127 }
00128