00001 /* Auto-generated by genmsg_java.py for file /opt/ros/diamondback/stacks/common_msgs/geometry_msgs/msg/Wrench.msg */ 00002 00003 package ros.pkg.geometry_msgs.msg; 00004 00005 import java.nio.ByteBuffer; 00006 00007 public class Wrench extends ros.communication.Message { 00008 00009 public ros.pkg.geometry_msgs.msg.Vector3 force = new ros.pkg.geometry_msgs.msg.Vector3(); 00010 public ros.pkg.geometry_msgs.msg.Vector3 torque = new ros.pkg.geometry_msgs.msg.Vector3(); 00011 00012 public Wrench() { 00013 } 00014 00015 public static java.lang.String __s_getDataType() { return "geometry_msgs/Wrench"; } 00016 public java.lang.String getDataType() { return __s_getDataType(); } 00017 public static java.lang.String __s_getMD5Sum() { return "4f539cf138b23283b520fd271b567936"; } 00018 public java.lang.String getMD5Sum() { return __s_getMD5Sum(); } 00019 public static java.lang.String __s_getMessageDefinition() { return "# This represents force in free space, seperated into \n" + 00020 "# it's linear and angular parts. \n" + 00021 "Vector3 force\n" + 00022 "Vector3 torque\n" + 00023 "\n" + 00024 "================================================================================\n" + 00025 "MSG: geometry_msgs/Vector3\n" + 00026 "# This represents a vector in free space. \n" + 00027 "\n" + 00028 "float64 x\n" + 00029 "float64 y\n" + 00030 "float64 z\n" + 00031 ""; } 00032 public java.lang.String getMessageDefinition() { return __s_getMessageDefinition(); } 00033 00034 public Wrench clone() { 00035 Wrench c = new Wrench(); 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 += force.serializationLength(); 00047 __l += torque.serializationLength(); 00048 return __l; 00049 } 00050 00051 public void serialize(ByteBuffer bb, int seq) { 00052 force.serialize(bb, seq); 00053 torque.serialize(bb, seq); 00054 } 00055 00056 public void deserialize(ByteBuffer bb) { 00057 force.deserialize(bb); 00058 torque.deserialize(bb); 00059 } 00060 00061 @SuppressWarnings("all") 00062 public boolean equals(Object o) { 00063 if(!(o instanceof Wrench)) 00064 return false; 00065 Wrench other = (Wrench) o; 00066 return 00067 force.equals(other.force) && 00068 torque.equals(other.torque) && 00069 true; 00070 } 00071 00072 @SuppressWarnings("all") 00073 public int hashCode() { 00074 final int prime = 31; 00075 int result = 1; 00076 long tmp; 00077 result = prime * result + (this.force == null ? 0 : this.force.hashCode()); 00078 result = prime * result + (this.torque == null ? 0 : this.torque.hashCode()); 00079 return result; 00080 } 00081 } // class Wrench 00082