00001 /* Auto-generated by genmsg_java.py for file /opt/ros/diamondback/stacks/common_msgs/geometry_msgs/msg/Transform.msg */ 00002 00003 package ros.pkg.geometry_msgs.msg; 00004 00005 import java.nio.ByteBuffer; 00006 00007 public class Transform extends ros.communication.Message { 00008 00009 public ros.pkg.geometry_msgs.msg.Vector3 translation = new ros.pkg.geometry_msgs.msg.Vector3(); 00010 public ros.pkg.geometry_msgs.msg.Quaternion rotation = new ros.pkg.geometry_msgs.msg.Quaternion(); 00011 00012 public Transform() { 00013 } 00014 00015 public static java.lang.String __s_getDataType() { return "geometry_msgs/Transform"; } 00016 public java.lang.String getDataType() { return __s_getDataType(); } 00017 public static java.lang.String __s_getMD5Sum() { return "ac9eff44abf714214112b05d54a3cf9b"; } 00018 public java.lang.String getMD5Sum() { return __s_getMD5Sum(); } 00019 public static java.lang.String __s_getMessageDefinition() { return "# This represents the transform between two coordinate frames in free space.\n" + 00020 "\n" + 00021 "Vector3 translation\n" + 00022 "Quaternion rotation\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 "================================================================================\n" + 00032 "MSG: geometry_msgs/Quaternion\n" + 00033 "# This represents an orientation in free space in quaternion form.\n" + 00034 "\n" + 00035 "float64 x\n" + 00036 "float64 y\n" + 00037 "float64 z\n" + 00038 "float64 w\n" + 00039 "\n" + 00040 ""; } 00041 public java.lang.String getMessageDefinition() { return __s_getMessageDefinition(); } 00042 00043 public Transform clone() { 00044 Transform c = new Transform(); 00045 c.deserialize(serialize(0)); 00046 return c; 00047 } 00048 00049 public void setTo(ros.communication.Message m) { 00050 deserialize(m.serialize(0)); 00051 } 00052 00053 public int serializationLength() { 00054 int __l = 0; 00055 __l += translation.serializationLength(); 00056 __l += rotation.serializationLength(); 00057 return __l; 00058 } 00059 00060 public void serialize(ByteBuffer bb, int seq) { 00061 translation.serialize(bb, seq); 00062 rotation.serialize(bb, seq); 00063 } 00064 00065 public void deserialize(ByteBuffer bb) { 00066 translation.deserialize(bb); 00067 rotation.deserialize(bb); 00068 } 00069 00070 @SuppressWarnings("all") 00071 public boolean equals(Object o) { 00072 if(!(o instanceof Transform)) 00073 return false; 00074 Transform other = (Transform) o; 00075 return 00076 translation.equals(other.translation) && 00077 rotation.equals(other.rotation) && 00078 true; 00079 } 00080 00081 @SuppressWarnings("all") 00082 public int hashCode() { 00083 final int prime = 31; 00084 int result = 1; 00085 long tmp; 00086 result = prime * result + (this.translation == null ? 0 : this.translation.hashCode()); 00087 result = prime * result + (this.rotation == null ? 0 : this.rotation.hashCode()); 00088 return result; 00089 } 00090 } // class Transform 00091