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