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