00001
00002
00003 package ros.pkg.mapping_msgs.msg;
00004
00005 import java.nio.ByteBuffer;
00006
00007 public class CollisionMap 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.mapping_msgs.msg.OrientedBoundingBox> boxes = new java.util.ArrayList<ros.pkg.mapping_msgs.msg.OrientedBoundingBox>();
00011
00012 public CollisionMap() {
00013 }
00014
00015 public static java.lang.String __s_getDataType() { return "mapping_msgs/CollisionMap"; }
00016 public java.lang.String getDataType() { return __s_getDataType(); }
00017 public static java.lang.String __s_getMD5Sum() { return "18ca54db41ccebbe82f61f9801dede89"; }
00018 public java.lang.String getMD5Sum() { return __s_getMD5Sum(); }
00019 public static java.lang.String __s_getMessageDefinition() { return "#header for interpreting box positions\n" +
00020 "Header header\n" +
00021 "\n" +
00022 "#boxes for use in collision testing\n" +
00023 "OrientedBoundingBox[] boxes\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: mapping_msgs/OrientedBoundingBox\n" +
00045 "#the center of the box\n" +
00046 "geometry_msgs/Point32 center\n" +
00047 "\n" +
00048 "#the extents of the box, assuming the center is at the point\n" +
00049 "geometry_msgs/Point32 extents\n" +
00050 "\n" +
00051 "#the axis of the box\n" +
00052 "geometry_msgs/Point32 axis\n" +
00053 "\n" +
00054 "#the angle of rotation around the axis\n" +
00055 "float32 angle\n" +
00056 "\n" +
00057 "================================================================================\n" +
00058 "MSG: geometry_msgs/Point32\n" +
00059 "# This contains the position of a point in free space(with 32 bits of precision).\n" +
00060 "# It is recommeded to use Point wherever possible instead of Point32. \n" +
00061 "# \n" +
00062 "# This recommendation is to promote interoperability. \n" +
00063 "#\n" +
00064 "# This message is designed to take up less space when sending\n" +
00065 "# lots of points at once, as in the case of a PointCloud. \n" +
00066 "\n" +
00067 "float32 x\n" +
00068 "float32 y\n" +
00069 "float32 z\n" +
00070 ""; }
00071 public java.lang.String getMessageDefinition() { return __s_getMessageDefinition(); }
00072
00073 public CollisionMap clone() {
00074 CollisionMap c = new CollisionMap();
00075 c.deserialize(serialize(0));
00076 return c;
00077 }
00078
00079 public void setTo(ros.communication.Message m) {
00080 deserialize(m.serialize(0));
00081 }
00082
00083 public int serializationLength() {
00084 int __l = 0;
00085 __l += header.serializationLength();
00086 __l += 4;
00087 for(ros.pkg.mapping_msgs.msg.OrientedBoundingBox val : boxes) {
00088 __l += val.serializationLength();
00089 }
00090 return __l;
00091 }
00092
00093 public void serialize(ByteBuffer bb, int seq) {
00094 header.serialize(bb, seq);
00095 bb.putInt(boxes.size());
00096 for(ros.pkg.mapping_msgs.msg.OrientedBoundingBox val : boxes) {
00097 val.serialize(bb, seq);
00098 }
00099 }
00100
00101 public void deserialize(ByteBuffer bb) {
00102 header.deserialize(bb);
00103
00104 int __boxes_len = bb.getInt();
00105 boxes = new java.util.ArrayList<ros.pkg.mapping_msgs.msg.OrientedBoundingBox>(__boxes_len);
00106 for(int __i=0; __i<__boxes_len; __i++) {
00107 ros.pkg.mapping_msgs.msg.OrientedBoundingBox __tmp = new ros.pkg.mapping_msgs.msg.OrientedBoundingBox();
00108 __tmp.deserialize(bb);
00109 boxes.add(__tmp);;
00110 }
00111 }
00112
00113 @SuppressWarnings("all")
00114 public boolean equals(Object o) {
00115 if(!(o instanceof CollisionMap))
00116 return false;
00117 CollisionMap other = (CollisionMap) o;
00118 return
00119 header.equals(other.header) &&
00120 boxes.equals(other.boxes) &&
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.header == null ? 0 : this.header.hashCode());
00130 result = prime * result + (this.boxes == null ? 0 : this.boxes.hashCode());
00131 return result;
00132 }
00133 }
00134