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