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