00001 /* Auto-generated by genmsg_java.py for file /opt/ros/diamondback/stacks/ias_common/vision_msgs/msg/cop_camera_mode.msg */ 00002 00003 package ros.pkg.vision_msgs.msg; 00004 00005 import java.nio.ByteBuffer; 00006 00007 public class cop_camera_mode extends ros.communication.Message { 00008 static public final java.lang.String VERY_DARK_ENVIRONMENT = "VeryDarkEnvironment"; 00009 static public final java.lang.String DARK_ENVIRONMENT = "DarkEnvironment"; 00010 static public final java.lang.String AVERAGE_ENVIRONMENT = "AverageEnvironment"; 00011 static public final java.lang.String BRIGHT_ENVIRONMENT = "BrightEnvironment"; 00012 00013 public java.lang.String mode = new java.lang.String(); 00014 00015 public cop_camera_mode() { 00016 } 00017 00018 public static java.lang.String __s_getDataType() { return "vision_msgs/cop_camera_mode"; } 00019 public java.lang.String getDataType() { return __s_getDataType(); } 00020 public static java.lang.String __s_getMD5Sum() { return "238c3e19ca5f691ca2ef2dd46e1bb593"; } 00021 public java.lang.String getMD5Sum() { return __s_getMD5Sum(); } 00022 public static java.lang.String __s_getMessageDefinition() { return "string VERY_DARK_ENVIRONMENT=VeryDarkEnvironment\n" + 00023 "string DARK_ENVIRONMENT=DarkEnvironment\n" + 00024 "string AVERAGE_ENVIRONMENT=AverageEnvironment\n" + 00025 "string BRIGHT_ENVIRONMENT=BrightEnvironment\n" + 00026 "\n" + 00027 "string mode # switches camera to different environment modes\n" + 00028 ""; } 00029 public java.lang.String getMessageDefinition() { return __s_getMessageDefinition(); } 00030 00031 public cop_camera_mode clone() { 00032 cop_camera_mode c = new cop_camera_mode(); 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 + mode.length(); 00044 return __l; 00045 } 00046 00047 public void serialize(ByteBuffer bb, int seq) { 00048 Serialization.writeString(bb, mode); 00049 } 00050 00051 public void deserialize(ByteBuffer bb) { 00052 mode = Serialization.readString(bb); 00053 } 00054 00055 @SuppressWarnings("all") 00056 public boolean equals(Object o) { 00057 if(!(o instanceof cop_camera_mode)) 00058 return false; 00059 cop_camera_mode other = (cop_camera_mode) o; 00060 return 00061 mode.equals(other.mode) && 00062 true; 00063 } 00064 00065 @SuppressWarnings("all") 00066 public int hashCode() { 00067 final int prime = 31; 00068 int result = 1; 00069 long tmp; 00070 result = prime * result + (this.mode == null ? 0 : this.mode.hashCode()); 00071 return result; 00072 } 00073 } // class cop_camera_mode 00074