00001 /* Auto-generated by genmsg_java.py for file /opt/ros/diamondback/stacks/ias_common/vision_msgs/msg/apriori_position.msg */ 00002 00003 package ros.pkg.vision_msgs.msg; 00004 00005 import java.nio.ByteBuffer; 00006 00007 public class apriori_position extends ros.communication.Message { 00008 00009 public double probability; 00010 public long positionId; 00011 00012 public apriori_position() { 00013 } 00014 00015 public static java.lang.String __s_getDataType() { return "vision_msgs/apriori_position"; } 00016 public java.lang.String getDataType() { return __s_getDataType(); } 00017 public static java.lang.String __s_getMD5Sum() { return "cded0e1778cd3ab0c4de7a4959714920"; } 00018 public java.lang.String getMD5Sum() { return __s_getMD5Sum(); } 00019 public static java.lang.String __s_getMessageDefinition() { return "#Tuple for cop call\n" + 00020 "float64 probability # apriori probability of the position\n" + 00021 "uint64 positionId # lo id of an position\n" + 00022 "\n" + 00023 ""; } 00024 public java.lang.String getMessageDefinition() { return __s_getMessageDefinition(); } 00025 00026 public apriori_position clone() { 00027 apriori_position c = new apriori_position(); 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; // probability 00039 __l += 8; // positionId 00040 return __l; 00041 } 00042 00043 public void serialize(ByteBuffer bb, int seq) { 00044 bb.putDouble(probability); 00045 bb.putLong(positionId); 00046 } 00047 00048 public void deserialize(ByteBuffer bb) { 00049 probability = bb.getDouble(); 00050 positionId = bb.getLong(); 00051 } 00052 00053 @SuppressWarnings("all") 00054 public boolean equals(Object o) { 00055 if(!(o instanceof apriori_position)) 00056 return false; 00057 apriori_position other = (apriori_position) o; 00058 return 00059 probability == other.probability && 00060 positionId == other.positionId && 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)((tmp = Double.doubleToLongBits(this.probability)) ^ (tmp >>> 32)); 00070 result = prime * result + (int)(this.positionId ^ (this.positionId >>> 32)); 00071 return result; 00072 } 00073 } // class apriori_position 00074