00001 /* Auto-generated by genmsg_java.py for file /opt/ros/diamondback/stacks/ias_common/vision_msgs/msg/system_error.msg */ 00002 00003 package ros.pkg.vision_msgs.msg; 00004 00005 import java.nio.ByteBuffer; 00006 00007 public class system_error extends ros.communication.Message { 00008 static public final long MANIPULATION_POSE_UNREACHABLE = 64; 00009 static public final long GRASP_FAILED = 128; 00010 static public final long OBJECT_NOT_FOUND = 256; 00011 static public final long VISION_PRIMITIVE_FAILED = 512; 00012 static public final long CONTRADICTING_TACTILE_FEEDBACK = 1024; 00013 static public final long CONTRADICTING_VISION_RESULTS = 2048; 00014 static public final long GRASP_FAILED_AND_CRASHED = 4096; 00015 static public final long JLO_ERROR = 8192; 00016 static public final long VECTOR_FIELD_CANT_REACH = 16384; 00017 00018 public long error_id; 00019 public java.lang.String node_name = new java.lang.String(); 00020 public java.lang.String error_description = new java.lang.String(); 00021 00022 public system_error() { 00023 } 00024 00025 public static java.lang.String __s_getDataType() { return "vision_msgs/system_error"; } 00026 public java.lang.String getDataType() { return __s_getDataType(); } 00027 public static java.lang.String __s_getMD5Sum() { return "a26e239d3a42fd6822d79621c90c2d42"; } 00028 public java.lang.String getMD5Sum() { return __s_getMD5Sum(); } 00029 public static java.lang.String __s_getMessageDefinition() { return "uint64 MANIPULATION_POSE_UNREACHABLE = 64\n" + 00030 "uint64 GRASP_FAILED = 128 # Grasp into the void\n" + 00031 "uint64 OBJECT_NOT_FOUND = 256\n" + 00032 "uint64 VISION_PRIMITIVE_FAILED = 512\n" + 00033 "uint64 CONTRADICTING_TACTILE_FEEDBACK = 1024 # Collide without expecting it\n" + 00034 "uint64 CONTRADICTING_VISION_RESULTS = 2048\n" + 00035 "uint64 GRASP_FAILED_AND_CRASHED = 4096 # Throwing something out of the way\n" + 00036 "uint64 JLO_ERROR = 8192 # Could not get position\n" + 00037 "uint64 VECTOR_FIELD_CANT_REACH = 16384 # The arm got stuck along the way, did not reach the final grasping pose\n" + 00038 "\n" + 00039 "uint64 error_id # One of the error constants defined above\n" + 00040 "string node_name # The node causing this error\n" + 00041 "string error_description # Further information about the error\n" + 00042 "\n" + 00043 ""; } 00044 public java.lang.String getMessageDefinition() { return __s_getMessageDefinition(); } 00045 00046 public system_error clone() { 00047 system_error c = new system_error(); 00048 c.deserialize(serialize(0)); 00049 return c; 00050 } 00051 00052 public void setTo(ros.communication.Message m) { 00053 deserialize(m.serialize(0)); 00054 } 00055 00056 public int serializationLength() { 00057 int __l = 0; 00058 __l += 8; // error_id 00059 __l += 4 + node_name.length(); 00060 __l += 4 + error_description.length(); 00061 return __l; 00062 } 00063 00064 public void serialize(ByteBuffer bb, int seq) { 00065 bb.putLong(error_id); 00066 Serialization.writeString(bb, node_name); 00067 Serialization.writeString(bb, error_description); 00068 } 00069 00070 public void deserialize(ByteBuffer bb) { 00071 error_id = bb.getLong(); 00072 node_name = Serialization.readString(bb); 00073 error_description = Serialization.readString(bb); 00074 } 00075 00076 @SuppressWarnings("all") 00077 public boolean equals(Object o) { 00078 if(!(o instanceof system_error)) 00079 return false; 00080 system_error other = (system_error) o; 00081 return 00082 error_id == other.error_id && 00083 node_name.equals(other.node_name) && 00084 error_description.equals(other.error_description) && 00085 true; 00086 } 00087 00088 @SuppressWarnings("all") 00089 public int hashCode() { 00090 final int prime = 31; 00091 int result = 1; 00092 long tmp; 00093 result = prime * result + (int)(this.error_id ^ (this.error_id >>> 32)); 00094 result = prime * result + (this.node_name == null ? 0 : this.node_name.hashCode()); 00095 result = prime * result + (this.error_description == null ? 0 : this.error_description.hashCode()); 00096 return result; 00097 } 00098 } // class system_error 00099