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