00001 /* Auto-generated by genmsg_java.py for file /opt/ros/diamondback/stacks/ias_common/vision_msgs/msg/pp_status.msg */ 00002 00003 package ros.pkg.vision_msgs.msg; 00004 00005 import java.nio.ByteBuffer; 00006 00007 public class pp_status extends ros.communication.Message { 00008 static public final long STARTED = 0; 00009 static public final long TERMINATED = 1; 00010 static public final long EVALUATED = 2; 00011 static public final long DELETABLE = 3; 00012 00013 public long perception_primitive; 00014 public long status; 00015 00016 public pp_status() { 00017 } 00018 00019 public static java.lang.String __s_getDataType() { return "vision_msgs/pp_status"; } 00020 public java.lang.String getDataType() { return __s_getDataType(); } 00021 public static java.lang.String __s_getMD5Sum() { return "3fae99b8c6b5e7dcd495e396abef123c"; } 00022 public java.lang.String getMD5Sum() { return __s_getMD5Sum(); } 00023 public static java.lang.String __s_getMessageDefinition() { return "uint64 STARTED = 0\n" + 00024 "uint64 TERMINATED = 1\n" + 00025 "uint64 EVALUATED = 2\n" + 00026 "uint64 DELETABLE = 3\n" + 00027 "\n" + 00028 "uint64 perception_primitive\n" + 00029 "uint64 status\n" + 00030 ""; } 00031 public java.lang.String getMessageDefinition() { return __s_getMessageDefinition(); } 00032 00033 public pp_status clone() { 00034 pp_status c = new pp_status(); 00035 c.deserialize(serialize(0)); 00036 return c; 00037 } 00038 00039 public void setTo(ros.communication.Message m) { 00040 deserialize(m.serialize(0)); 00041 } 00042 00043 public int serializationLength() { 00044 int __l = 0; 00045 __l += 8; // perception_primitive 00046 __l += 8; // status 00047 return __l; 00048 } 00049 00050 public void serialize(ByteBuffer bb, int seq) { 00051 bb.putLong(perception_primitive); 00052 bb.putLong(status); 00053 } 00054 00055 public void deserialize(ByteBuffer bb) { 00056 perception_primitive = bb.getLong(); 00057 status = bb.getLong(); 00058 } 00059 00060 @SuppressWarnings("all") 00061 public boolean equals(Object o) { 00062 if(!(o instanceof pp_status)) 00063 return false; 00064 pp_status other = (pp_status) o; 00065 return 00066 perception_primitive == other.perception_primitive && 00067 status == other.status && 00068 true; 00069 } 00070 00071 @SuppressWarnings("all") 00072 public int hashCode() { 00073 final int prime = 31; 00074 int result = 1; 00075 long tmp; 00076 result = prime * result + (int)(this.perception_primitive ^ (this.perception_primitive >>> 32)); 00077 result = prime * result + (int)(this.status ^ (this.status >>> 32)); 00078 return result; 00079 } 00080 } // class pp_status 00081