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