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