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