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