00001 /* Auto-generated by genmsg_cpp for file /home/rosbuild/hudson/workspace/doc-fuerte-cob_common/doc_stacks/2013-03-01_17-42-56.130276/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 typedef boost::shared_ptr< ::cob_srvs::SetOperationModeRequest_<ContainerAllocator> > Ptr; 00046 typedef boost::shared_ptr< ::cob_srvs::SetOperationModeRequest_<ContainerAllocator> const> ConstPtr; 00047 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00048 }; // struct SetOperationModeRequest 00049 typedef ::cob_srvs::SetOperationModeRequest_<std::allocator<void> > SetOperationModeRequest; 00050 00051 typedef boost::shared_ptr< ::cob_srvs::SetOperationModeRequest> SetOperationModeRequestPtr; 00052 typedef boost::shared_ptr< ::cob_srvs::SetOperationModeRequest const> SetOperationModeRequestConstPtr; 00053 00054 00055 template <class ContainerAllocator> 00056 struct SetOperationModeResponse_ { 00057 typedef SetOperationModeResponse_<ContainerAllocator> Type; 00058 00059 SetOperationModeResponse_() 00060 : success() 00061 , error_message() 00062 { 00063 } 00064 00065 SetOperationModeResponse_(const ContainerAllocator& _alloc) 00066 : success(_alloc) 00067 , error_message(_alloc) 00068 { 00069 } 00070 00071 typedef ::std_msgs::Bool_<ContainerAllocator> _success_type; 00072 ::std_msgs::Bool_<ContainerAllocator> success; 00073 00074 typedef ::std_msgs::String_<ContainerAllocator> _error_message_type; 00075 ::std_msgs::String_<ContainerAllocator> error_message; 00076 00077 00078 typedef boost::shared_ptr< ::cob_srvs::SetOperationModeResponse_<ContainerAllocator> > Ptr; 00079 typedef boost::shared_ptr< ::cob_srvs::SetOperationModeResponse_<ContainerAllocator> const> ConstPtr; 00080 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00081 }; // struct SetOperationModeResponse 00082 typedef ::cob_srvs::SetOperationModeResponse_<std::allocator<void> > SetOperationModeResponse; 00083 00084 typedef boost::shared_ptr< ::cob_srvs::SetOperationModeResponse> SetOperationModeResponsePtr; 00085 typedef boost::shared_ptr< ::cob_srvs::SetOperationModeResponse const> SetOperationModeResponseConstPtr; 00086 00087 struct SetOperationMode 00088 { 00089 00090 typedef SetOperationModeRequest Request; 00091 typedef SetOperationModeResponse Response; 00092 Request request; 00093 Response response; 00094 00095 typedef Request RequestType; 00096 typedef Response ResponseType; 00097 }; // struct SetOperationMode 00098 } // namespace cob_srvs 00099 00100 namespace ros 00101 { 00102 namespace message_traits 00103 { 00104 template<class ContainerAllocator> struct IsMessage< ::cob_srvs::SetOperationModeRequest_<ContainerAllocator> > : public TrueType {}; 00105 template<class ContainerAllocator> struct IsMessage< ::cob_srvs::SetOperationModeRequest_<ContainerAllocator> const> : public TrueType {}; 00106 template<class ContainerAllocator> 00107 struct MD5Sum< ::cob_srvs::SetOperationModeRequest_<ContainerAllocator> > { 00108 static const char* value() 00109 { 00110 return "df954cef597fce5b749fee53c7846c40"; 00111 } 00112 00113 static const char* value(const ::cob_srvs::SetOperationModeRequest_<ContainerAllocator> &) { return value(); } 00114 static const uint64_t static_value1 = 0xdf954cef597fce5bULL; 00115 static const uint64_t static_value2 = 0x749fee53c7846c40ULL; 00116 }; 00117 00118 template<class ContainerAllocator> 00119 struct DataType< ::cob_srvs::SetOperationModeRequest_<ContainerAllocator> > { 00120 static const char* value() 00121 { 00122 return "cob_srvs/SetOperationModeRequest"; 00123 } 00124 00125 static const char* value(const ::cob_srvs::SetOperationModeRequest_<ContainerAllocator> &) { return value(); } 00126 }; 00127 00128 template<class ContainerAllocator> 00129 struct Definition< ::cob_srvs::SetOperationModeRequest_<ContainerAllocator> > { 00130 static const char* value() 00131 { 00132 return "std_msgs/String operation_mode\n\ 00133 \n\ 00134 ================================================================================\n\ 00135 MSG: std_msgs/String\n\ 00136 string data\n\ 00137 \n\ 00138 "; 00139 } 00140 00141 static const char* value(const ::cob_srvs::SetOperationModeRequest_<ContainerAllocator> &) { return value(); } 00142 }; 00143 00144 } // namespace message_traits 00145 } // namespace ros 00146 00147 00148 namespace ros 00149 { 00150 namespace message_traits 00151 { 00152 template<class ContainerAllocator> struct IsMessage< ::cob_srvs::SetOperationModeResponse_<ContainerAllocator> > : public TrueType {}; 00153 template<class ContainerAllocator> struct IsMessage< ::cob_srvs::SetOperationModeResponse_<ContainerAllocator> const> : public TrueType {}; 00154 template<class ContainerAllocator> 00155 struct MD5Sum< ::cob_srvs::SetOperationModeResponse_<ContainerAllocator> > { 00156 static const char* value() 00157 { 00158 return "bdad515e8f4c013bd650d3407753d2b8"; 00159 } 00160 00161 static const char* value(const ::cob_srvs::SetOperationModeResponse_<ContainerAllocator> &) { return value(); } 00162 static const uint64_t static_value1 = 0xbdad515e8f4c013bULL; 00163 static const uint64_t static_value2 = 0xd650d3407753d2b8ULL; 00164 }; 00165 00166 template<class ContainerAllocator> 00167 struct DataType< ::cob_srvs::SetOperationModeResponse_<ContainerAllocator> > { 00168 static const char* value() 00169 { 00170 return "cob_srvs/SetOperationModeResponse"; 00171 } 00172 00173 static const char* value(const ::cob_srvs::SetOperationModeResponse_<ContainerAllocator> &) { return value(); } 00174 }; 00175 00176 template<class ContainerAllocator> 00177 struct Definition< ::cob_srvs::SetOperationModeResponse_<ContainerAllocator> > { 00178 static const char* value() 00179 { 00180 return "std_msgs/Bool success\n\ 00181 std_msgs/String error_message\n\ 00182 \n\ 00183 \n\ 00184 ================================================================================\n\ 00185 MSG: std_msgs/Bool\n\ 00186 bool data\n\ 00187 ================================================================================\n\ 00188 MSG: std_msgs/String\n\ 00189 string data\n\ 00190 \n\ 00191 "; 00192 } 00193 00194 static const char* value(const ::cob_srvs::SetOperationModeResponse_<ContainerAllocator> &) { return value(); } 00195 }; 00196 00197 } // namespace message_traits 00198 } // namespace ros 00199 00200 namespace ros 00201 { 00202 namespace serialization 00203 { 00204 00205 template<class ContainerAllocator> struct Serializer< ::cob_srvs::SetOperationModeRequest_<ContainerAllocator> > 00206 { 00207 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00208 { 00209 stream.next(m.operation_mode); 00210 } 00211 00212 ROS_DECLARE_ALLINONE_SERIALIZER; 00213 }; // struct SetOperationModeRequest_ 00214 } // namespace serialization 00215 } // namespace ros 00216 00217 00218 namespace ros 00219 { 00220 namespace serialization 00221 { 00222 00223 template<class ContainerAllocator> struct Serializer< ::cob_srvs::SetOperationModeResponse_<ContainerAllocator> > 00224 { 00225 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00226 { 00227 stream.next(m.success); 00228 stream.next(m.error_message); 00229 } 00230 00231 ROS_DECLARE_ALLINONE_SERIALIZER; 00232 }; // struct SetOperationModeResponse_ 00233 } // namespace serialization 00234 } // namespace ros 00235 00236 namespace ros 00237 { 00238 namespace service_traits 00239 { 00240 template<> 00241 struct MD5Sum<cob_srvs::SetOperationMode> { 00242 static const char* value() 00243 { 00244 return "588a6152f0ed57d725118cc82be8479a"; 00245 } 00246 00247 static const char* value(const cob_srvs::SetOperationMode&) { return value(); } 00248 }; 00249 00250 template<> 00251 struct DataType<cob_srvs::SetOperationMode> { 00252 static const char* value() 00253 { 00254 return "cob_srvs/SetOperationMode"; 00255 } 00256 00257 static const char* value(const cob_srvs::SetOperationMode&) { return value(); } 00258 }; 00259 00260 template<class ContainerAllocator> 00261 struct MD5Sum<cob_srvs::SetOperationModeRequest_<ContainerAllocator> > { 00262 static const char* value() 00263 { 00264 return "588a6152f0ed57d725118cc82be8479a"; 00265 } 00266 00267 static const char* value(const cob_srvs::SetOperationModeRequest_<ContainerAllocator> &) { return value(); } 00268 }; 00269 00270 template<class ContainerAllocator> 00271 struct DataType<cob_srvs::SetOperationModeRequest_<ContainerAllocator> > { 00272 static const char* value() 00273 { 00274 return "cob_srvs/SetOperationMode"; 00275 } 00276 00277 static const char* value(const cob_srvs::SetOperationModeRequest_<ContainerAllocator> &) { return value(); } 00278 }; 00279 00280 template<class ContainerAllocator> 00281 struct MD5Sum<cob_srvs::SetOperationModeResponse_<ContainerAllocator> > { 00282 static const char* value() 00283 { 00284 return "588a6152f0ed57d725118cc82be8479a"; 00285 } 00286 00287 static const char* value(const cob_srvs::SetOperationModeResponse_<ContainerAllocator> &) { return value(); } 00288 }; 00289 00290 template<class ContainerAllocator> 00291 struct DataType<cob_srvs::SetOperationModeResponse_<ContainerAllocator> > { 00292 static const char* value() 00293 { 00294 return "cob_srvs/SetOperationMode"; 00295 } 00296 00297 static const char* value(const cob_srvs::SetOperationModeResponse_<ContainerAllocator> &) { return value(); } 00298 }; 00299 00300 } // namespace service_traits 00301 } // namespace ros 00302 00303 #endif // COB_SRVS_SERVICE_SETOPERATIONMODE_H 00304