00001
00002
00003 package ros.pkg.vision_msgs.msg;
00004
00005 import java.nio.ByteBuffer;
00006
00007 public class algorithm_evaluation extends ros.communication.Message {
00008
00009 public java.lang.String plugin_name = new java.lang.String();
00010 public double basic_evaluation;
00011 public java.util.ArrayList<ros.pkg.vision_msgs.msg.object_algorithm_relation> objects = new java.util.ArrayList<ros.pkg.vision_msgs.msg.object_algorithm_relation>();
00012
00013 public algorithm_evaluation() {
00014 }
00015
00016 public static java.lang.String __s_getDataType() { return "vision_msgs/algorithm_evaluation"; }
00017 public java.lang.String getDataType() { return __s_getDataType(); }
00018 public static java.lang.String __s_getMD5Sum() { return "e07475feaa79c93a297b4d8386124d13"; }
00019 public java.lang.String getMD5Sum() { return __s_getMD5Sum(); }
00020 public static java.lang.String __s_getMessageDefinition() { return "#Message that contains basic information regarding an algorithm U. Klank klank@in.tum.de\n" +
00021 "string plugin_name # Perception primitive that caused this answer\n" +
00022 "float64 basic_evaluation # A score describing the basic score of this algorithm, should reflect the significance of the results\n" +
00023 "object_algorithm_relation[] objects # All objects that were executed with this algotihm and their results\n" +
00024 "\n" +
00025 "================================================================================\n" +
00026 "MSG: vision_msgs/object_algorithm_relation\n" +
00027 "#Message that contains basic information regarding the evaluation of an algorithm and its objects U. Klank klank@in.tum.de\n" +
00028 "uint64 object_id\n" +
00029 "float64 basic_evaluation \n" +
00030 "\n" +
00031 ""; }
00032 public java.lang.String getMessageDefinition() { return __s_getMessageDefinition(); }
00033
00034 public algorithm_evaluation clone() {
00035 algorithm_evaluation c = new algorithm_evaluation();
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 += 4 + plugin_name.length();
00047 __l += 8;
00048 __l += 4;
00049 for(ros.pkg.vision_msgs.msg.object_algorithm_relation val : objects) {
00050 __l += val.serializationLength();
00051 }
00052 return __l;
00053 }
00054
00055 public void serialize(ByteBuffer bb, int seq) {
00056 Serialization.writeString(bb, plugin_name);
00057 bb.putDouble(basic_evaluation);
00058 bb.putInt(objects.size());
00059 for(ros.pkg.vision_msgs.msg.object_algorithm_relation val : objects) {
00060 val.serialize(bb, seq);
00061 }
00062 }
00063
00064 public void deserialize(ByteBuffer bb) {
00065 plugin_name = Serialization.readString(bb);
00066 basic_evaluation = bb.getDouble();
00067
00068 int __objects_len = bb.getInt();
00069 objects = new java.util.ArrayList<ros.pkg.vision_msgs.msg.object_algorithm_relation>(__objects_len);
00070 for(int __i=0; __i<__objects_len; __i++) {
00071 ros.pkg.vision_msgs.msg.object_algorithm_relation __tmp = new ros.pkg.vision_msgs.msg.object_algorithm_relation();
00072 __tmp.deserialize(bb);
00073 objects.add(__tmp);;
00074 }
00075 }
00076
00077 @SuppressWarnings("all")
00078 public boolean equals(Object o) {
00079 if(!(o instanceof algorithm_evaluation))
00080 return false;
00081 algorithm_evaluation other = (algorithm_evaluation) o;
00082 return
00083 plugin_name.equals(other.plugin_name) &&
00084 basic_evaluation == other.basic_evaluation &&
00085 objects.equals(other.objects) &&
00086 true;
00087 }
00088
00089 @SuppressWarnings("all")
00090 public int hashCode() {
00091 final int prime = 31;
00092 int result = 1;
00093 long tmp;
00094 result = prime * result + (this.plugin_name == null ? 0 : this.plugin_name.hashCode());
00095 result = prime * result + (int)((tmp = Double.doubleToLongBits(this.basic_evaluation)) ^ (tmp >>> 32));
00096 result = prime * result + (this.objects == null ? 0 : this.objects.hashCode());
00097 return result;
00098 }
00099 }
00100