00001
00002
00003 package ros.pkg.geometry_msgs.msg;
00004
00005 import java.nio.ByteBuffer;
00006
00007 public class Vector3Stamped 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.Vector3 vector = new ros.pkg.geometry_msgs.msg.Vector3();
00011
00012 public Vector3Stamped() {
00013 }
00014
00015 public static java.lang.String __s_getDataType() { return "geometry_msgs/Vector3Stamped"; }
00016 public java.lang.String getDataType() { return __s_getDataType(); }
00017 public static java.lang.String __s_getMD5Sum() { return "7b324c7325e683bf02a9b14b01090ec7"; }
00018 public java.lang.String getMD5Sum() { return __s_getMD5Sum(); }
00019 public static java.lang.String __s_getMessageDefinition() { return "# This represents a Vector3 with reference coordinate frame and timestamp\n" +
00020 "Header header\n" +
00021 "Vector3 vector\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/Vector3\n" +
00043 "# This represents a vector in free space. \n" +
00044 "\n" +
00045 "float64 x\n" +
00046 "float64 y\n" +
00047 "float64 z\n" +
00048 ""; }
00049 public java.lang.String getMessageDefinition() { return __s_getMessageDefinition(); }
00050
00051 public Vector3Stamped clone() {
00052 Vector3Stamped c = new Vector3Stamped();
00053 c.deserialize(serialize(0));
00054 return c;
00055 }
00056
00057 public void setTo(ros.communication.Message m) {
00058 deserialize(m.serialize(0));
00059 }
00060
00061 public int serializationLength() {
00062 int __l = 0;
00063 __l += header.serializationLength();
00064 __l += vector.serializationLength();
00065 return __l;
00066 }
00067
00068 public void serialize(ByteBuffer bb, int seq) {
00069 header.serialize(bb, seq);
00070 vector.serialize(bb, seq);
00071 }
00072
00073 public void deserialize(ByteBuffer bb) {
00074 header.deserialize(bb);
00075 vector.deserialize(bb);
00076 }
00077
00078 @SuppressWarnings("all")
00079 public boolean equals(Object o) {
00080 if(!(o instanceof Vector3Stamped))
00081 return false;
00082 Vector3Stamped other = (Vector3Stamped) o;
00083 return
00084 header.equals(other.header) &&
00085 vector.equals(other.vector) &&
00086 true;
00087 }
00088
00089 @SuppressWarnings("all")
00090 public int hashCode() {
00091 final int prime = 31;
00092 int result = 1;
00093 long tmp;
00094 result = prime * result + (this.header == null ? 0 : this.header.hashCode());
00095 result = prime * result + (this.vector == null ? 0 : this.vector.hashCode());
00096 return result;
00097 }
00098 }
00099