$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/ListControllers.srv */ 00002 #ifndef PR2_MECHANISM_MSGS_SERVICE_LISTCONTROLLERS_H 00003 #define PR2_MECHANISM_MSGS_SERVICE_LISTCONTROLLERS_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 ListControllersRequest_ { 00026 typedef ListControllersRequest_<ContainerAllocator> Type; 00027 00028 ListControllersRequest_() 00029 { 00030 } 00031 00032 ListControllersRequest_(const ContainerAllocator& _alloc) 00033 { 00034 } 00035 00036 00037 private: 00038 static const char* __s_getDataType_() { return "pr2_mechanism_msgs/ListControllersRequest"; } 00039 public: 00040 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00041 00042 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00043 00044 private: 00045 static const char* __s_getMD5Sum_() { return "d41d8cd98f00b204e9800998ecf8427e"; } 00046 public: 00047 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00048 00049 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00050 00051 private: 00052 static const char* __s_getServerMD5Sum_() { return "39c8d39516aed5c7d76284ac06c220e5"; } 00053 public: 00054 ROS_DEPRECATED static const std::string __s_getServerMD5Sum() { return __s_getServerMD5Sum_(); } 00055 00056 ROS_DEPRECATED const std::string __getServerMD5Sum() const { return __s_getServerMD5Sum_(); } 00057 00058 private: 00059 static const char* __s_getMessageDefinition_() { return "\n\ 00060 \n\ 00061 \n\ 00062 \n\ 00063 \n\ 00064 "; } 00065 public: 00066 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00067 00068 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00069 00070 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00071 { 00072 ros::serialization::OStream stream(write_ptr, 1000000000); 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 return stream.getData(); 00080 } 00081 00082 ROS_DEPRECATED virtual uint32_t serializationLength() const 00083 { 00084 uint32_t size = 0; 00085 return size; 00086 } 00087 00088 typedef boost::shared_ptr< ::pr2_mechanism_msgs::ListControllersRequest_<ContainerAllocator> > Ptr; 00089 typedef boost::shared_ptr< ::pr2_mechanism_msgs::ListControllersRequest_<ContainerAllocator> const> ConstPtr; 00090 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00091 }; // struct ListControllersRequest 00092 typedef ::pr2_mechanism_msgs::ListControllersRequest_<std::allocator<void> > ListControllersRequest; 00093 00094 typedef boost::shared_ptr< ::pr2_mechanism_msgs::ListControllersRequest> ListControllersRequestPtr; 00095 typedef boost::shared_ptr< ::pr2_mechanism_msgs::ListControllersRequest const> ListControllersRequestConstPtr; 00096 00097 00098 template <class ContainerAllocator> 00099 struct ListControllersResponse_ { 00100 typedef ListControllersResponse_<ContainerAllocator> Type; 00101 00102 ListControllersResponse_() 00103 : controllers() 00104 , state() 00105 { 00106 } 00107 00108 ListControllersResponse_(const ContainerAllocator& _alloc) 00109 : controllers(_alloc) 00110 , state(_alloc) 00111 { 00112 } 00113 00114 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 > _controllers_type; 00115 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 > controllers; 00116 00117 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 > _state_type; 00118 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 > state; 00119 00120 00121 ROS_DEPRECATED uint32_t get_controllers_size() const { return (uint32_t)controllers.size(); } 00122 ROS_DEPRECATED void set_controllers_size(uint32_t size) { controllers.resize((size_t)size); } 00123 ROS_DEPRECATED void get_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->controllers; } 00124 ROS_DEPRECATED void set_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->controllers = vec; } 00125 ROS_DEPRECATED uint32_t get_state_size() const { return (uint32_t)state.size(); } 00126 ROS_DEPRECATED void set_state_size(uint32_t size) { state.resize((size_t)size); } 00127 ROS_DEPRECATED void get_state_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->state; } 00128 ROS_DEPRECATED void set_state_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->state = vec; } 00129 private: 00130 static const char* __s_getDataType_() { return "pr2_mechanism_msgs/ListControllersResponse"; } 00131 public: 00132 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00133 00134 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00135 00136 private: 00137 static const char* __s_getMD5Sum_() { return "39c8d39516aed5c7d76284ac06c220e5"; } 00138 public: 00139 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00140 00141 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00142 00143 private: 00144 static const char* __s_getServerMD5Sum_() { return "39c8d39516aed5c7d76284ac06c220e5"; } 00145 public: 00146 ROS_DEPRECATED static const std::string __s_getServerMD5Sum() { return __s_getServerMD5Sum_(); } 00147 00148 ROS_DEPRECATED const std::string __getServerMD5Sum() const { return __s_getServerMD5Sum_(); } 00149 00150 private: 00151 static const char* __s_getMessageDefinition_() { return "string[] controllers\n\ 00152 string[] state\n\ 00153 \n\ 00154 "; } 00155 public: 00156 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00157 00158 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00159 00160 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00161 { 00162 ros::serialization::OStream stream(write_ptr, 1000000000); 00163 ros::serialization::serialize(stream, controllers); 00164 ros::serialization::serialize(stream, state); 00165 return stream.getData(); 00166 } 00167 00168 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00169 { 00170 ros::serialization::IStream stream(read_ptr, 1000000000); 00171 ros::serialization::deserialize(stream, controllers); 00172 ros::serialization::deserialize(stream, state); 00173 return stream.getData(); 00174 } 00175 00176 ROS_DEPRECATED virtual uint32_t serializationLength() const 00177 { 00178 uint32_t size = 0; 00179 size += ros::serialization::serializationLength(controllers); 00180 size += ros::serialization::serializationLength(state); 00181 return size; 00182 } 00183 00184 typedef boost::shared_ptr< ::pr2_mechanism_msgs::ListControllersResponse_<ContainerAllocator> > Ptr; 00185 typedef boost::shared_ptr< ::pr2_mechanism_msgs::ListControllersResponse_<ContainerAllocator> const> ConstPtr; 00186 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00187 }; // struct ListControllersResponse 00188 typedef ::pr2_mechanism_msgs::ListControllersResponse_<std::allocator<void> > ListControllersResponse; 00189 00190 typedef boost::shared_ptr< ::pr2_mechanism_msgs::ListControllersResponse> ListControllersResponsePtr; 00191 typedef boost::shared_ptr< ::pr2_mechanism_msgs::ListControllersResponse const> ListControllersResponseConstPtr; 00192 00193 struct ListControllers 00194 { 00195 00196 typedef ListControllersRequest Request; 00197 typedef ListControllersResponse Response; 00198 Request request; 00199 Response response; 00200 00201 typedef Request RequestType; 00202 typedef Response ResponseType; 00203 }; // struct ListControllers 00204 } // namespace pr2_mechanism_msgs 00205 00206 namespace ros 00207 { 00208 namespace message_traits 00209 { 00210 template<class ContainerAllocator> struct IsMessage< ::pr2_mechanism_msgs::ListControllersRequest_<ContainerAllocator> > : public TrueType {}; 00211 template<class ContainerAllocator> struct IsMessage< ::pr2_mechanism_msgs::ListControllersRequest_<ContainerAllocator> const> : public TrueType {}; 00212 template<class ContainerAllocator> 00213 struct MD5Sum< ::pr2_mechanism_msgs::ListControllersRequest_<ContainerAllocator> > { 00214 static const char* value() 00215 { 00216 return "d41d8cd98f00b204e9800998ecf8427e"; 00217 } 00218 00219 static const char* value(const ::pr2_mechanism_msgs::ListControllersRequest_<ContainerAllocator> &) { return value(); } 00220 static const uint64_t static_value1 = 0xd41d8cd98f00b204ULL; 00221 static const uint64_t static_value2 = 0xe9800998ecf8427eULL; 00222 }; 00223 00224 template<class ContainerAllocator> 00225 struct DataType< ::pr2_mechanism_msgs::ListControllersRequest_<ContainerAllocator> > { 00226 static const char* value() 00227 { 00228 return "pr2_mechanism_msgs/ListControllersRequest"; 00229 } 00230 00231 static const char* value(const ::pr2_mechanism_msgs::ListControllersRequest_<ContainerAllocator> &) { return value(); } 00232 }; 00233 00234 template<class ContainerAllocator> 00235 struct Definition< ::pr2_mechanism_msgs::ListControllersRequest_<ContainerAllocator> > { 00236 static const char* value() 00237 { 00238 return "\n\ 00239 \n\ 00240 \n\ 00241 \n\ 00242 \n\ 00243 "; 00244 } 00245 00246 static const char* value(const ::pr2_mechanism_msgs::ListControllersRequest_<ContainerAllocator> &) { return value(); } 00247 }; 00248 00249 template<class ContainerAllocator> struct IsFixedSize< ::pr2_mechanism_msgs::ListControllersRequest_<ContainerAllocator> > : public TrueType {}; 00250 } // namespace message_traits 00251 } // namespace ros 00252 00253 00254 namespace ros 00255 { 00256 namespace message_traits 00257 { 00258 template<class ContainerAllocator> struct IsMessage< ::pr2_mechanism_msgs::ListControllersResponse_<ContainerAllocator> > : public TrueType {}; 00259 template<class ContainerAllocator> struct IsMessage< ::pr2_mechanism_msgs::ListControllersResponse_<ContainerAllocator> const> : public TrueType {}; 00260 template<class ContainerAllocator> 00261 struct MD5Sum< ::pr2_mechanism_msgs::ListControllersResponse_<ContainerAllocator> > { 00262 static const char* value() 00263 { 00264 return "39c8d39516aed5c7d76284ac06c220e5"; 00265 } 00266 00267 static const char* value(const ::pr2_mechanism_msgs::ListControllersResponse_<ContainerAllocator> &) { return value(); } 00268 static const uint64_t static_value1 = 0x39c8d39516aed5c7ULL; 00269 static const uint64_t static_value2 = 0xd76284ac06c220e5ULL; 00270 }; 00271 00272 template<class ContainerAllocator> 00273 struct DataType< ::pr2_mechanism_msgs::ListControllersResponse_<ContainerAllocator> > { 00274 static const char* value() 00275 { 00276 return "pr2_mechanism_msgs/ListControllersResponse"; 00277 } 00278 00279 static const char* value(const ::pr2_mechanism_msgs::ListControllersResponse_<ContainerAllocator> &) { return value(); } 00280 }; 00281 00282 template<class ContainerAllocator> 00283 struct Definition< ::pr2_mechanism_msgs::ListControllersResponse_<ContainerAllocator> > { 00284 static const char* value() 00285 { 00286 return "string[] controllers\n\ 00287 string[] state\n\ 00288 \n\ 00289 "; 00290 } 00291 00292 static const char* value(const ::pr2_mechanism_msgs::ListControllersResponse_<ContainerAllocator> &) { return value(); } 00293 }; 00294 00295 } // namespace message_traits 00296 } // namespace ros 00297 00298 namespace ros 00299 { 00300 namespace serialization 00301 { 00302 00303 template<class ContainerAllocator> struct Serializer< ::pr2_mechanism_msgs::ListControllersRequest_<ContainerAllocator> > 00304 { 00305 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00306 { 00307 } 00308 00309 ROS_DECLARE_ALLINONE_SERIALIZER; 00310 }; // struct ListControllersRequest_ 00311 } // namespace serialization 00312 } // namespace ros 00313 00314 00315 namespace ros 00316 { 00317 namespace serialization 00318 { 00319 00320 template<class ContainerAllocator> struct Serializer< ::pr2_mechanism_msgs::ListControllersResponse_<ContainerAllocator> > 00321 { 00322 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00323 { 00324 stream.next(m.controllers); 00325 stream.next(m.state); 00326 } 00327 00328 ROS_DECLARE_ALLINONE_SERIALIZER; 00329 }; // struct ListControllersResponse_ 00330 } // namespace serialization 00331 } // namespace ros 00332 00333 namespace ros 00334 { 00335 namespace service_traits 00336 { 00337 template<> 00338 struct MD5Sum<pr2_mechanism_msgs::ListControllers> { 00339 static const char* value() 00340 { 00341 return "39c8d39516aed5c7d76284ac06c220e5"; 00342 } 00343 00344 static const char* value(const pr2_mechanism_msgs::ListControllers&) { return value(); } 00345 }; 00346 00347 template<> 00348 struct DataType<pr2_mechanism_msgs::ListControllers> { 00349 static const char* value() 00350 { 00351 return "pr2_mechanism_msgs/ListControllers"; 00352 } 00353 00354 static const char* value(const pr2_mechanism_msgs::ListControllers&) { return value(); } 00355 }; 00356 00357 template<class ContainerAllocator> 00358 struct MD5Sum<pr2_mechanism_msgs::ListControllersRequest_<ContainerAllocator> > { 00359 static const char* value() 00360 { 00361 return "39c8d39516aed5c7d76284ac06c220e5"; 00362 } 00363 00364 static const char* value(const pr2_mechanism_msgs::ListControllersRequest_<ContainerAllocator> &) { return value(); } 00365 }; 00366 00367 template<class ContainerAllocator> 00368 struct DataType<pr2_mechanism_msgs::ListControllersRequest_<ContainerAllocator> > { 00369 static const char* value() 00370 { 00371 return "pr2_mechanism_msgs/ListControllers"; 00372 } 00373 00374 static const char* value(const pr2_mechanism_msgs::ListControllersRequest_<ContainerAllocator> &) { return value(); } 00375 }; 00376 00377 template<class ContainerAllocator> 00378 struct MD5Sum<pr2_mechanism_msgs::ListControllersResponse_<ContainerAllocator> > { 00379 static const char* value() 00380 { 00381 return "39c8d39516aed5c7d76284ac06c220e5"; 00382 } 00383 00384 static const char* value(const pr2_mechanism_msgs::ListControllersResponse_<ContainerAllocator> &) { return value(); } 00385 }; 00386 00387 template<class ContainerAllocator> 00388 struct DataType<pr2_mechanism_msgs::ListControllersResponse_<ContainerAllocator> > { 00389 static const char* value() 00390 { 00391 return "pr2_mechanism_msgs/ListControllers"; 00392 } 00393 00394 static const char* value(const pr2_mechanism_msgs::ListControllersResponse_<ContainerAllocator> &) { return value(); } 00395 }; 00396 00397 } // namespace service_traits 00398 } // namespace ros 00399 00400 #endif // PR2_MECHANISM_MSGS_SERVICE_LISTCONTROLLERS_H 00401