00001
00002
00003 package ros.pkg.vision_msgs.msg;
00004
00005 import java.nio.ByteBuffer;
00006
00007 public class aposteriori_position extends ros.communication.Message {
00008
00009 public long objectId;
00010 public double probability;
00011 public long position;
00012 public java.util.ArrayList<ros.pkg.vision_msgs.msg.cop_descriptor> models = new java.util.ArrayList<ros.pkg.vision_msgs.msg.cop_descriptor>();
00013
00014 public aposteriori_position() {
00015 }
00016
00017 public static java.lang.String __s_getDataType() { return "vision_msgs/aposteriori_position"; }
00018 public java.lang.String getDataType() { return __s_getDataType(); }
00019 public static java.lang.String __s_getMD5Sum() { return "37ac3556838265f37bdeb19748c025fb"; }
00020 public java.lang.String getMD5Sum() { return __s_getMD5Sum(); }
00021 public static java.lang.String __s_getMessageDefinition() { return "#objects a posteriori position, U. Klank klank@in.tum.de\n" +
00022 "uint64 objectId #id of an cop object\n" +
00023 "float64 probability #approximated a posteriori probability of the object beeing at the position\n" +
00024 "uint64 position #lo id of an position\n" +
00025 "cop_descriptor[] models #list of all models assigned to the returned object\n" +
00026 "================================================================================\n" +
00027 "MSG: vision_msgs/cop_descriptor\n" +
00028 "#Descriptors of models used in cop, U. Klank klank@in.tum.de\n" +
00029 "uint64 object_id # unique id that could be used for a query\n" +
00030 "string sem_class # connected semantic concept\n" +
00031 "string type # Class name that was used to generate the corresponding cop descriptor plugin, \n" +
00032 " # example are: ShapeModel, ColorClass, DeformShapeModel\n" +
00033 "float64 quality # the current quality assinged to this descriptor\n" +
00034 "\n" +
00035 "\n" +
00036 "\n" +
00037 "\n" +
00038 ""; }
00039 public java.lang.String getMessageDefinition() { return __s_getMessageDefinition(); }
00040
00041 public aposteriori_position clone() {
00042 aposteriori_position c = new aposteriori_position();
00043 c.deserialize(serialize(0));
00044 return c;
00045 }
00046
00047 public void setTo(ros.communication.Message m) {
00048 deserialize(m.serialize(0));
00049 }
00050
00051 public int serializationLength() {
00052 int __l = 0;
00053 __l += 8;
00054 __l += 8;
00055 __l += 8;
00056 __l += 4;
00057 for(ros.pkg.vision_msgs.msg.cop_descriptor val : models) {
00058 __l += val.serializationLength();
00059 }
00060 return __l;
00061 }
00062
00063 public void serialize(ByteBuffer bb, int seq) {
00064 bb.putLong(objectId);
00065 bb.putDouble(probability);
00066 bb.putLong(position);
00067 bb.putInt(models.size());
00068 for(ros.pkg.vision_msgs.msg.cop_descriptor val : models) {
00069 val.serialize(bb, seq);
00070 }
00071 }
00072
00073 public void deserialize(ByteBuffer bb) {
00074 objectId = bb.getLong();
00075 probability = bb.getDouble();
00076 position = bb.getLong();
00077
00078 int __models_len = bb.getInt();
00079 models = new java.util.ArrayList<ros.pkg.vision_msgs.msg.cop_descriptor>(__models_len);
00080 for(int __i=0; __i<__models_len; __i++) {
00081 ros.pkg.vision_msgs.msg.cop_descriptor __tmp = new ros.pkg.vision_msgs.msg.cop_descriptor();
00082 __tmp.deserialize(bb);
00083 models.add(__tmp);;
00084 }
00085 }
00086
00087 @SuppressWarnings("all")
00088 public boolean equals(Object o) {
00089 if(!(o instanceof aposteriori_position))
00090 return false;
00091 aposteriori_position other = (aposteriori_position) o;
00092 return
00093 objectId == other.objectId &&
00094 probability == other.probability &&
00095 position == other.position &&
00096 models.equals(other.models) &&
00097 true;
00098 }
00099
00100 @SuppressWarnings("all")
00101 public int hashCode() {
00102 final int prime = 31;
00103 int result = 1;
00104 long tmp;
00105 result = prime * result + (int)(this.objectId ^ (this.objectId >>> 32));
00106 result = prime * result + (int)((tmp = Double.doubleToLongBits(this.probability)) ^ (tmp >>> 32));
00107 result = prime * result + (int)(this.position ^ (this.position >>> 32));
00108 result = prime * result + (this.models == null ? 0 : this.models.hashCode());
00109 return result;
00110 }
00111 }
00112