00001
00002 #ifndef VISION_SRVS_SERVICE_COP_SAVE_H
00003 #define VISION_SRVS_SERVICE_COP_SAVE_H
00004 #include <string>
00005 #include <vector>
00006 #include <ostream>
00007 #include "ros/serialization.h"
00008 #include "ros/builtin_message_traits.h"
00009 #include "ros/message_operations.h"
00010 #include "ros/message.h"
00011 #include "ros/time.h"
00012
00013 #include "ros/service_traits.h"
00014
00015
00016
00017
00018 namespace vision_srvs
00019 {
00020 template <class ContainerAllocator>
00021 struct cop_saveRequest_ : public ros::Message
00022 {
00023 typedef cop_saveRequest_<ContainerAllocator> Type;
00024
00025 cop_saveRequest_()
00026 : object_id(0)
00027 {
00028 }
00029
00030 cop_saveRequest_(const ContainerAllocator& _alloc)
00031 : object_id(0)
00032 {
00033 }
00034
00035 typedef uint64_t _object_id_type;
00036 uint64_t object_id;
00037
00038
00039 private:
00040 static const char* __s_getDataType_() { return "vision_srvs/cop_saveRequest"; }
00041 public:
00042 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); }
00043
00044 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); }
00045
00046 private:
00047 static const char* __s_getMD5Sum_() { return "039cdc2e4e021929b349f87d86d0ea70"; }
00048 public:
00049 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); }
00050
00051 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); }
00052
00053 private:
00054 static const char* __s_getServerMD5Sum_() { return "93142f219ae2cf9a603f6ec6c6d6ce97"; }
00055 public:
00056 ROS_DEPRECATED static const std::string __s_getServerMD5Sum() { return __s_getServerMD5Sum_(); }
00057
00058 ROS_DEPRECATED const std::string __getServerMD5Sum() const { return __s_getServerMD5Sum_(); }
00059
00060 private:
00061 static const char* __s_getMessageDefinition_() { return "\n\
00062 \n\
00063 uint64 object_id\n\
00064 \n\
00065 "; }
00066 public:
00067 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); }
00068
00069 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); }
00070
00071 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const
00072 {
00073 ros::serialization::OStream stream(write_ptr, 1000000000);
00074 ros::serialization::serialize(stream, object_id);
00075 return stream.getData();
00076 }
00077
00078 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr)
00079 {
00080 ros::serialization::IStream stream(read_ptr, 1000000000);
00081 ros::serialization::deserialize(stream, object_id);
00082 return stream.getData();
00083 }
00084
00085 ROS_DEPRECATED virtual uint32_t serializationLength() const
00086 {
00087 uint32_t size = 0;
00088 size += ros::serialization::serializationLength(object_id);
00089 return size;
00090 }
00091
00092 typedef boost::shared_ptr< ::vision_srvs::cop_saveRequest_<ContainerAllocator> > Ptr;
00093 typedef boost::shared_ptr< ::vision_srvs::cop_saveRequest_<ContainerAllocator> const> ConstPtr;
00094 };
00095 typedef ::vision_srvs::cop_saveRequest_<std::allocator<void> > cop_saveRequest;
00096
00097 typedef boost::shared_ptr< ::vision_srvs::cop_saveRequest> cop_saveRequestPtr;
00098 typedef boost::shared_ptr< ::vision_srvs::cop_saveRequest const> cop_saveRequestConstPtr;
00099
00100
00101 template <class ContainerAllocator>
00102 struct cop_saveResponse_ : public ros::Message
00103 {
00104 typedef cop_saveResponse_<ContainerAllocator> Type;
00105
00106 cop_saveResponse_()
00107 : xmlfilename()
00108 , filenames()
00109 {
00110 }
00111
00112 cop_saveResponse_(const ContainerAllocator& _alloc)
00113 : xmlfilename(_alloc)
00114 , filenames(_alloc)
00115 {
00116 }
00117
00118 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _xmlfilename_type;
00119 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > xmlfilename;
00120
00121 typedef std::vector<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > , typename ContainerAllocator::template rebind<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::other > _filenames_type;
00122 std::vector<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > , typename ContainerAllocator::template rebind<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::other > filenames;
00123
00124
00125 ROS_DEPRECATED uint32_t get_filenames_size() const { return (uint32_t)filenames.size(); }
00126 ROS_DEPRECATED void set_filenames_size(uint32_t size) { filenames.resize((size_t)size); }
00127 ROS_DEPRECATED void get_filenames_vec(std::vector<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > , typename ContainerAllocator::template rebind<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::other > & vec) const { vec = this->filenames; }
00128 ROS_DEPRECATED void set_filenames_vec(const std::vector<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > , typename ContainerAllocator::template rebind<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::other > & vec) { this->filenames = vec; }
00129 private:
00130 static const char* __s_getDataType_() { return "vision_srvs/cop_saveResponse"; }
00131 public:
00132 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); }
00133
00134 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); }
00135
00136 private:
00137 static const char* __s_getMD5Sum_() { return "46ca4ffd8f493ce313745f9350d57a87"; }
00138 public:
00139 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); }
00140
00141 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); }
00142
00143 private:
00144 static const char* __s_getServerMD5Sum_() { return "93142f219ae2cf9a603f6ec6c6d6ce97"; }
00145 public:
00146 ROS_DEPRECATED static const std::string __s_getServerMD5Sum() { return __s_getServerMD5Sum_(); }
00147
00148 ROS_DEPRECATED const std::string __getServerMD5Sum() const { return __s_getServerMD5Sum_(); }
00149
00150 private:
00151 static const char* __s_getMessageDefinition_() { return "string xmlfilename\n\
00152 string[] filenames\n\
00153 \n\
00154 \n\
00155 "; }
00156 public:
00157 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); }
00158
00159 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); }
00160
00161 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const
00162 {
00163 ros::serialization::OStream stream(write_ptr, 1000000000);
00164 ros::serialization::serialize(stream, xmlfilename);
00165 ros::serialization::serialize(stream, filenames);
00166 return stream.getData();
00167 }
00168
00169 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr)
00170 {
00171 ros::serialization::IStream stream(read_ptr, 1000000000);
00172 ros::serialization::deserialize(stream, xmlfilename);
00173 ros::serialization::deserialize(stream, filenames);
00174 return stream.getData();
00175 }
00176
00177 ROS_DEPRECATED virtual uint32_t serializationLength() const
00178 {
00179 uint32_t size = 0;
00180 size += ros::serialization::serializationLength(xmlfilename);
00181 size += ros::serialization::serializationLength(filenames);
00182 return size;
00183 }
00184
00185 typedef boost::shared_ptr< ::vision_srvs::cop_saveResponse_<ContainerAllocator> > Ptr;
00186 typedef boost::shared_ptr< ::vision_srvs::cop_saveResponse_<ContainerAllocator> const> ConstPtr;
00187 };
00188 typedef ::vision_srvs::cop_saveResponse_<std::allocator<void> > cop_saveResponse;
00189
00190 typedef boost::shared_ptr< ::vision_srvs::cop_saveResponse> cop_saveResponsePtr;
00191 typedef boost::shared_ptr< ::vision_srvs::cop_saveResponse const> cop_saveResponseConstPtr;
00192
00193 struct cop_save
00194 {
00195
00196 typedef cop_saveRequest Request;
00197 typedef cop_saveResponse Response;
00198 Request request;
00199 Response response;
00200
00201 typedef Request RequestType;
00202 typedef Response ResponseType;
00203 };
00204 }
00205
00206 namespace ros
00207 {
00208 namespace message_traits
00209 {
00210 template<class ContainerAllocator>
00211 struct MD5Sum< ::vision_srvs::cop_saveRequest_<ContainerAllocator> > {
00212 static const char* value()
00213 {
00214 return "039cdc2e4e021929b349f87d86d0ea70";
00215 }
00216
00217 static const char* value(const ::vision_srvs::cop_saveRequest_<ContainerAllocator> &) { return value(); }
00218 static const uint64_t static_value1 = 0x039cdc2e4e021929ULL;
00219 static const uint64_t static_value2 = 0xb349f87d86d0ea70ULL;
00220 };
00221
00222 template<class ContainerAllocator>
00223 struct DataType< ::vision_srvs::cop_saveRequest_<ContainerAllocator> > {
00224 static const char* value()
00225 {
00226 return "vision_srvs/cop_saveRequest";
00227 }
00228
00229 static const char* value(const ::vision_srvs::cop_saveRequest_<ContainerAllocator> &) { return value(); }
00230 };
00231
00232 template<class ContainerAllocator>
00233 struct Definition< ::vision_srvs::cop_saveRequest_<ContainerAllocator> > {
00234 static const char* value()
00235 {
00236 return "\n\
00237 \n\
00238 uint64 object_id\n\
00239 \n\
00240 ";
00241 }
00242
00243 static const char* value(const ::vision_srvs::cop_saveRequest_<ContainerAllocator> &) { return value(); }
00244 };
00245
00246 template<class ContainerAllocator> struct IsFixedSize< ::vision_srvs::cop_saveRequest_<ContainerAllocator> > : public TrueType {};
00247 }
00248 }
00249
00250
00251 namespace ros
00252 {
00253 namespace message_traits
00254 {
00255 template<class ContainerAllocator>
00256 struct MD5Sum< ::vision_srvs::cop_saveResponse_<ContainerAllocator> > {
00257 static const char* value()
00258 {
00259 return "46ca4ffd8f493ce313745f9350d57a87";
00260 }
00261
00262 static const char* value(const ::vision_srvs::cop_saveResponse_<ContainerAllocator> &) { return value(); }
00263 static const uint64_t static_value1 = 0x46ca4ffd8f493ce3ULL;
00264 static const uint64_t static_value2 = 0x13745f9350d57a87ULL;
00265 };
00266
00267 template<class ContainerAllocator>
00268 struct DataType< ::vision_srvs::cop_saveResponse_<ContainerAllocator> > {
00269 static const char* value()
00270 {
00271 return "vision_srvs/cop_saveResponse";
00272 }
00273
00274 static const char* value(const ::vision_srvs::cop_saveResponse_<ContainerAllocator> &) { return value(); }
00275 };
00276
00277 template<class ContainerAllocator>
00278 struct Definition< ::vision_srvs::cop_saveResponse_<ContainerAllocator> > {
00279 static const char* value()
00280 {
00281 return "string xmlfilename\n\
00282 string[] filenames\n\
00283 \n\
00284 \n\
00285 ";
00286 }
00287
00288 static const char* value(const ::vision_srvs::cop_saveResponse_<ContainerAllocator> &) { return value(); }
00289 };
00290
00291 }
00292 }
00293
00294 namespace ros
00295 {
00296 namespace serialization
00297 {
00298
00299 template<class ContainerAllocator> struct Serializer< ::vision_srvs::cop_saveRequest_<ContainerAllocator> >
00300 {
00301 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00302 {
00303 stream.next(m.object_id);
00304 }
00305
00306 ROS_DECLARE_ALLINONE_SERIALIZER;
00307 };
00308 }
00309 }
00310
00311
00312 namespace ros
00313 {
00314 namespace serialization
00315 {
00316
00317 template<class ContainerAllocator> struct Serializer< ::vision_srvs::cop_saveResponse_<ContainerAllocator> >
00318 {
00319 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00320 {
00321 stream.next(m.xmlfilename);
00322 stream.next(m.filenames);
00323 }
00324
00325 ROS_DECLARE_ALLINONE_SERIALIZER;
00326 };
00327 }
00328 }
00329
00330 namespace ros
00331 {
00332 namespace service_traits
00333 {
00334 template<>
00335 struct MD5Sum<vision_srvs::cop_save> {
00336 static const char* value()
00337 {
00338 return "93142f219ae2cf9a603f6ec6c6d6ce97";
00339 }
00340
00341 static const char* value(const vision_srvs::cop_save&) { return value(); }
00342 };
00343
00344 template<>
00345 struct DataType<vision_srvs::cop_save> {
00346 static const char* value()
00347 {
00348 return "vision_srvs/cop_save";
00349 }
00350
00351 static const char* value(const vision_srvs::cop_save&) { return value(); }
00352 };
00353
00354 template<class ContainerAllocator>
00355 struct MD5Sum<vision_srvs::cop_saveRequest_<ContainerAllocator> > {
00356 static const char* value()
00357 {
00358 return "93142f219ae2cf9a603f6ec6c6d6ce97";
00359 }
00360
00361 static const char* value(const vision_srvs::cop_saveRequest_<ContainerAllocator> &) { return value(); }
00362 };
00363
00364 template<class ContainerAllocator>
00365 struct DataType<vision_srvs::cop_saveRequest_<ContainerAllocator> > {
00366 static const char* value()
00367 {
00368 return "vision_srvs/cop_save";
00369 }
00370
00371 static const char* value(const vision_srvs::cop_saveRequest_<ContainerAllocator> &) { return value(); }
00372 };
00373
00374 template<class ContainerAllocator>
00375 struct MD5Sum<vision_srvs::cop_saveResponse_<ContainerAllocator> > {
00376 static const char* value()
00377 {
00378 return "93142f219ae2cf9a603f6ec6c6d6ce97";
00379 }
00380
00381 static const char* value(const vision_srvs::cop_saveResponse_<ContainerAllocator> &) { return value(); }
00382 };
00383
00384 template<class ContainerAllocator>
00385 struct DataType<vision_srvs::cop_saveResponse_<ContainerAllocator> > {
00386 static const char* value()
00387 {
00388 return "vision_srvs/cop_save";
00389 }
00390
00391 static const char* value(const vision_srvs::cop_saveResponse_<ContainerAllocator> &) { return value(); }
00392 };
00393
00394 }
00395 }
00396
00397 #endif // VISION_SRVS_SERVICE_COP_SAVE_H
00398