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