00001 /* Auto-generated by genmsg_cpp for file /tmp/buildd/ros-diamondback-knowrob-0.2.0/debian/ros-diamondback-knowrob/opt/ros/diamondback/stacks/knowrob/comp_cop/srv/LookupBarcode.srv */ 00002 00003 package ros.pkg.comp_cop.srv; 00004 00005 import java.nio.ByteBuffer; 00006 00007 00008 public class LookupBarcode extends ros.communication.Service<LookupBarcode.Request, LookupBarcode.Response> { 00009 00010 public static java.lang.String __s_getDataType() { return "comp_cop/LookupBarcode"; } 00011 public static java.lang.String __s_getMD5Sum() { return "591cf499868ba65dc38bba41446b03a9"; } 00012 00013 public java.lang.String getDataType() { return LookupBarcode.__s_getDataType(); } 00014 public java.lang.String getMD5Sum() { return LookupBarcode.__s_getMD5Sum(); } 00015 00016 public LookupBarcode.Request createRequest() { 00017 return new LookupBarcode.Request(); 00018 } 00019 00020 public LookupBarcode.Response createResponse() { 00021 return new LookupBarcode.Response(); 00022 } 00023 00024 static public class Request extends ros.communication.Message { 00025 00026 public java.lang.String ean = new java.lang.String(); 00027 00028 public Request() { 00029 } 00030 00031 public static java.lang.String __s_getDataType() { return "comp_cop/LookupBarcodeRequest"; } 00032 public java.lang.String getDataType() { return __s_getDataType(); } 00033 public static java.lang.String __s_getMD5Sum() { return "8fe79eda5fcb64e5c9526fa12bf35185"; } 00034 public java.lang.String getMD5Sum() { return __s_getMD5Sum(); } 00035 public static java.lang.String __s_getServerMD5Sum() { return "591cf499868ba65dc38bba41446b03a9"; } 00036 public java.lang.String getServerMD5Sum() { return __s_getServerMD5Sum(); } 00037 public static java.lang.String __s_getMessageDefinition() { return "string ean\n" + 00038 "\n" + 00039 ""; } 00040 public java.lang.String getMessageDefinition() { return __s_getMessageDefinition(); } 00041 00042 public Request clone() { 00043 Request c = new Request(); 00044 c.deserialize(serialize(0)); 00045 return c; 00046 } 00047 00048 public void setTo(ros.communication.Message m) { 00049 deserialize(m.serialize(0)); 00050 } 00051 00052 public int serializationLength() { 00053 int __l = 0; 00054 __l += 4 + ean.length(); 00055 return __l; 00056 } 00057 00058 public void serialize(ByteBuffer bb, int seq) { 00059 Serialization.writeString(bb, ean); 00060 } 00061 00062 public void deserialize(ByteBuffer bb) { 00063 ean = Serialization.readString(bb); 00064 } 00065 00066 @SuppressWarnings("all") 00067 public boolean equals(Object o) { 00068 if(!(o instanceof Request)) 00069 return false; 00070 Request other = (Request) o; 00071 return 00072 ean.equals(other.ean) && 00073 true; 00074 } 00075 00076 @SuppressWarnings("all") 00077 public int hashCode() { 00078 final int prime = 31; 00079 int result = 1; 00080 long tmp; 00081 result = prime * result + (this.ean == null ? 0 : this.ean.hashCode()); 00082 return result; 00083 } 00084 } // class Request 00085 00086 static public class Response extends ros.communication.Message { 00087 00088 public java.lang.String objectclass = new java.lang.String(); 00089 00090 public Response() { 00091 } 00092 00093 public static java.lang.String __s_getDataType() { return "comp_cop/LookupBarcodeResponse"; } 00094 public java.lang.String getDataType() { return __s_getDataType(); } 00095 public static java.lang.String __s_getMD5Sum() { return "bed7b174870245b52201d473100ab36a"; } 00096 public java.lang.String getMD5Sum() { return __s_getMD5Sum(); } 00097 public static java.lang.String __s_getServerMD5Sum() { return "591cf499868ba65dc38bba41446b03a9"; } 00098 public java.lang.String getServerMD5Sum() { return __s_getServerMD5Sum(); } 00099 public static java.lang.String __s_getMessageDefinition() { return "string objectclass\n" + 00100 "\n" + 00101 "\n" + 00102 ""; } 00103 public java.lang.String getMessageDefinition() { return __s_getMessageDefinition(); } 00104 00105 public Response clone() { 00106 Response c = new Response(); 00107 c.deserialize(serialize(0)); 00108 return c; 00109 } 00110 00111 public void setTo(ros.communication.Message m) { 00112 deserialize(m.serialize(0)); 00113 } 00114 00115 public int serializationLength() { 00116 int __l = 0; 00117 __l += 4 + objectclass.length(); 00118 return __l; 00119 } 00120 00121 public void serialize(ByteBuffer bb, int seq) { 00122 Serialization.writeString(bb, objectclass); 00123 } 00124 00125 public void deserialize(ByteBuffer bb) { 00126 objectclass = Serialization.readString(bb); 00127 } 00128 00129 @SuppressWarnings("all") 00130 public boolean equals(Object o) { 00131 if(!(o instanceof Response)) 00132 return false; 00133 Response other = (Response) o; 00134 return 00135 objectclass.equals(other.objectclass) && 00136 true; 00137 } 00138 00139 @SuppressWarnings("all") 00140 public int hashCode() { 00141 final int prime = 31; 00142 int result = 1; 00143 long tmp; 00144 result = prime * result + (this.objectclass == null ? 0 : this.objectclass.hashCode()); 00145 return result; 00146 } 00147 } // class Response 00148 00149 } //class 00150