00001 /* Auto-generated by genmsg_java.py for file /opt/ros/diamondback/stacks/ias_common/vision_msgs/msg/object_algorithm_relation.msg */ 00002 00003 package ros.pkg.vision_msgs.msg; 00004 00005 import java.nio.ByteBuffer; 00006 00007 public class object_algorithm_relation extends ros.communication.Message { 00008 00009 public long object_id; 00010 public double basic_evaluation; 00011 00012 public object_algorithm_relation() { 00013 } 00014 00015 public static java.lang.String __s_getDataType() { return "vision_msgs/object_algorithm_relation"; } 00016 public java.lang.String getDataType() { return __s_getDataType(); } 00017 public static java.lang.String __s_getMD5Sum() { return "cd3cdaec348b9eb7fbe3e45f8d5c8720"; } 00018 public java.lang.String getMD5Sum() { return __s_getMD5Sum(); } 00019 public static java.lang.String __s_getMessageDefinition() { return "#Message that contains basic information regarding the evaluation of an algorithm and its objects U. Klank klank@in.tum.de\n" + 00020 "uint64 object_id\n" + 00021 "float64 basic_evaluation \n" + 00022 "\n" + 00023 ""; } 00024 public java.lang.String getMessageDefinition() { return __s_getMessageDefinition(); } 00025 00026 public object_algorithm_relation clone() { 00027 object_algorithm_relation c = new object_algorithm_relation(); 00028 c.deserialize(serialize(0)); 00029 return c; 00030 } 00031 00032 public void setTo(ros.communication.Message m) { 00033 deserialize(m.serialize(0)); 00034 } 00035 00036 public int serializationLength() { 00037 int __l = 0; 00038 __l += 8; // object_id 00039 __l += 8; // basic_evaluation 00040 return __l; 00041 } 00042 00043 public void serialize(ByteBuffer bb, int seq) { 00044 bb.putLong(object_id); 00045 bb.putDouble(basic_evaluation); 00046 } 00047 00048 public void deserialize(ByteBuffer bb) { 00049 object_id = bb.getLong(); 00050 basic_evaluation = bb.getDouble(); 00051 } 00052 00053 @SuppressWarnings("all") 00054 public boolean equals(Object o) { 00055 if(!(o instanceof object_algorithm_relation)) 00056 return false; 00057 object_algorithm_relation other = (object_algorithm_relation) o; 00058 return 00059 object_id == other.object_id && 00060 basic_evaluation == other.basic_evaluation && 00061 true; 00062 } 00063 00064 @SuppressWarnings("all") 00065 public int hashCode() { 00066 final int prime = 31; 00067 int result = 1; 00068 long tmp; 00069 result = prime * result + (int)(this.object_id ^ (this.object_id >>> 32)); 00070 result = prime * result + (int)((tmp = Double.doubleToLongBits(this.basic_evaluation)) ^ (tmp >>> 32)); 00071 return result; 00072 } 00073 } // class object_algorithm_relation 00074