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