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