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