00001
00002
00003 package ros.pkg.vision_msgs.msg;
00004
00005 import java.nio.ByteBuffer;
00006
00007 public class partial_lo extends ros.communication.Message {
00008
00009 public long id;
00010 public java.lang.String name = new java.lang.String();
00011 public long parent_id;
00012 public double[] pose = new double[16];
00013 public double[] cov = new double[36];
00014 public int type;
00015
00016 public partial_lo() {
00017 }
00018
00019 public static java.lang.String __s_getDataType() { return "vision_msgs/partial_lo"; }
00020 public java.lang.String getDataType() { return __s_getDataType(); }
00021 public static java.lang.String __s_getMD5Sum() { return "9a220ff1483742865ee698cfec57218c"; }
00022 public java.lang.String getMD5Sum() { return __s_getMD5Sum(); }
00023 public static java.lang.String __s_getMessageDefinition() { return "# Message to quiey the lo-service, U. Klank klank@in.tum.de\n" +
00024 "uint64 id #id of a frame, there should be unique mapping from a tf-name-string to such an id\n" +
00025 "string name #optional parameter name representing a tf and knowledgebase correspondence\n" +
00026 "uint64 parent_id #id of parent frame\n" +
00027 "float64[16] pose #pose matrix, fully projective 4x4 matrix\n" +
00028 "float64[36] cov #covariance for 6 dof (xyz, rpy)\n" +
00029 "uint16 type #fixed connection with the parent (1) or free in space (0 = default)\n" +
00030 "\n" +
00031 ""; }
00032 public java.lang.String getMessageDefinition() { return __s_getMessageDefinition(); }
00033
00034 public partial_lo clone() {
00035 partial_lo c = new partial_lo();
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 += 8;
00047 __l += 4 + name.length();
00048 __l += 8;
00049 __l += 128;
00050 __l += 288;
00051 __l += 2;
00052 return __l;
00053 }
00054
00055 public void serialize(ByteBuffer bb, int seq) {
00056 bb.putLong(id);
00057 Serialization.writeString(bb, name);
00058 bb.putLong(parent_id);
00059
00060 for(double val : pose) {
00061 bb.putDouble(val);
00062 }
00063
00064 for(double val : cov) {
00065 bb.putDouble(val);
00066 }
00067 bb.putShort((short)type);
00068 }
00069
00070 public void deserialize(ByteBuffer bb) {
00071 id = bb.getLong();
00072 name = Serialization.readString(bb);
00073 parent_id = bb.getLong();
00074
00075 int __pose_len = pose.length;;
00076 pose = new double[__pose_len];
00077 for(int __i=0; __i<__pose_len; __i++) {
00078 pose[__i] = bb.getDouble();
00079 }
00080
00081 int __cov_len = cov.length;;
00082 cov = new double[__cov_len];
00083 for(int __i=0; __i<__cov_len; __i++) {
00084 cov[__i] = bb.getDouble();
00085 }
00086 type = (int)(bb.getShort() & 0xffff);
00087 }
00088
00089 @SuppressWarnings("all")
00090 public boolean equals(Object o) {
00091 if(!(o instanceof partial_lo))
00092 return false;
00093 partial_lo other = (partial_lo) o;
00094 return
00095 id == other.id &&
00096 name.equals(other.name) &&
00097 parent_id == other.parent_id &&
00098 java.util.Arrays.equals(pose, other.pose) &&
00099 java.util.Arrays.equals(cov, other.cov) &&
00100 type == other.type &&
00101 true;
00102 }
00103
00104 @SuppressWarnings("all")
00105 public int hashCode() {
00106 final int prime = 31;
00107 int result = 1;
00108 long tmp;
00109 result = prime * result + (int)(this.id ^ (this.id >>> 32));
00110 result = prime * result + (this.name == null ? 0 : this.name.hashCode());
00111 result = prime * result + (int)(this.parent_id ^ (this.parent_id >>> 32));
00112 result = prime * result + java.util.Arrays.hashCode(this.pose);
00113 result = prime * result + java.util.Arrays.hashCode(this.cov);
00114 result = prime * result + this.type;
00115 return result;
00116 }
00117 }
00118