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