00001 /* Auto-generated by genmsg_cpp for file /opt/ros/diamondback/stacks/ias_common/vision_srvs/srv/cop_save.srv */ 00002 00003 package ros.pkg.vision_srvs.srv; 00004 00005 import java.nio.ByteBuffer; 00006 00007 00008 public class cop_save extends ros.communication.Service<cop_save.Request, cop_save.Response> { 00009 00010 public static java.lang.String __s_getDataType() { return "vision_srvs/cop_save"; } 00011 public static java.lang.String __s_getMD5Sum() { return "93142f219ae2cf9a603f6ec6c6d6ce97"; } 00012 00013 public java.lang.String getDataType() { return cop_save.__s_getDataType(); } 00014 public java.lang.String getMD5Sum() { return cop_save.__s_getMD5Sum(); } 00015 00016 public cop_save.Request createRequest() { 00017 return new cop_save.Request(); 00018 } 00019 00020 public cop_save.Response createResponse() { 00021 return new cop_save.Response(); 00022 } 00023 00024 static public class Request extends ros.communication.Message { 00025 00026 public long object_id; 00027 00028 public Request() { 00029 } 00030 00031 public static java.lang.String __s_getDataType() { return "vision_srvs/cop_saveRequest"; } 00032 public java.lang.String getDataType() { return __s_getDataType(); } 00033 public static java.lang.String __s_getMD5Sum() { return "039cdc2e4e021929b349f87d86d0ea70"; } 00034 public java.lang.String getMD5Sum() { return __s_getMD5Sum(); } 00035 public static java.lang.String __s_getServerMD5Sum() { return "93142f219ae2cf9a603f6ec6c6d6ce97"; } 00036 public java.lang.String getServerMD5Sum() { return __s_getServerMD5Sum(); } 00037 public static java.lang.String __s_getMessageDefinition() { return "\n" + 00038 "\n" + 00039 "uint64 object_id\n" + 00040 "\n" + 00041 ""; } 00042 public java.lang.String getMessageDefinition() { return __s_getMessageDefinition(); } 00043 00044 public Request clone() { 00045 Request c = new Request(); 00046 c.deserialize(serialize(0)); 00047 return c; 00048 } 00049 00050 public void setTo(ros.communication.Message m) { 00051 deserialize(m.serialize(0)); 00052 } 00053 00054 public int serializationLength() { 00055 int __l = 0; 00056 __l += 8; // object_id 00057 return __l; 00058 } 00059 00060 public void serialize(ByteBuffer bb, int seq) { 00061 bb.putLong(object_id); 00062 } 00063 00064 public void deserialize(ByteBuffer bb) { 00065 object_id = bb.getLong(); 00066 } 00067 00068 @SuppressWarnings("all") 00069 public boolean equals(Object o) { 00070 if(!(o instanceof Request)) 00071 return false; 00072 Request other = (Request) o; 00073 return 00074 object_id == other.object_id && 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 + (int)(this.object_id ^ (this.object_id >>> 32)); 00084 return result; 00085 } 00086 } // class Request 00087 00088 static public class Response extends ros.communication.Message { 00089 00090 public java.lang.String xmlfilename = new java.lang.String(); 00091 public java.util.ArrayList<java.lang.String> filenames = new java.util.ArrayList<java.lang.String>(); 00092 00093 public Response() { 00094 } 00095 00096 public static java.lang.String __s_getDataType() { return "vision_srvs/cop_saveResponse"; } 00097 public java.lang.String getDataType() { return __s_getDataType(); } 00098 public static java.lang.String __s_getMD5Sum() { return "46ca4ffd8f493ce313745f9350d57a87"; } 00099 public java.lang.String getMD5Sum() { return __s_getMD5Sum(); } 00100 public static java.lang.String __s_getServerMD5Sum() { return "93142f219ae2cf9a603f6ec6c6d6ce97"; } 00101 public java.lang.String getServerMD5Sum() { return __s_getServerMD5Sum(); } 00102 public static java.lang.String __s_getMessageDefinition() { return "string xmlfilename\n" + 00103 "string[] filenames\n" + 00104 "\n" + 00105 "\n" + 00106 ""; } 00107 public java.lang.String getMessageDefinition() { return __s_getMessageDefinition(); } 00108 00109 public Response clone() { 00110 Response c = new Response(); 00111 c.deserialize(serialize(0)); 00112 return c; 00113 } 00114 00115 public void setTo(ros.communication.Message m) { 00116 deserialize(m.serialize(0)); 00117 } 00118 00119 public int serializationLength() { 00120 int __l = 0; 00121 __l += 4 + xmlfilename.length(); 00122 __l += 4; 00123 for(java.lang.String val : filenames) { 00124 __l += 4 + val.length(); 00125 } 00126 return __l; 00127 } 00128 00129 public void serialize(ByteBuffer bb, int seq) { 00130 Serialization.writeString(bb, xmlfilename); 00131 bb.putInt(filenames.size()); 00132 for(java.lang.String val : filenames) { 00133 Serialization.writeString(bb, val); 00134 } 00135 } 00136 00137 public void deserialize(ByteBuffer bb) { 00138 xmlfilename = Serialization.readString(bb); 00139 00140 int __filenames_len = bb.getInt(); 00141 filenames = new java.util.ArrayList<java.lang.String>(__filenames_len); 00142 for(int __i=0; __i<__filenames_len; __i++) { 00143 filenames.add(Serialization.readString(bb)); 00144 } 00145 } 00146 00147 @SuppressWarnings("all") 00148 public boolean equals(Object o) { 00149 if(!(o instanceof Response)) 00150 return false; 00151 Response other = (Response) o; 00152 return 00153 xmlfilename.equals(other.xmlfilename) && 00154 filenames.equals(other.filenames) && 00155 true; 00156 } 00157 00158 @SuppressWarnings("all") 00159 public int hashCode() { 00160 final int prime = 31; 00161 int result = 1; 00162 long tmp; 00163 result = prime * result + (this.xmlfilename == null ? 0 : this.xmlfilename.hashCode()); 00164 result = prime * result + (this.filenames == null ? 0 : this.filenames.hashCode()); 00165 return result; 00166 } 00167 } // class Response 00168 00169 } //class 00170