00001
00002
00003 package ros.pkg.vision_msgs.msg;
00004
00005 import java.nio.ByteBuffer;
00006
00007 public class cop_descriptor extends ros.communication.Message {
00008
00009 public long object_id;
00010 public java.lang.String sem_class = new java.lang.String();
00011 public java.lang.String type = new java.lang.String();
00012 public double quality;
00013
00014 public cop_descriptor() {
00015 }
00016
00017 public static java.lang.String __s_getDataType() { return "vision_msgs/cop_descriptor"; }
00018 public java.lang.String getDataType() { return __s_getDataType(); }
00019 public static java.lang.String __s_getMD5Sum() { return "da820395d349a763f46d0925861440b9"; }
00020 public java.lang.String getMD5Sum() { return __s_getMD5Sum(); }
00021 public static java.lang.String __s_getMessageDefinition() { return "#Descriptors of models used in cop, U. Klank klank@in.tum.de\n" +
00022 "uint64 object_id # unique id that could be used for a query\n" +
00023 "string sem_class # connected semantic concept\n" +
00024 "string type # Class name that was used to generate the corresponding cop descriptor plugin, \n" +
00025 " # example are: ShapeModel, ColorClass, DeformShapeModel\n" +
00026 "float64 quality # the current quality assinged to this descriptor\n" +
00027 "\n" +
00028 "\n" +
00029 "\n" +
00030 "\n" +
00031 ""; }
00032 public java.lang.String getMessageDefinition() { return __s_getMessageDefinition(); }
00033
00034 public cop_descriptor clone() {
00035 cop_descriptor c = new cop_descriptor();
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 + sem_class.length();
00048 __l += 4 + type.length();
00049 __l += 8;
00050 return __l;
00051 }
00052
00053 public void serialize(ByteBuffer bb, int seq) {
00054 bb.putLong(object_id);
00055 Serialization.writeString(bb, sem_class);
00056 Serialization.writeString(bb, type);
00057 bb.putDouble(quality);
00058 }
00059
00060 public void deserialize(ByteBuffer bb) {
00061 object_id = bb.getLong();
00062 sem_class = Serialization.readString(bb);
00063 type = Serialization.readString(bb);
00064 quality = bb.getDouble();
00065 }
00066
00067 @SuppressWarnings("all")
00068 public boolean equals(Object o) {
00069 if(!(o instanceof cop_descriptor))
00070 return false;
00071 cop_descriptor other = (cop_descriptor) o;
00072 return
00073 object_id == other.object_id &&
00074 sem_class.equals(other.sem_class) &&
00075 type.equals(other.type) &&
00076 quality == other.quality &&
00077 true;
00078 }
00079
00080 @SuppressWarnings("all")
00081 public int hashCode() {
00082 final int prime = 31;
00083 int result = 1;
00084 long tmp;
00085 result = prime * result + (int)(this.object_id ^ (this.object_id >>> 32));
00086 result = prime * result + (this.sem_class == null ? 0 : this.sem_class.hashCode());
00087 result = prime * result + (this.type == null ? 0 : this.type.hashCode());
00088 result = prime * result + (int)((tmp = Double.doubleToLongBits(this.quality)) ^ (tmp >>> 32));
00089 return result;
00090 }
00091 }
00092