00001
00002
00003 package ros.pkg.mapping_msgs.msg;
00004
00005 import java.nio.ByteBuffer;
00006
00007 public class OrientedBoundingBox extends ros.communication.Message {
00008
00009 public ros.pkg.geometry_msgs.msg.Point32 center = new ros.pkg.geometry_msgs.msg.Point32();
00010 public ros.pkg.geometry_msgs.msg.Point32 extents = new ros.pkg.geometry_msgs.msg.Point32();
00011 public ros.pkg.geometry_msgs.msg.Point32 axis = new ros.pkg.geometry_msgs.msg.Point32();
00012 public float angle;
00013
00014 public OrientedBoundingBox() {
00015 }
00016
00017 public static java.lang.String __s_getDataType() { return "mapping_msgs/OrientedBoundingBox"; }
00018 public java.lang.String getDataType() { return __s_getDataType(); }
00019 public static java.lang.String __s_getMD5Sum() { return "a9b13162620bd04a7cb84cf207e7a8ac"; }
00020 public java.lang.String getMD5Sum() { return __s_getMD5Sum(); }
00021 public static java.lang.String __s_getMessageDefinition() { return "#the center of the box\n" +
00022 "geometry_msgs/Point32 center\n" +
00023 "\n" +
00024 "#the extents of the box, assuming the center is at the point\n" +
00025 "geometry_msgs/Point32 extents\n" +
00026 "\n" +
00027 "#the axis of the box\n" +
00028 "geometry_msgs/Point32 axis\n" +
00029 "\n" +
00030 "#the angle of rotation around the axis\n" +
00031 "float32 angle\n" +
00032 "\n" +
00033 "================================================================================\n" +
00034 "MSG: geometry_msgs/Point32\n" +
00035 "# This contains the position of a point in free space(with 32 bits of precision).\n" +
00036 "# It is recommeded to use Point wherever possible instead of Point32. \n" +
00037 "# \n" +
00038 "# This recommendation is to promote interoperability. \n" +
00039 "#\n" +
00040 "# This message is designed to take up less space when sending\n" +
00041 "# lots of points at once, as in the case of a PointCloud. \n" +
00042 "\n" +
00043 "float32 x\n" +
00044 "float32 y\n" +
00045 "float32 z\n" +
00046 ""; }
00047 public java.lang.String getMessageDefinition() { return __s_getMessageDefinition(); }
00048
00049 public OrientedBoundingBox clone() {
00050 OrientedBoundingBox c = new OrientedBoundingBox();
00051 c.deserialize(serialize(0));
00052 return c;
00053 }
00054
00055 public void setTo(ros.communication.Message m) {
00056 deserialize(m.serialize(0));
00057 }
00058
00059 public int serializationLength() {
00060 int __l = 0;
00061 __l += center.serializationLength();
00062 __l += extents.serializationLength();
00063 __l += axis.serializationLength();
00064 __l += 4;
00065 return __l;
00066 }
00067
00068 public void serialize(ByteBuffer bb, int seq) {
00069 center.serialize(bb, seq);
00070 extents.serialize(bb, seq);
00071 axis.serialize(bb, seq);
00072 bb.putFloat(angle);
00073 }
00074
00075 public void deserialize(ByteBuffer bb) {
00076 center.deserialize(bb);
00077 extents.deserialize(bb);
00078 axis.deserialize(bb);
00079 angle = bb.getFloat();
00080 }
00081
00082 @SuppressWarnings("all")
00083 public boolean equals(Object o) {
00084 if(!(o instanceof OrientedBoundingBox))
00085 return false;
00086 OrientedBoundingBox other = (OrientedBoundingBox) o;
00087 return
00088 center.equals(other.center) &&
00089 extents.equals(other.extents) &&
00090 axis.equals(other.axis) &&
00091 angle == other.angle &&
00092 true;
00093 }
00094
00095 @SuppressWarnings("all")
00096 public int hashCode() {
00097 final int prime = 31;
00098 int result = 1;
00099 long tmp;
00100 result = prime * result + (this.center == null ? 0 : this.center.hashCode());
00101 result = prime * result + (this.extents == null ? 0 : this.extents.hashCode());
00102 result = prime * result + (this.axis == null ? 0 : this.axis.hashCode());
00103 result = prime * result + Float.floatToIntBits(this.angle);
00104 return result;
00105 }
00106 }
00107