00001
00002
00003 package ros.pkg.geometry_msgs.msg;
00004
00005 import java.nio.ByteBuffer;
00006
00007 public class PolygonStamped extends ros.communication.Message {
00008
00009 public ros.pkg.std_msgs.msg.Header header = new ros.pkg.std_msgs.msg.Header();
00010 public ros.pkg.geometry_msgs.msg.Polygon polygon = new ros.pkg.geometry_msgs.msg.Polygon();
00011
00012 public PolygonStamped() {
00013 }
00014
00015 public static java.lang.String __s_getDataType() { return "geometry_msgs/PolygonStamped"; }
00016 public java.lang.String getDataType() { return __s_getDataType(); }
00017 public static java.lang.String __s_getMD5Sum() { return "c6be8f7dc3bee7fe9e8d296070f53340"; }
00018 public java.lang.String getMD5Sum() { return __s_getMD5Sum(); }
00019 public static java.lang.String __s_getMessageDefinition() { return "# This represents a Polygon with reference coordinate frame and timestamp\n" +
00020 "Header header\n" +
00021 "Polygon polygon\n" +
00022 "\n" +
00023 "================================================================================\n" +
00024 "MSG: std_msgs/Header\n" +
00025 "# Standard metadata for higher-level stamped data types.\n" +
00026 "# This is generally used to communicate timestamped data \n" +
00027 "# in a particular coordinate frame.\n" +
00028 "# \n" +
00029 "# sequence ID: consecutively increasing ID \n" +
00030 "uint32 seq\n" +
00031 "#Two-integer timestamp that is expressed as:\n" +
00032 "# * stamp.secs: seconds (stamp_secs) since epoch\n" +
00033 "# * stamp.nsecs: nanoseconds since stamp_secs\n" +
00034 "# time-handling sugar is provided by the client library\n" +
00035 "time stamp\n" +
00036 "#Frame this data is associated with\n" +
00037 "# 0: no frame\n" +
00038 "# 1: global frame\n" +
00039 "string frame_id\n" +
00040 "\n" +
00041 "================================================================================\n" +
00042 "MSG: geometry_msgs/Polygon\n" +
00043 "#A specification of a polygon where the first and last points are assumed to be connected\n" +
00044 "geometry_msgs/Point32[] points\n" +
00045 "\n" +
00046 "================================================================================\n" +
00047 "MSG: geometry_msgs/Point32\n" +
00048 "# This contains the position of a point in free space(with 32 bits of precision).\n" +
00049 "# It is recommeded to use Point wherever possible instead of Point32. \n" +
00050 "# \n" +
00051 "# This recommendation is to promote interoperability. \n" +
00052 "#\n" +
00053 "# This message is designed to take up less space when sending\n" +
00054 "# lots of points at once, as in the case of a PointCloud. \n" +
00055 "\n" +
00056 "float32 x\n" +
00057 "float32 y\n" +
00058 "float32 z\n" +
00059 ""; }
00060 public java.lang.String getMessageDefinition() { return __s_getMessageDefinition(); }
00061
00062 public PolygonStamped clone() {
00063 PolygonStamped c = new PolygonStamped();
00064 c.deserialize(serialize(0));
00065 return c;
00066 }
00067
00068 public void setTo(ros.communication.Message m) {
00069 deserialize(m.serialize(0));
00070 }
00071
00072 public int serializationLength() {
00073 int __l = 0;
00074 __l += header.serializationLength();
00075 __l += polygon.serializationLength();
00076 return __l;
00077 }
00078
00079 public void serialize(ByteBuffer bb, int seq) {
00080 header.serialize(bb, seq);
00081 polygon.serialize(bb, seq);
00082 }
00083
00084 public void deserialize(ByteBuffer bb) {
00085 header.deserialize(bb);
00086 polygon.deserialize(bb);
00087 }
00088
00089 @SuppressWarnings("all")
00090 public boolean equals(Object o) {
00091 if(!(o instanceof PolygonStamped))
00092 return false;
00093 PolygonStamped other = (PolygonStamped) o;
00094 return
00095 header.equals(other.header) &&
00096 polygon.equals(other.polygon) &&
00097 true;
00098 }
00099
00100 @SuppressWarnings("all")
00101 public int hashCode() {
00102 final int prime = 31;
00103 int result = 1;
00104 long tmp;
00105 result = prime * result + (this.header == null ? 0 : this.header.hashCode());
00106 result = prime * result + (this.polygon == null ? 0 : this.polygon.hashCode());
00107 return result;
00108 }
00109 }
00110