00001
00002
00003 package ros.pkg.vision_msgs.msg;
00004
00005 import java.nio.ByteBuffer;
00006
00007 public class cop_status extends ros.communication.Message {
00008
00009 public java.util.ArrayList<ros.pkg.vision_msgs.msg.pp_status> cop_status = new java.util.ArrayList<ros.pkg.vision_msgs.msg.pp_status>();
00010
00011 public cop_status() {
00012 }
00013
00014 public static java.lang.String __s_getDataType() { return "vision_msgs/cop_status"; }
00015 public java.lang.String getDataType() { return __s_getDataType(); }
00016 public static java.lang.String __s_getMD5Sum() { return "e504873492775b055bbaa660522ec9d4"; }
00017 public java.lang.String getMD5Sum() { return __s_getMD5Sum(); }
00018 public static java.lang.String __s_getMessageDefinition() { return "pp_status[] cop_status\n" +
00019 "================================================================================\n" +
00020 "MSG: vision_msgs/pp_status\n" +
00021 "uint64 STARTED = 0\n" +
00022 "uint64 TERMINATED = 1\n" +
00023 "uint64 EVALUATED = 2\n" +
00024 "uint64 DELETABLE = 3\n" +
00025 "\n" +
00026 "uint64 perception_primitive\n" +
00027 "uint64 status\n" +
00028 ""; }
00029 public java.lang.String getMessageDefinition() { return __s_getMessageDefinition(); }
00030
00031 public cop_status clone() {
00032 cop_status c = new cop_status();
00033 c.deserialize(serialize(0));
00034 return c;
00035 }
00036
00037 public void setTo(ros.communication.Message m) {
00038 deserialize(m.serialize(0));
00039 }
00040
00041 public int serializationLength() {
00042 int __l = 0;
00043 __l += 4;
00044 for(ros.pkg.vision_msgs.msg.pp_status val : cop_status) {
00045 __l += val.serializationLength();
00046 }
00047 return __l;
00048 }
00049
00050 public void serialize(ByteBuffer bb, int seq) {
00051 bb.putInt(cop_status.size());
00052 for(ros.pkg.vision_msgs.msg.pp_status val : cop_status) {
00053 val.serialize(bb, seq);
00054 }
00055 }
00056
00057 public void deserialize(ByteBuffer bb) {
00058
00059 int __cop_status_len = bb.getInt();
00060 cop_status = new java.util.ArrayList<ros.pkg.vision_msgs.msg.pp_status>(__cop_status_len);
00061 for(int __i=0; __i<__cop_status_len; __i++) {
00062 ros.pkg.vision_msgs.msg.pp_status __tmp = new ros.pkg.vision_msgs.msg.pp_status();
00063 __tmp.deserialize(bb);
00064 cop_status.add(__tmp);;
00065 }
00066 }
00067
00068 @SuppressWarnings("all")
00069 public boolean equals(Object o) {
00070 if(!(o instanceof cop_status))
00071 return false;
00072 cop_status other = (cop_status) o;
00073 return
00074 cop_status.equals(other.cop_status) &&
00075 true;
00076 }
00077
00078 @SuppressWarnings("all")
00079 public int hashCode() {
00080 final int prime = 31;
00081 int result = 1;
00082 long tmp;
00083 result = prime * result + (this.cop_status == null ? 0 : this.cop_status.hashCode());
00084 return result;
00085 }
00086 }
00087