00001
00002 #ifndef COB_SRVS_SERVICE_SETMAXVEL_H
00003 #define COB_SRVS_SERVICE_SETMAXVEL_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 #include "std_msgs/String.h"
00018
00019 namespace cob_srvs
00020 {
00021 template <class ContainerAllocator>
00022 struct SetMaxVelRequest_ : public ros::Message
00023 {
00024 typedef SetMaxVelRequest_<ContainerAllocator> Type;
00025
00026 SetMaxVelRequest_()
00027 : max_vel(0.0)
00028 {
00029 }
00030
00031 SetMaxVelRequest_(const ContainerAllocator& _alloc)
00032 : max_vel(0.0)
00033 {
00034 }
00035
00036 typedef float _max_vel_type;
00037 float max_vel;
00038
00039
00040 private:
00041 static const char* __s_getDataType_() { return "cob_srvs/SetMaxVelRequest"; }
00042 public:
00043 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); }
00044
00045 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); }
00046
00047 private:
00048 static const char* __s_getMD5Sum_() { return "dd4c36ffe76b55c7212cbc93d9e269be"; }
00049 public:
00050 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); }
00051
00052 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); }
00053
00054 private:
00055 static const char* __s_getServerMD5Sum_() { return "5212ea5f4e683819f4e395ad0eb8ae8c"; }
00056 public:
00057 ROS_DEPRECATED static const std::string __s_getServerMD5Sum() { return __s_getServerMD5Sum_(); }
00058
00059 ROS_DEPRECATED const std::string __getServerMD5Sum() const { return __s_getServerMD5Sum_(); }
00060
00061 private:
00062 static const char* __s_getMessageDefinition_() { return "float32 max_vel\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 ros::serialization::serialize(stream, max_vel);
00074 return stream.getData();
00075 }
00076
00077 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr)
00078 {
00079 ros::serialization::IStream stream(read_ptr, 1000000000);
00080 ros::serialization::deserialize(stream, max_vel);
00081 return stream.getData();
00082 }
00083
00084 ROS_DEPRECATED virtual uint32_t serializationLength() const
00085 {
00086 uint32_t size = 0;
00087 size += ros::serialization::serializationLength(max_vel);
00088 return size;
00089 }
00090
00091 typedef boost::shared_ptr< ::cob_srvs::SetMaxVelRequest_<ContainerAllocator> > Ptr;
00092 typedef boost::shared_ptr< ::cob_srvs::SetMaxVelRequest_<ContainerAllocator> const> ConstPtr;
00093 };
00094 typedef ::cob_srvs::SetMaxVelRequest_<std::allocator<void> > SetMaxVelRequest;
00095
00096 typedef boost::shared_ptr< ::cob_srvs::SetMaxVelRequest> SetMaxVelRequestPtr;
00097 typedef boost::shared_ptr< ::cob_srvs::SetMaxVelRequest const> SetMaxVelRequestConstPtr;
00098
00099
00100 template <class ContainerAllocator>
00101 struct SetMaxVelResponse_ : public ros::Message
00102 {
00103 typedef SetMaxVelResponse_<ContainerAllocator> Type;
00104
00105 SetMaxVelResponse_()
00106 : success(false)
00107 , errorMessage()
00108 {
00109 }
00110
00111 SetMaxVelResponse_(const ContainerAllocator& _alloc)
00112 : success(false)
00113 , errorMessage(_alloc)
00114 {
00115 }
00116
00117 typedef uint8_t _success_type;
00118 uint8_t success;
00119
00120 typedef ::std_msgs::String_<ContainerAllocator> _errorMessage_type;
00121 ::std_msgs::String_<ContainerAllocator> errorMessage;
00122
00123
00124 private:
00125 static const char* __s_getDataType_() { return "cob_srvs/SetMaxVelResponse"; }
00126 public:
00127 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); }
00128
00129 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); }
00130
00131 private:
00132 static const char* __s_getMD5Sum_() { return "c3b62f691308002270bd6702fd7da94b"; }
00133 public:
00134 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); }
00135
00136 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); }
00137
00138 private:
00139 static const char* __s_getServerMD5Sum_() { return "5212ea5f4e683819f4e395ad0eb8ae8c"; }
00140 public:
00141 ROS_DEPRECATED static const std::string __s_getServerMD5Sum() { return __s_getServerMD5Sum_(); }
00142
00143 ROS_DEPRECATED const std::string __getServerMD5Sum() const { return __s_getServerMD5Sum_(); }
00144
00145 private:
00146 static const char* __s_getMessageDefinition_() { return "bool success\n\
00147 std_msgs/String errorMessage\n\
00148 \n\
00149 \n\
00150 ================================================================================\n\
00151 MSG: std_msgs/String\n\
00152 string data\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, success);
00164 ros::serialization::serialize(stream, errorMessage);
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, success);
00172 ros::serialization::deserialize(stream, errorMessage);
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(success);
00180 size += ros::serialization::serializationLength(errorMessage);
00181 return size;
00182 }
00183
00184 typedef boost::shared_ptr< ::cob_srvs::SetMaxVelResponse_<ContainerAllocator> > Ptr;
00185 typedef boost::shared_ptr< ::cob_srvs::SetMaxVelResponse_<ContainerAllocator> const> ConstPtr;
00186 };
00187 typedef ::cob_srvs::SetMaxVelResponse_<std::allocator<void> > SetMaxVelResponse;
00188
00189 typedef boost::shared_ptr< ::cob_srvs::SetMaxVelResponse> SetMaxVelResponsePtr;
00190 typedef boost::shared_ptr< ::cob_srvs::SetMaxVelResponse const> SetMaxVelResponseConstPtr;
00191
00192 struct SetMaxVel
00193 {
00194
00195 typedef SetMaxVelRequest Request;
00196 typedef SetMaxVelResponse Response;
00197 Request request;
00198 Response response;
00199
00200 typedef Request RequestType;
00201 typedef Response ResponseType;
00202 };
00203 }
00204
00205 namespace ros
00206 {
00207 namespace message_traits
00208 {
00209 template<class ContainerAllocator>
00210 struct MD5Sum< ::cob_srvs::SetMaxVelRequest_<ContainerAllocator> > {
00211 static const char* value()
00212 {
00213 return "dd4c36ffe76b55c7212cbc93d9e269be";
00214 }
00215
00216 static const char* value(const ::cob_srvs::SetMaxVelRequest_<ContainerAllocator> &) { return value(); }
00217 static const uint64_t static_value1 = 0xdd4c36ffe76b55c7ULL;
00218 static const uint64_t static_value2 = 0x212cbc93d9e269beULL;
00219 };
00220
00221 template<class ContainerAllocator>
00222 struct DataType< ::cob_srvs::SetMaxVelRequest_<ContainerAllocator> > {
00223 static const char* value()
00224 {
00225 return "cob_srvs/SetMaxVelRequest";
00226 }
00227
00228 static const char* value(const ::cob_srvs::SetMaxVelRequest_<ContainerAllocator> &) { return value(); }
00229 };
00230
00231 template<class ContainerAllocator>
00232 struct Definition< ::cob_srvs::SetMaxVelRequest_<ContainerAllocator> > {
00233 static const char* value()
00234 {
00235 return "float32 max_vel\n\
00236 \n\
00237 ";
00238 }
00239
00240 static const char* value(const ::cob_srvs::SetMaxVelRequest_<ContainerAllocator> &) { return value(); }
00241 };
00242
00243 template<class ContainerAllocator> struct IsFixedSize< ::cob_srvs::SetMaxVelRequest_<ContainerAllocator> > : public TrueType {};
00244 }
00245 }
00246
00247
00248 namespace ros
00249 {
00250 namespace message_traits
00251 {
00252 template<class ContainerAllocator>
00253 struct MD5Sum< ::cob_srvs::SetMaxVelResponse_<ContainerAllocator> > {
00254 static const char* value()
00255 {
00256 return "c3b62f691308002270bd6702fd7da94b";
00257 }
00258
00259 static const char* value(const ::cob_srvs::SetMaxVelResponse_<ContainerAllocator> &) { return value(); }
00260 static const uint64_t static_value1 = 0xc3b62f6913080022ULL;
00261 static const uint64_t static_value2 = 0x70bd6702fd7da94bULL;
00262 };
00263
00264 template<class ContainerAllocator>
00265 struct DataType< ::cob_srvs::SetMaxVelResponse_<ContainerAllocator> > {
00266 static const char* value()
00267 {
00268 return "cob_srvs/SetMaxVelResponse";
00269 }
00270
00271 static const char* value(const ::cob_srvs::SetMaxVelResponse_<ContainerAllocator> &) { return value(); }
00272 };
00273
00274 template<class ContainerAllocator>
00275 struct Definition< ::cob_srvs::SetMaxVelResponse_<ContainerAllocator> > {
00276 static const char* value()
00277 {
00278 return "bool success\n\
00279 std_msgs/String errorMessage\n\
00280 \n\
00281 \n\
00282 ================================================================================\n\
00283 MSG: std_msgs/String\n\
00284 string data\n\
00285 \n\
00286 ";
00287 }
00288
00289 static const char* value(const ::cob_srvs::SetMaxVelResponse_<ContainerAllocator> &) { return value(); }
00290 };
00291
00292 }
00293 }
00294
00295 namespace ros
00296 {
00297 namespace serialization
00298 {
00299
00300 template<class ContainerAllocator> struct Serializer< ::cob_srvs::SetMaxVelRequest_<ContainerAllocator> >
00301 {
00302 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00303 {
00304 stream.next(m.max_vel);
00305 }
00306
00307 ROS_DECLARE_ALLINONE_SERIALIZER;
00308 };
00309 }
00310 }
00311
00312
00313 namespace ros
00314 {
00315 namespace serialization
00316 {
00317
00318 template<class ContainerAllocator> struct Serializer< ::cob_srvs::SetMaxVelResponse_<ContainerAllocator> >
00319 {
00320 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00321 {
00322 stream.next(m.success);
00323 stream.next(m.errorMessage);
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<cob_srvs::SetMaxVel> {
00337 static const char* value()
00338 {
00339 return "5212ea5f4e683819f4e395ad0eb8ae8c";
00340 }
00341
00342 static const char* value(const cob_srvs::SetMaxVel&) { return value(); }
00343 };
00344
00345 template<>
00346 struct DataType<cob_srvs::SetMaxVel> {
00347 static const char* value()
00348 {
00349 return "cob_srvs/SetMaxVel";
00350 }
00351
00352 static const char* value(const cob_srvs::SetMaxVel&) { return value(); }
00353 };
00354
00355 template<class ContainerAllocator>
00356 struct MD5Sum<cob_srvs::SetMaxVelRequest_<ContainerAllocator> > {
00357 static const char* value()
00358 {
00359 return "5212ea5f4e683819f4e395ad0eb8ae8c";
00360 }
00361
00362 static const char* value(const cob_srvs::SetMaxVelRequest_<ContainerAllocator> &) { return value(); }
00363 };
00364
00365 template<class ContainerAllocator>
00366 struct DataType<cob_srvs::SetMaxVelRequest_<ContainerAllocator> > {
00367 static const char* value()
00368 {
00369 return "cob_srvs/SetMaxVel";
00370 }
00371
00372 static const char* value(const cob_srvs::SetMaxVelRequest_<ContainerAllocator> &) { return value(); }
00373 };
00374
00375 template<class ContainerAllocator>
00376 struct MD5Sum<cob_srvs::SetMaxVelResponse_<ContainerAllocator> > {
00377 static const char* value()
00378 {
00379 return "5212ea5f4e683819f4e395ad0eb8ae8c";
00380 }
00381
00382 static const char* value(const cob_srvs::SetMaxVelResponse_<ContainerAllocator> &) { return value(); }
00383 };
00384
00385 template<class ContainerAllocator>
00386 struct DataType<cob_srvs::SetMaxVelResponse_<ContainerAllocator> > {
00387 static const char* value()
00388 {
00389 return "cob_srvs/SetMaxVel";
00390 }
00391
00392 static const char* value(const cob_srvs::SetMaxVelResponse_<ContainerAllocator> &) { return value(); }
00393 };
00394
00395 }
00396 }
00397
00398 #endif // COB_SRVS_SERVICE_SETMAXVEL_H
00399