00001
00002 #ifndef NODELET_SERVICE_NODELETLOAD_H
00003 #define NODELET_SERVICE_NODELETLOAD_H
00004 #include <string>
00005 #include <vector>
00006 #include <map>
00007 #include <ostream>
00008 #include "ros/serialization.h"
00009 #include "ros/builtin_message_traits.h"
00010 #include "ros/message_operations.h"
00011 #include "ros/time.h"
00012
00013 #include "ros/macros.h"
00014
00015 #include "ros/assert.h"
00016
00017 #include "ros/service_traits.h"
00018
00019
00020
00021
00022 namespace nodelet
00023 {
00024 template <class ContainerAllocator>
00025 struct NodeletLoadRequest_ {
00026 typedef NodeletLoadRequest_<ContainerAllocator> Type;
00027
00028 NodeletLoadRequest_()
00029 : name()
00030 , type()
00031 , remap_source_args()
00032 , remap_target_args()
00033 , my_argv()
00034 , bond_id()
00035 {
00036 }
00037
00038 NodeletLoadRequest_(const ContainerAllocator& _alloc)
00039 : name(_alloc)
00040 , type(_alloc)
00041 , remap_source_args(_alloc)
00042 , remap_target_args(_alloc)
00043 , my_argv(_alloc)
00044 , bond_id(_alloc)
00045 {
00046 }
00047
00048 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _name_type;
00049 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > name;
00050
00051 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _type_type;
00052 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > type;
00053
00054 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 > _remap_source_args_type;
00055 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 > remap_source_args;
00056
00057 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 > _remap_target_args_type;
00058 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 > remap_target_args;
00059
00060 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 > _my_argv_type;
00061 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 > my_argv;
00062
00063 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _bond_id_type;
00064 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > bond_id;
00065
00066
00067 ROS_DEPRECATED uint32_t get_remap_source_args_size() const { return (uint32_t)remap_source_args.size(); }
00068 ROS_DEPRECATED void set_remap_source_args_size(uint32_t size) { remap_source_args.resize((size_t)size); }
00069 ROS_DEPRECATED void get_remap_source_args_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->remap_source_args; }
00070 ROS_DEPRECATED void set_remap_source_args_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->remap_source_args = vec; }
00071 ROS_DEPRECATED uint32_t get_remap_target_args_size() const { return (uint32_t)remap_target_args.size(); }
00072 ROS_DEPRECATED void set_remap_target_args_size(uint32_t size) { remap_target_args.resize((size_t)size); }
00073 ROS_DEPRECATED void get_remap_target_args_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->remap_target_args; }
00074 ROS_DEPRECATED void set_remap_target_args_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->remap_target_args = vec; }
00075 ROS_DEPRECATED uint32_t get_my_argv_size() const { return (uint32_t)my_argv.size(); }
00076 ROS_DEPRECATED void set_my_argv_size(uint32_t size) { my_argv.resize((size_t)size); }
00077 ROS_DEPRECATED void get_my_argv_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->my_argv; }
00078 ROS_DEPRECATED void set_my_argv_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->my_argv = vec; }
00079 private:
00080 static const char* __s_getDataType_() { return "nodelet/NodeletLoadRequest"; }
00081 public:
00082 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); }
00083
00084 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); }
00085
00086 private:
00087 static const char* __s_getMD5Sum_() { return "c6e28cc4d2e259249d96cfb50658fbec"; }
00088 public:
00089 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); }
00090
00091 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); }
00092
00093 private:
00094 static const char* __s_getServerMD5Sum_() { return "8cfbf33bf3fbd4c54a833f6e2b105331"; }
00095 public:
00096 ROS_DEPRECATED static const std::string __s_getServerMD5Sum() { return __s_getServerMD5Sum_(); }
00097
00098 ROS_DEPRECATED const std::string __getServerMD5Sum() const { return __s_getServerMD5Sum_(); }
00099
00100 private:
00101 static const char* __s_getMessageDefinition_() { return "string name\n\
00102 string type\n\
00103 string[] remap_source_args\n\
00104 string[] remap_target_args\n\
00105 string[] my_argv\n\
00106 \n\
00107 string bond_id\n\
00108 \n\
00109 "; }
00110 public:
00111 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); }
00112
00113 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); }
00114
00115 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const
00116 {
00117 ros::serialization::OStream stream(write_ptr, 1000000000);
00118 ros::serialization::serialize(stream, name);
00119 ros::serialization::serialize(stream, type);
00120 ros::serialization::serialize(stream, remap_source_args);
00121 ros::serialization::serialize(stream, remap_target_args);
00122 ros::serialization::serialize(stream, my_argv);
00123 ros::serialization::serialize(stream, bond_id);
00124 return stream.getData();
00125 }
00126
00127 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr)
00128 {
00129 ros::serialization::IStream stream(read_ptr, 1000000000);
00130 ros::serialization::deserialize(stream, name);
00131 ros::serialization::deserialize(stream, type);
00132 ros::serialization::deserialize(stream, remap_source_args);
00133 ros::serialization::deserialize(stream, remap_target_args);
00134 ros::serialization::deserialize(stream, my_argv);
00135 ros::serialization::deserialize(stream, bond_id);
00136 return stream.getData();
00137 }
00138
00139 ROS_DEPRECATED virtual uint32_t serializationLength() const
00140 {
00141 uint32_t size = 0;
00142 size += ros::serialization::serializationLength(name);
00143 size += ros::serialization::serializationLength(type);
00144 size += ros::serialization::serializationLength(remap_source_args);
00145 size += ros::serialization::serializationLength(remap_target_args);
00146 size += ros::serialization::serializationLength(my_argv);
00147 size += ros::serialization::serializationLength(bond_id);
00148 return size;
00149 }
00150
00151 typedef boost::shared_ptr< ::nodelet::NodeletLoadRequest_<ContainerAllocator> > Ptr;
00152 typedef boost::shared_ptr< ::nodelet::NodeletLoadRequest_<ContainerAllocator> const> ConstPtr;
00153 boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00154 };
00155 typedef ::nodelet::NodeletLoadRequest_<std::allocator<void> > NodeletLoadRequest;
00156
00157 typedef boost::shared_ptr< ::nodelet::NodeletLoadRequest> NodeletLoadRequestPtr;
00158 typedef boost::shared_ptr< ::nodelet::NodeletLoadRequest const> NodeletLoadRequestConstPtr;
00159
00160
00161 template <class ContainerAllocator>
00162 struct NodeletLoadResponse_ {
00163 typedef NodeletLoadResponse_<ContainerAllocator> Type;
00164
00165 NodeletLoadResponse_()
00166 : success(false)
00167 {
00168 }
00169
00170 NodeletLoadResponse_(const ContainerAllocator& _alloc)
00171 : success(false)
00172 {
00173 }
00174
00175 typedef uint8_t _success_type;
00176 uint8_t success;
00177
00178
00179 private:
00180 static const char* __s_getDataType_() { return "nodelet/NodeletLoadResponse"; }
00181 public:
00182 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); }
00183
00184 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); }
00185
00186 private:
00187 static const char* __s_getMD5Sum_() { return "358e233cde0c8a8bcfea4ce193f8fc15"; }
00188 public:
00189 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); }
00190
00191 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); }
00192
00193 private:
00194 static const char* __s_getServerMD5Sum_() { return "8cfbf33bf3fbd4c54a833f6e2b105331"; }
00195 public:
00196 ROS_DEPRECATED static const std::string __s_getServerMD5Sum() { return __s_getServerMD5Sum_(); }
00197
00198 ROS_DEPRECATED const std::string __getServerMD5Sum() const { return __s_getServerMD5Sum_(); }
00199
00200 private:
00201 static const char* __s_getMessageDefinition_() { return "bool success\n\
00202 \n\
00203 \n\
00204 "; }
00205 public:
00206 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); }
00207
00208 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); }
00209
00210 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const
00211 {
00212 ros::serialization::OStream stream(write_ptr, 1000000000);
00213 ros::serialization::serialize(stream, success);
00214 return stream.getData();
00215 }
00216
00217 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr)
00218 {
00219 ros::serialization::IStream stream(read_ptr, 1000000000);
00220 ros::serialization::deserialize(stream, success);
00221 return stream.getData();
00222 }
00223
00224 ROS_DEPRECATED virtual uint32_t serializationLength() const
00225 {
00226 uint32_t size = 0;
00227 size += ros::serialization::serializationLength(success);
00228 return size;
00229 }
00230
00231 typedef boost::shared_ptr< ::nodelet::NodeletLoadResponse_<ContainerAllocator> > Ptr;
00232 typedef boost::shared_ptr< ::nodelet::NodeletLoadResponse_<ContainerAllocator> const> ConstPtr;
00233 boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00234 };
00235 typedef ::nodelet::NodeletLoadResponse_<std::allocator<void> > NodeletLoadResponse;
00236
00237 typedef boost::shared_ptr< ::nodelet::NodeletLoadResponse> NodeletLoadResponsePtr;
00238 typedef boost::shared_ptr< ::nodelet::NodeletLoadResponse const> NodeletLoadResponseConstPtr;
00239
00240 struct NodeletLoad
00241 {
00242
00243 typedef NodeletLoadRequest Request;
00244 typedef NodeletLoadResponse Response;
00245 Request request;
00246 Response response;
00247
00248 typedef Request RequestType;
00249 typedef Response ResponseType;
00250 };
00251 }
00252
00253 namespace ros
00254 {
00255 namespace message_traits
00256 {
00257 template<class ContainerAllocator> struct IsMessage< ::nodelet::NodeletLoadRequest_<ContainerAllocator> > : public TrueType {};
00258 template<class ContainerAllocator> struct IsMessage< ::nodelet::NodeletLoadRequest_<ContainerAllocator> const> : public TrueType {};
00259 template<class ContainerAllocator>
00260 struct MD5Sum< ::nodelet::NodeletLoadRequest_<ContainerAllocator> > {
00261 static const char* value()
00262 {
00263 return "c6e28cc4d2e259249d96cfb50658fbec";
00264 }
00265
00266 static const char* value(const ::nodelet::NodeletLoadRequest_<ContainerAllocator> &) { return value(); }
00267 static const uint64_t static_value1 = 0xc6e28cc4d2e25924ULL;
00268 static const uint64_t static_value2 = 0x9d96cfb50658fbecULL;
00269 };
00270
00271 template<class ContainerAllocator>
00272 struct DataType< ::nodelet::NodeletLoadRequest_<ContainerAllocator> > {
00273 static const char* value()
00274 {
00275 return "nodelet/NodeletLoadRequest";
00276 }
00277
00278 static const char* value(const ::nodelet::NodeletLoadRequest_<ContainerAllocator> &) { return value(); }
00279 };
00280
00281 template<class ContainerAllocator>
00282 struct Definition< ::nodelet::NodeletLoadRequest_<ContainerAllocator> > {
00283 static const char* value()
00284 {
00285 return "string name\n\
00286 string type\n\
00287 string[] remap_source_args\n\
00288 string[] remap_target_args\n\
00289 string[] my_argv\n\
00290 \n\
00291 string bond_id\n\
00292 \n\
00293 ";
00294 }
00295
00296 static const char* value(const ::nodelet::NodeletLoadRequest_<ContainerAllocator> &) { return value(); }
00297 };
00298
00299 }
00300 }
00301
00302
00303 namespace ros
00304 {
00305 namespace message_traits
00306 {
00307 template<class ContainerAllocator> struct IsMessage< ::nodelet::NodeletLoadResponse_<ContainerAllocator> > : public TrueType {};
00308 template<class ContainerAllocator> struct IsMessage< ::nodelet::NodeletLoadResponse_<ContainerAllocator> const> : public TrueType {};
00309 template<class ContainerAllocator>
00310 struct MD5Sum< ::nodelet::NodeletLoadResponse_<ContainerAllocator> > {
00311 static const char* value()
00312 {
00313 return "358e233cde0c8a8bcfea4ce193f8fc15";
00314 }
00315
00316 static const char* value(const ::nodelet::NodeletLoadResponse_<ContainerAllocator> &) { return value(); }
00317 static const uint64_t static_value1 = 0x358e233cde0c8a8bULL;
00318 static const uint64_t static_value2 = 0xcfea4ce193f8fc15ULL;
00319 };
00320
00321 template<class ContainerAllocator>
00322 struct DataType< ::nodelet::NodeletLoadResponse_<ContainerAllocator> > {
00323 static const char* value()
00324 {
00325 return "nodelet/NodeletLoadResponse";
00326 }
00327
00328 static const char* value(const ::nodelet::NodeletLoadResponse_<ContainerAllocator> &) { return value(); }
00329 };
00330
00331 template<class ContainerAllocator>
00332 struct Definition< ::nodelet::NodeletLoadResponse_<ContainerAllocator> > {
00333 static const char* value()
00334 {
00335 return "bool success\n\
00336 \n\
00337 \n\
00338 ";
00339 }
00340
00341 static const char* value(const ::nodelet::NodeletLoadResponse_<ContainerAllocator> &) { return value(); }
00342 };
00343
00344 template<class ContainerAllocator> struct IsFixedSize< ::nodelet::NodeletLoadResponse_<ContainerAllocator> > : public TrueType {};
00345 }
00346 }
00347
00348 namespace ros
00349 {
00350 namespace serialization
00351 {
00352
00353 template<class ContainerAllocator> struct Serializer< ::nodelet::NodeletLoadRequest_<ContainerAllocator> >
00354 {
00355 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00356 {
00357 stream.next(m.name);
00358 stream.next(m.type);
00359 stream.next(m.remap_source_args);
00360 stream.next(m.remap_target_args);
00361 stream.next(m.my_argv);
00362 stream.next(m.bond_id);
00363 }
00364
00365 ROS_DECLARE_ALLINONE_SERIALIZER;
00366 };
00367 }
00368 }
00369
00370
00371 namespace ros
00372 {
00373 namespace serialization
00374 {
00375
00376 template<class ContainerAllocator> struct Serializer< ::nodelet::NodeletLoadResponse_<ContainerAllocator> >
00377 {
00378 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00379 {
00380 stream.next(m.success);
00381 }
00382
00383 ROS_DECLARE_ALLINONE_SERIALIZER;
00384 };
00385 }
00386 }
00387
00388 namespace ros
00389 {
00390 namespace service_traits
00391 {
00392 template<>
00393 struct MD5Sum<nodelet::NodeletLoad> {
00394 static const char* value()
00395 {
00396 return "8cfbf33bf3fbd4c54a833f6e2b105331";
00397 }
00398
00399 static const char* value(const nodelet::NodeletLoad&) { return value(); }
00400 };
00401
00402 template<>
00403 struct DataType<nodelet::NodeletLoad> {
00404 static const char* value()
00405 {
00406 return "nodelet/NodeletLoad";
00407 }
00408
00409 static const char* value(const nodelet::NodeletLoad&) { return value(); }
00410 };
00411
00412 template<class ContainerAllocator>
00413 struct MD5Sum<nodelet::NodeletLoadRequest_<ContainerAllocator> > {
00414 static const char* value()
00415 {
00416 return "8cfbf33bf3fbd4c54a833f6e2b105331";
00417 }
00418
00419 static const char* value(const nodelet::NodeletLoadRequest_<ContainerAllocator> &) { return value(); }
00420 };
00421
00422 template<class ContainerAllocator>
00423 struct DataType<nodelet::NodeletLoadRequest_<ContainerAllocator> > {
00424 static const char* value()
00425 {
00426 return "nodelet/NodeletLoad";
00427 }
00428
00429 static const char* value(const nodelet::NodeletLoadRequest_<ContainerAllocator> &) { return value(); }
00430 };
00431
00432 template<class ContainerAllocator>
00433 struct MD5Sum<nodelet::NodeletLoadResponse_<ContainerAllocator> > {
00434 static const char* value()
00435 {
00436 return "8cfbf33bf3fbd4c54a833f6e2b105331";
00437 }
00438
00439 static const char* value(const nodelet::NodeletLoadResponse_<ContainerAllocator> &) { return value(); }
00440 };
00441
00442 template<class ContainerAllocator>
00443 struct DataType<nodelet::NodeletLoadResponse_<ContainerAllocator> > {
00444 static const char* value()
00445 {
00446 return "nodelet/NodeletLoad";
00447 }
00448
00449 static const char* value(const nodelet::NodeletLoadResponse_<ContainerAllocator> &) { return value(); }
00450 };
00451
00452 }
00453 }
00454
00455 #endif // NODELET_SERVICE_NODELETLOAD_H
00456