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