00001
00002
00003 package ros.pkg.geometry_msgs.msg;
00004
00005 import java.nio.ByteBuffer;
00006
00007 public class QuaternionStamped 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.Quaternion quaternion = new ros.pkg.geometry_msgs.msg.Quaternion();
00011
00012 public QuaternionStamped() {
00013 }
00014
00015 public static java.lang.String __s_getDataType() { return "geometry_msgs/QuaternionStamped"; }
00016 public java.lang.String getDataType() { return __s_getDataType(); }
00017 public static java.lang.String __s_getMD5Sum() { return "e57f1e547e0e1fd13504588ffc8334e2"; }
00018 public java.lang.String getMD5Sum() { return __s_getMD5Sum(); }
00019 public static java.lang.String __s_getMessageDefinition() { return "# This represents an orientation with reference coordinate frame and timestamp.\n" +
00020 "\n" +
00021 "Header header\n" +
00022 "Quaternion quaternion\n" +
00023 "\n" +
00024 "================================================================================\n" +
00025 "MSG: std_msgs/Header\n" +
00026 "# Standard metadata for higher-level stamped data types.\n" +
00027 "# This is generally used to communicate timestamped data \n" +
00028 "# in a particular coordinate frame.\n" +
00029 "# \n" +
00030 "# sequence ID: consecutively increasing ID \n" +
00031 "uint32 seq\n" +
00032 "#Two-integer timestamp that is expressed as:\n" +
00033 "# * stamp.secs: seconds (stamp_secs) since epoch\n" +
00034 "# * stamp.nsecs: nanoseconds since stamp_secs\n" +
00035 "# time-handling sugar is provided by the client library\n" +
00036 "time stamp\n" +
00037 "#Frame this data is associated with\n" +
00038 "# 0: no frame\n" +
00039 "# 1: global frame\n" +
00040 "string frame_id\n" +
00041 "\n" +
00042 "================================================================================\n" +
00043 "MSG: geometry_msgs/Quaternion\n" +
00044 "# This represents an orientation in free space in quaternion form.\n" +
00045 "\n" +
00046 "float64 x\n" +
00047 "float64 y\n" +
00048 "float64 z\n" +
00049 "float64 w\n" +
00050 "\n" +
00051 ""; }
00052 public java.lang.String getMessageDefinition() { return __s_getMessageDefinition(); }
00053
00054 public QuaternionStamped clone() {
00055 QuaternionStamped c = new QuaternionStamped();
00056 c.deserialize(serialize(0));
00057 return c;
00058 }
00059
00060 public void setTo(ros.communication.Message m) {
00061 deserialize(m.serialize(0));
00062 }
00063
00064 public int serializationLength() {
00065 int __l = 0;
00066 __l += header.serializationLength();
00067 __l += quaternion.serializationLength();
00068 return __l;
00069 }
00070
00071 public void serialize(ByteBuffer bb, int seq) {
00072 header.serialize(bb, seq);
00073 quaternion.serialize(bb, seq);
00074 }
00075
00076 public void deserialize(ByteBuffer bb) {
00077 header.deserialize(bb);
00078 quaternion.deserialize(bb);
00079 }
00080
00081 @SuppressWarnings("all")
00082 public boolean equals(Object o) {
00083 if(!(o instanceof QuaternionStamped))
00084 return false;
00085 QuaternionStamped other = (QuaternionStamped) o;
00086 return
00087 header.equals(other.header) &&
00088 quaternion.equals(other.quaternion) &&
00089 true;
00090 }
00091
00092 @SuppressWarnings("all")
00093 public int hashCode() {
00094 final int prime = 31;
00095 int result = 1;
00096 long tmp;
00097 result = prime * result + (this.header == null ? 0 : this.header.hashCode());
00098 result = prime * result + (this.quaternion == null ? 0 : this.quaternion.hashCode());
00099 return result;
00100 }
00101 }
00102