00001
00002 #ifndef DYNAMIXEL_CONTROLLERS_SERVICE_STARTCONTROLLER_H
00003 #define DYNAMIXEL_CONTROLLERS_SERVICE_STARTCONTROLLER_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 dynamixel_controllers
00023 {
00024 template <class ContainerAllocator>
00025 struct StartControllerRequest_ {
00026 typedef StartControllerRequest_<ContainerAllocator> Type;
00027
00028 StartControllerRequest_()
00029 : port_name()
00030 , package_path()
00031 , module_name()
00032 , class_name()
00033 , controller_name()
00034 , dependencies()
00035 {
00036 }
00037
00038 StartControllerRequest_(const ContainerAllocator& _alloc)
00039 : port_name(_alloc)
00040 , package_path(_alloc)
00041 , module_name(_alloc)
00042 , class_name(_alloc)
00043 , controller_name(_alloc)
00044 , dependencies(_alloc)
00045 {
00046 }
00047
00048 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _port_name_type;
00049 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > port_name;
00050
00051 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _package_path_type;
00052 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > package_path;
00053
00054 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _module_name_type;
00055 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > module_name;
00056
00057 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _class_name_type;
00058 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > class_name;
00059
00060 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _controller_name_type;
00061 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > controller_name;
00062
00063 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 > _dependencies_type;
00064 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 > dependencies;
00065
00066
00067 typedef boost::shared_ptr< ::dynamixel_controllers::StartControllerRequest_<ContainerAllocator> > Ptr;
00068 typedef boost::shared_ptr< ::dynamixel_controllers::StartControllerRequest_<ContainerAllocator> const> ConstPtr;
00069 boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00070 };
00071 typedef ::dynamixel_controllers::StartControllerRequest_<std::allocator<void> > StartControllerRequest;
00072
00073 typedef boost::shared_ptr< ::dynamixel_controllers::StartControllerRequest> StartControllerRequestPtr;
00074 typedef boost::shared_ptr< ::dynamixel_controllers::StartControllerRequest const> StartControllerRequestConstPtr;
00075
00076
00077 template <class ContainerAllocator>
00078 struct StartControllerResponse_ {
00079 typedef StartControllerResponse_<ContainerAllocator> Type;
00080
00081 StartControllerResponse_()
00082 : success(false)
00083 , reason()
00084 {
00085 }
00086
00087 StartControllerResponse_(const ContainerAllocator& _alloc)
00088 : success(false)
00089 , reason(_alloc)
00090 {
00091 }
00092
00093 typedef uint8_t _success_type;
00094 uint8_t success;
00095
00096 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _reason_type;
00097 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > reason;
00098
00099
00100 typedef boost::shared_ptr< ::dynamixel_controllers::StartControllerResponse_<ContainerAllocator> > Ptr;
00101 typedef boost::shared_ptr< ::dynamixel_controllers::StartControllerResponse_<ContainerAllocator> const> ConstPtr;
00102 boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00103 };
00104 typedef ::dynamixel_controllers::StartControllerResponse_<std::allocator<void> > StartControllerResponse;
00105
00106 typedef boost::shared_ptr< ::dynamixel_controllers::StartControllerResponse> StartControllerResponsePtr;
00107 typedef boost::shared_ptr< ::dynamixel_controllers::StartControllerResponse const> StartControllerResponseConstPtr;
00108
00109 struct StartController
00110 {
00111
00112 typedef StartControllerRequest Request;
00113 typedef StartControllerResponse Response;
00114 Request request;
00115 Response response;
00116
00117 typedef Request RequestType;
00118 typedef Response ResponseType;
00119 };
00120 }
00121
00122 namespace ros
00123 {
00124 namespace message_traits
00125 {
00126 template<class ContainerAllocator> struct IsMessage< ::dynamixel_controllers::StartControllerRequest_<ContainerAllocator> > : public TrueType {};
00127 template<class ContainerAllocator> struct IsMessage< ::dynamixel_controllers::StartControllerRequest_<ContainerAllocator> const> : public TrueType {};
00128 template<class ContainerAllocator>
00129 struct MD5Sum< ::dynamixel_controllers::StartControllerRequest_<ContainerAllocator> > {
00130 static const char* value()
00131 {
00132 return "7785d708c83a180befd2fe3450dd9d41";
00133 }
00134
00135 static const char* value(const ::dynamixel_controllers::StartControllerRequest_<ContainerAllocator> &) { return value(); }
00136 static const uint64_t static_value1 = 0x7785d708c83a180bULL;
00137 static const uint64_t static_value2 = 0xefd2fe3450dd9d41ULL;
00138 };
00139
00140 template<class ContainerAllocator>
00141 struct DataType< ::dynamixel_controllers::StartControllerRequest_<ContainerAllocator> > {
00142 static const char* value()
00143 {
00144 return "dynamixel_controllers/StartControllerRequest";
00145 }
00146
00147 static const char* value(const ::dynamixel_controllers::StartControllerRequest_<ContainerAllocator> &) { return value(); }
00148 };
00149
00150 template<class ContainerAllocator>
00151 struct Definition< ::dynamixel_controllers::StartControllerRequest_<ContainerAllocator> > {
00152 static const char* value()
00153 {
00154 return "string port_name\n\
00155 string package_path\n\
00156 string module_name\n\
00157 string class_name\n\
00158 string controller_name\n\
00159 string[] dependencies\n\
00160 \n\
00161 ";
00162 }
00163
00164 static const char* value(const ::dynamixel_controllers::StartControllerRequest_<ContainerAllocator> &) { return value(); }
00165 };
00166
00167 }
00168 }
00169
00170
00171 namespace ros
00172 {
00173 namespace message_traits
00174 {
00175 template<class ContainerAllocator> struct IsMessage< ::dynamixel_controllers::StartControllerResponse_<ContainerAllocator> > : public TrueType {};
00176 template<class ContainerAllocator> struct IsMessage< ::dynamixel_controllers::StartControllerResponse_<ContainerAllocator> const> : public TrueType {};
00177 template<class ContainerAllocator>
00178 struct MD5Sum< ::dynamixel_controllers::StartControllerResponse_<ContainerAllocator> > {
00179 static const char* value()
00180 {
00181 return "a4d50a34d34f18de48e2436ff1472594";
00182 }
00183
00184 static const char* value(const ::dynamixel_controllers::StartControllerResponse_<ContainerAllocator> &) { return value(); }
00185 static const uint64_t static_value1 = 0xa4d50a34d34f18deULL;
00186 static const uint64_t static_value2 = 0x48e2436ff1472594ULL;
00187 };
00188
00189 template<class ContainerAllocator>
00190 struct DataType< ::dynamixel_controllers::StartControllerResponse_<ContainerAllocator> > {
00191 static const char* value()
00192 {
00193 return "dynamixel_controllers/StartControllerResponse";
00194 }
00195
00196 static const char* value(const ::dynamixel_controllers::StartControllerResponse_<ContainerAllocator> &) { return value(); }
00197 };
00198
00199 template<class ContainerAllocator>
00200 struct Definition< ::dynamixel_controllers::StartControllerResponse_<ContainerAllocator> > {
00201 static const char* value()
00202 {
00203 return "bool success\n\
00204 string reason\n\
00205 \n\
00206 \n\
00207 ";
00208 }
00209
00210 static const char* value(const ::dynamixel_controllers::StartControllerResponse_<ContainerAllocator> &) { return value(); }
00211 };
00212
00213 }
00214 }
00215
00216 namespace ros
00217 {
00218 namespace serialization
00219 {
00220
00221 template<class ContainerAllocator> struct Serializer< ::dynamixel_controllers::StartControllerRequest_<ContainerAllocator> >
00222 {
00223 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00224 {
00225 stream.next(m.port_name);
00226 stream.next(m.package_path);
00227 stream.next(m.module_name);
00228 stream.next(m.class_name);
00229 stream.next(m.controller_name);
00230 stream.next(m.dependencies);
00231 }
00232
00233 ROS_DECLARE_ALLINONE_SERIALIZER;
00234 };
00235 }
00236 }
00237
00238
00239 namespace ros
00240 {
00241 namespace serialization
00242 {
00243
00244 template<class ContainerAllocator> struct Serializer< ::dynamixel_controllers::StartControllerResponse_<ContainerAllocator> >
00245 {
00246 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00247 {
00248 stream.next(m.success);
00249 stream.next(m.reason);
00250 }
00251
00252 ROS_DECLARE_ALLINONE_SERIALIZER;
00253 };
00254 }
00255 }
00256
00257 namespace ros
00258 {
00259 namespace service_traits
00260 {
00261 template<>
00262 struct MD5Sum<dynamixel_controllers::StartController> {
00263 static const char* value()
00264 {
00265 return "94c76c2df56346fcaa2611bdac54f434";
00266 }
00267
00268 static const char* value(const dynamixel_controllers::StartController&) { return value(); }
00269 };
00270
00271 template<>
00272 struct DataType<dynamixel_controllers::StartController> {
00273 static const char* value()
00274 {
00275 return "dynamixel_controllers/StartController";
00276 }
00277
00278 static const char* value(const dynamixel_controllers::StartController&) { return value(); }
00279 };
00280
00281 template<class ContainerAllocator>
00282 struct MD5Sum<dynamixel_controllers::StartControllerRequest_<ContainerAllocator> > {
00283 static const char* value()
00284 {
00285 return "94c76c2df56346fcaa2611bdac54f434";
00286 }
00287
00288 static const char* value(const dynamixel_controllers::StartControllerRequest_<ContainerAllocator> &) { return value(); }
00289 };
00290
00291 template<class ContainerAllocator>
00292 struct DataType<dynamixel_controllers::StartControllerRequest_<ContainerAllocator> > {
00293 static const char* value()
00294 {
00295 return "dynamixel_controllers/StartController";
00296 }
00297
00298 static const char* value(const dynamixel_controllers::StartControllerRequest_<ContainerAllocator> &) { return value(); }
00299 };
00300
00301 template<class ContainerAllocator>
00302 struct MD5Sum<dynamixel_controllers::StartControllerResponse_<ContainerAllocator> > {
00303 static const char* value()
00304 {
00305 return "94c76c2df56346fcaa2611bdac54f434";
00306 }
00307
00308 static const char* value(const dynamixel_controllers::StartControllerResponse_<ContainerAllocator> &) { return value(); }
00309 };
00310
00311 template<class ContainerAllocator>
00312 struct DataType<dynamixel_controllers::StartControllerResponse_<ContainerAllocator> > {
00313 static const char* value()
00314 {
00315 return "dynamixel_controllers/StartController";
00316 }
00317
00318 static const char* value(const dynamixel_controllers::StartControllerResponse_<ContainerAllocator> &) { return value(); }
00319 };
00320
00321 }
00322 }
00323
00324 #endif // DYNAMIXEL_CONTROLLERS_SERVICE_STARTCONTROLLER_H
00325