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