$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/SetOperationMode.srv */ 00002 #ifndef COB_SRVS_SERVICE_SETOPERATIONMODE_H 00003 #define COB_SRVS_SERVICE_SETOPERATIONMODE_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 #include "std_msgs/String.h" 00020 00021 00022 #include "std_msgs/Bool.h" 00023 #include "std_msgs/String.h" 00024 00025 namespace cob_srvs 00026 { 00027 template <class ContainerAllocator> 00028 struct SetOperationModeRequest_ { 00029 typedef SetOperationModeRequest_<ContainerAllocator> Type; 00030 00031 SetOperationModeRequest_() 00032 : operation_mode() 00033 { 00034 } 00035 00036 SetOperationModeRequest_(const ContainerAllocator& _alloc) 00037 : operation_mode(_alloc) 00038 { 00039 } 00040 00041 typedef ::std_msgs::String_<ContainerAllocator> _operation_mode_type; 00042 ::std_msgs::String_<ContainerAllocator> operation_mode; 00043 00044 00045 private: 00046 static const char* __s_getDataType_() { return "cob_srvs/SetOperationModeRequest"; } 00047 public: 00048 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00049 00050 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00051 00052 private: 00053 static const char* __s_getMD5Sum_() { return "df954cef597fce5b749fee53c7846c40"; } 00054 public: 00055 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00056 00057 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00058 00059 private: 00060 static const char* __s_getServerMD5Sum_() { return "588a6152f0ed57d725118cc82be8479a"; } 00061 public: 00062 ROS_DEPRECATED static const std::string __s_getServerMD5Sum() { return __s_getServerMD5Sum_(); } 00063 00064 ROS_DEPRECATED const std::string __getServerMD5Sum() const { return __s_getServerMD5Sum_(); } 00065 00066 private: 00067 static const char* __s_getMessageDefinition_() { return "std_msgs/String operation_mode\n\ 00068 \n\ 00069 ================================================================================\n\ 00070 MSG: std_msgs/String\n\ 00071 string data\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, operation_mode); 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, operation_mode); 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(operation_mode); 00097 return size; 00098 } 00099 00100 typedef boost::shared_ptr< ::cob_srvs::SetOperationModeRequest_<ContainerAllocator> > Ptr; 00101 typedef boost::shared_ptr< ::cob_srvs::SetOperationModeRequest_<ContainerAllocator> const> ConstPtr; 00102 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00103 }; // struct SetOperationModeRequest 00104 typedef ::cob_srvs::SetOperationModeRequest_<std::allocator<void> > SetOperationModeRequest; 00105 00106 typedef boost::shared_ptr< ::cob_srvs::SetOperationModeRequest> SetOperationModeRequestPtr; 00107 typedef boost::shared_ptr< ::cob_srvs::SetOperationModeRequest const> SetOperationModeRequestConstPtr; 00108 00109 00110 template <class ContainerAllocator> 00111 struct SetOperationModeResponse_ { 00112 typedef SetOperationModeResponse_<ContainerAllocator> Type; 00113 00114 SetOperationModeResponse_() 00115 : success() 00116 , error_message() 00117 { 00118 } 00119 00120 SetOperationModeResponse_(const ContainerAllocator& _alloc) 00121 : success(_alloc) 00122 , error_message(_alloc) 00123 { 00124 } 00125 00126 typedef ::std_msgs::Bool_<ContainerAllocator> _success_type; 00127 ::std_msgs::Bool_<ContainerAllocator> success; 00128 00129 typedef ::std_msgs::String_<ContainerAllocator> _error_message_type; 00130 ::std_msgs::String_<ContainerAllocator> error_message; 00131 00132 00133 private: 00134 static const char* __s_getDataType_() { return "cob_srvs/SetOperationModeResponse"; } 00135 public: 00136 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00137 00138 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00139 00140 private: 00141 static const char* __s_getMD5Sum_() { return "bdad515e8f4c013bd650d3407753d2b8"; } 00142 public: 00143 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00144 00145 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00146 00147 private: 00148 static const char* __s_getServerMD5Sum_() { return "588a6152f0ed57d725118cc82be8479a"; } 00149 public: 00150 ROS_DEPRECATED static const std::string __s_getServerMD5Sum() { return __s_getServerMD5Sum_(); } 00151 00152 ROS_DEPRECATED const std::string __getServerMD5Sum() const { return __s_getServerMD5Sum_(); } 00153 00154 private: 00155 static const char* __s_getMessageDefinition_() { return "std_msgs/Bool success\n\ 00156 std_msgs/String error_message\n\ 00157 \n\ 00158 \n\ 00159 ================================================================================\n\ 00160 MSG: std_msgs/Bool\n\ 00161 bool data\n\ 00162 ================================================================================\n\ 00163 MSG: std_msgs/String\n\ 00164 string data\n\ 00165 \n\ 00166 "; } 00167 public: 00168 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00169 00170 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00171 00172 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00173 { 00174 ros::serialization::OStream stream(write_ptr, 1000000000); 00175 ros::serialization::serialize(stream, success); 00176 ros::serialization::serialize(stream, error_message); 00177 return stream.getData(); 00178 } 00179 00180 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00181 { 00182 ros::serialization::IStream stream(read_ptr, 1000000000); 00183 ros::serialization::deserialize(stream, success); 00184 ros::serialization::deserialize(stream, error_message); 00185 return stream.getData(); 00186 } 00187 00188 ROS_DEPRECATED virtual uint32_t serializationLength() const 00189 { 00190 uint32_t size = 0; 00191 size += ros::serialization::serializationLength(success); 00192 size += ros::serialization::serializationLength(error_message); 00193 return size; 00194 } 00195 00196 typedef boost::shared_ptr< ::cob_srvs::SetOperationModeResponse_<ContainerAllocator> > Ptr; 00197 typedef boost::shared_ptr< ::cob_srvs::SetOperationModeResponse_<ContainerAllocator> const> ConstPtr; 00198 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00199 }; // struct SetOperationModeResponse 00200 typedef ::cob_srvs::SetOperationModeResponse_<std::allocator<void> > SetOperationModeResponse; 00201 00202 typedef boost::shared_ptr< ::cob_srvs::SetOperationModeResponse> SetOperationModeResponsePtr; 00203 typedef boost::shared_ptr< ::cob_srvs::SetOperationModeResponse const> SetOperationModeResponseConstPtr; 00204 00205 struct SetOperationMode 00206 { 00207 00208 typedef SetOperationModeRequest Request; 00209 typedef SetOperationModeResponse Response; 00210 Request request; 00211 Response response; 00212 00213 typedef Request RequestType; 00214 typedef Response ResponseType; 00215 }; // struct SetOperationMode 00216 } // namespace cob_srvs 00217 00218 namespace ros 00219 { 00220 namespace message_traits 00221 { 00222 template<class ContainerAllocator> struct IsMessage< ::cob_srvs::SetOperationModeRequest_<ContainerAllocator> > : public TrueType {}; 00223 template<class ContainerAllocator> struct IsMessage< ::cob_srvs::SetOperationModeRequest_<ContainerAllocator> const> : public TrueType {}; 00224 template<class ContainerAllocator> 00225 struct MD5Sum< ::cob_srvs::SetOperationModeRequest_<ContainerAllocator> > { 00226 static const char* value() 00227 { 00228 return "df954cef597fce5b749fee53c7846c40"; 00229 } 00230 00231 static const char* value(const ::cob_srvs::SetOperationModeRequest_<ContainerAllocator> &) { return value(); } 00232 static const uint64_t static_value1 = 0xdf954cef597fce5bULL; 00233 static const uint64_t static_value2 = 0x749fee53c7846c40ULL; 00234 }; 00235 00236 template<class ContainerAllocator> 00237 struct DataType< ::cob_srvs::SetOperationModeRequest_<ContainerAllocator> > { 00238 static const char* value() 00239 { 00240 return "cob_srvs/SetOperationModeRequest"; 00241 } 00242 00243 static const char* value(const ::cob_srvs::SetOperationModeRequest_<ContainerAllocator> &) { return value(); } 00244 }; 00245 00246 template<class ContainerAllocator> 00247 struct Definition< ::cob_srvs::SetOperationModeRequest_<ContainerAllocator> > { 00248 static const char* value() 00249 { 00250 return "std_msgs/String operation_mode\n\ 00251 \n\ 00252 ================================================================================\n\ 00253 MSG: std_msgs/String\n\ 00254 string data\n\ 00255 \n\ 00256 "; 00257 } 00258 00259 static const char* value(const ::cob_srvs::SetOperationModeRequest_<ContainerAllocator> &) { return value(); } 00260 }; 00261 00262 } // namespace message_traits 00263 } // namespace ros 00264 00265 00266 namespace ros 00267 { 00268 namespace message_traits 00269 { 00270 template<class ContainerAllocator> struct IsMessage< ::cob_srvs::SetOperationModeResponse_<ContainerAllocator> > : public TrueType {}; 00271 template<class ContainerAllocator> struct IsMessage< ::cob_srvs::SetOperationModeResponse_<ContainerAllocator> const> : public TrueType {}; 00272 template<class ContainerAllocator> 00273 struct MD5Sum< ::cob_srvs::SetOperationModeResponse_<ContainerAllocator> > { 00274 static const char* value() 00275 { 00276 return "bdad515e8f4c013bd650d3407753d2b8"; 00277 } 00278 00279 static const char* value(const ::cob_srvs::SetOperationModeResponse_<ContainerAllocator> &) { return value(); } 00280 static const uint64_t static_value1 = 0xbdad515e8f4c013bULL; 00281 static const uint64_t static_value2 = 0xd650d3407753d2b8ULL; 00282 }; 00283 00284 template<class ContainerAllocator> 00285 struct DataType< ::cob_srvs::SetOperationModeResponse_<ContainerAllocator> > { 00286 static const char* value() 00287 { 00288 return "cob_srvs/SetOperationModeResponse"; 00289 } 00290 00291 static const char* value(const ::cob_srvs::SetOperationModeResponse_<ContainerAllocator> &) { return value(); } 00292 }; 00293 00294 template<class ContainerAllocator> 00295 struct Definition< ::cob_srvs::SetOperationModeResponse_<ContainerAllocator> > { 00296 static const char* value() 00297 { 00298 return "std_msgs/Bool success\n\ 00299 std_msgs/String error_message\n\ 00300 \n\ 00301 \n\ 00302 ================================================================================\n\ 00303 MSG: std_msgs/Bool\n\ 00304 bool data\n\ 00305 ================================================================================\n\ 00306 MSG: std_msgs/String\n\ 00307 string data\n\ 00308 \n\ 00309 "; 00310 } 00311 00312 static const char* value(const ::cob_srvs::SetOperationModeResponse_<ContainerAllocator> &) { return value(); } 00313 }; 00314 00315 } // namespace message_traits 00316 } // namespace ros 00317 00318 namespace ros 00319 { 00320 namespace serialization 00321 { 00322 00323 template<class ContainerAllocator> struct Serializer< ::cob_srvs::SetOperationModeRequest_<ContainerAllocator> > 00324 { 00325 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00326 { 00327 stream.next(m.operation_mode); 00328 } 00329 00330 ROS_DECLARE_ALLINONE_SERIALIZER; 00331 }; // struct SetOperationModeRequest_ 00332 } // namespace serialization 00333 } // namespace ros 00334 00335 00336 namespace ros 00337 { 00338 namespace serialization 00339 { 00340 00341 template<class ContainerAllocator> struct Serializer< ::cob_srvs::SetOperationModeResponse_<ContainerAllocator> > 00342 { 00343 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00344 { 00345 stream.next(m.success); 00346 stream.next(m.error_message); 00347 } 00348 00349 ROS_DECLARE_ALLINONE_SERIALIZER; 00350 }; // struct SetOperationModeResponse_ 00351 } // namespace serialization 00352 } // namespace ros 00353 00354 namespace ros 00355 { 00356 namespace service_traits 00357 { 00358 template<> 00359 struct MD5Sum<cob_srvs::SetOperationMode> { 00360 static const char* value() 00361 { 00362 return "588a6152f0ed57d725118cc82be8479a"; 00363 } 00364 00365 static const char* value(const cob_srvs::SetOperationMode&) { return value(); } 00366 }; 00367 00368 template<> 00369 struct DataType<cob_srvs::SetOperationMode> { 00370 static const char* value() 00371 { 00372 return "cob_srvs/SetOperationMode"; 00373 } 00374 00375 static const char* value(const cob_srvs::SetOperationMode&) { return value(); } 00376 }; 00377 00378 template<class ContainerAllocator> 00379 struct MD5Sum<cob_srvs::SetOperationModeRequest_<ContainerAllocator> > { 00380 static const char* value() 00381 { 00382 return "588a6152f0ed57d725118cc82be8479a"; 00383 } 00384 00385 static const char* value(const cob_srvs::SetOperationModeRequest_<ContainerAllocator> &) { return value(); } 00386 }; 00387 00388 template<class ContainerAllocator> 00389 struct DataType<cob_srvs::SetOperationModeRequest_<ContainerAllocator> > { 00390 static const char* value() 00391 { 00392 return "cob_srvs/SetOperationMode"; 00393 } 00394 00395 static const char* value(const cob_srvs::SetOperationModeRequest_<ContainerAllocator> &) { return value(); } 00396 }; 00397 00398 template<class ContainerAllocator> 00399 struct MD5Sum<cob_srvs::SetOperationModeResponse_<ContainerAllocator> > { 00400 static const char* value() 00401 { 00402 return "588a6152f0ed57d725118cc82be8479a"; 00403 } 00404 00405 static const char* value(const cob_srvs::SetOperationModeResponse_<ContainerAllocator> &) { return value(); } 00406 }; 00407 00408 template<class ContainerAllocator> 00409 struct DataType<cob_srvs::SetOperationModeResponse_<ContainerAllocator> > { 00410 static const char* value() 00411 { 00412 return "cob_srvs/SetOperationMode"; 00413 } 00414 00415 static const char* value(const cob_srvs::SetOperationModeResponse_<ContainerAllocator> &) { return value(); } 00416 }; 00417 00418 } // namespace service_traits 00419 } // namespace ros 00420 00421 #endif // COB_SRVS_SERVICE_SETOPERATIONMODE_H 00422