$search
00001 /* Auto-generated by genmsg_cpp for file /home/rosbuild/hudson/workspace/doc-electric-common_msgs/doc_stacks/2013-03-01_14-58-52.505545/common_msgs/diagnostic_msgs/srv/SelfTest.srv */ 00002 #ifndef DIAGNOSTIC_MSGS_SERVICE_SELFTEST_H 00003 #define DIAGNOSTIC_MSGS_SERVICE_SELFTEST_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 "diagnostic_msgs/DiagnosticStatus.h" 00022 00023 namespace diagnostic_msgs 00024 { 00025 template <class ContainerAllocator> 00026 struct SelfTestRequest_ { 00027 typedef SelfTestRequest_<ContainerAllocator> Type; 00028 00029 SelfTestRequest_() 00030 { 00031 } 00032 00033 SelfTestRequest_(const ContainerAllocator& _alloc) 00034 { 00035 } 00036 00037 00038 private: 00039 static const char* __s_getDataType_() { return "diagnostic_msgs/SelfTestRequest"; } 00040 public: 00041 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00042 00043 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00044 00045 private: 00046 static const char* __s_getMD5Sum_() { return "d41d8cd98f00b204e9800998ecf8427e"; } 00047 public: 00048 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00049 00050 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00051 00052 private: 00053 static const char* __s_getServerMD5Sum_() { return "74c9372c870a76da4fc2b3973978b898"; } 00054 public: 00055 ROS_DEPRECATED static const std::string __s_getServerMD5Sum() { return __s_getServerMD5Sum_(); } 00056 00057 ROS_DEPRECATED const std::string __getServerMD5Sum() const { return __s_getServerMD5Sum_(); } 00058 00059 private: 00060 static const char* __s_getMessageDefinition_() { return "\n\ 00061 "; } 00062 public: 00063 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00064 00065 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00066 00067 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00068 { 00069 ros::serialization::OStream stream(write_ptr, 1000000000); 00070 return stream.getData(); 00071 } 00072 00073 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00074 { 00075 ros::serialization::IStream stream(read_ptr, 1000000000); 00076 return stream.getData(); 00077 } 00078 00079 ROS_DEPRECATED virtual uint32_t serializationLength() const 00080 { 00081 uint32_t size = 0; 00082 return size; 00083 } 00084 00085 typedef boost::shared_ptr< ::diagnostic_msgs::SelfTestRequest_<ContainerAllocator> > Ptr; 00086 typedef boost::shared_ptr< ::diagnostic_msgs::SelfTestRequest_<ContainerAllocator> const> ConstPtr; 00087 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00088 }; // struct SelfTestRequest 00089 typedef ::diagnostic_msgs::SelfTestRequest_<std::allocator<void> > SelfTestRequest; 00090 00091 typedef boost::shared_ptr< ::diagnostic_msgs::SelfTestRequest> SelfTestRequestPtr; 00092 typedef boost::shared_ptr< ::diagnostic_msgs::SelfTestRequest const> SelfTestRequestConstPtr; 00093 00094 00095 template <class ContainerAllocator> 00096 struct SelfTestResponse_ { 00097 typedef SelfTestResponse_<ContainerAllocator> Type; 00098 00099 SelfTestResponse_() 00100 : id() 00101 , passed(0) 00102 , status() 00103 { 00104 } 00105 00106 SelfTestResponse_(const ContainerAllocator& _alloc) 00107 : id(_alloc) 00108 , passed(0) 00109 , status(_alloc) 00110 { 00111 } 00112 00113 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _id_type; 00114 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > id; 00115 00116 typedef int8_t _passed_type; 00117 int8_t passed; 00118 00119 typedef std::vector< ::diagnostic_msgs::DiagnosticStatus_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::diagnostic_msgs::DiagnosticStatus_<ContainerAllocator> >::other > _status_type; 00120 std::vector< ::diagnostic_msgs::DiagnosticStatus_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::diagnostic_msgs::DiagnosticStatus_<ContainerAllocator> >::other > status; 00121 00122 00123 ROS_DEPRECATED uint32_t get_status_size() const { return (uint32_t)status.size(); } 00124 ROS_DEPRECATED void set_status_size(uint32_t size) { status.resize((size_t)size); } 00125 ROS_DEPRECATED void get_status_vec(std::vector< ::diagnostic_msgs::DiagnosticStatus_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::diagnostic_msgs::DiagnosticStatus_<ContainerAllocator> >::other > & vec) const { vec = this->status; } 00126 ROS_DEPRECATED void set_status_vec(const std::vector< ::diagnostic_msgs::DiagnosticStatus_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::diagnostic_msgs::DiagnosticStatus_<ContainerAllocator> >::other > & vec) { this->status = vec; } 00127 private: 00128 static const char* __s_getDataType_() { return "diagnostic_msgs/SelfTestResponse"; } 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 "74c9372c870a76da4fc2b3973978b898"; } 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 "74c9372c870a76da4fc2b3973978b898"; } 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 "string id\n\ 00150 byte passed\n\ 00151 DiagnosticStatus[] status\n\ 00152 \n\ 00153 \n\ 00154 ================================================================================\n\ 00155 MSG: diagnostic_msgs/DiagnosticStatus\n\ 00156 # This message holds the status of an individual component of the robot.\n\ 00157 # \n\ 00158 \n\ 00159 # Possible levels of operations\n\ 00160 byte OK=0\n\ 00161 byte WARN=1\n\ 00162 byte ERROR=2\n\ 00163 \n\ 00164 byte level # level of operation enumerated above \n\ 00165 string name # a description of the test/component reporting\n\ 00166 string message # a description of the status\n\ 00167 string hardware_id # a hardware unique string\n\ 00168 KeyValue[] values # an array of values associated with the status\n\ 00169 \n\ 00170 \n\ 00171 ================================================================================\n\ 00172 MSG: diagnostic_msgs/KeyValue\n\ 00173 string key # what to label this value when viewing\n\ 00174 string value # a value to track over time\n\ 00175 \n\ 00176 "; } 00177 public: 00178 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00179 00180 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00181 00182 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00183 { 00184 ros::serialization::OStream stream(write_ptr, 1000000000); 00185 ros::serialization::serialize(stream, id); 00186 ros::serialization::serialize(stream, passed); 00187 ros::serialization::serialize(stream, status); 00188 return stream.getData(); 00189 } 00190 00191 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00192 { 00193 ros::serialization::IStream stream(read_ptr, 1000000000); 00194 ros::serialization::deserialize(stream, id); 00195 ros::serialization::deserialize(stream, passed); 00196 ros::serialization::deserialize(stream, status); 00197 return stream.getData(); 00198 } 00199 00200 ROS_DEPRECATED virtual uint32_t serializationLength() const 00201 { 00202 uint32_t size = 0; 00203 size += ros::serialization::serializationLength(id); 00204 size += ros::serialization::serializationLength(passed); 00205 size += ros::serialization::serializationLength(status); 00206 return size; 00207 } 00208 00209 typedef boost::shared_ptr< ::diagnostic_msgs::SelfTestResponse_<ContainerAllocator> > Ptr; 00210 typedef boost::shared_ptr< ::diagnostic_msgs::SelfTestResponse_<ContainerAllocator> const> ConstPtr; 00211 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00212 }; // struct SelfTestResponse 00213 typedef ::diagnostic_msgs::SelfTestResponse_<std::allocator<void> > SelfTestResponse; 00214 00215 typedef boost::shared_ptr< ::diagnostic_msgs::SelfTestResponse> SelfTestResponsePtr; 00216 typedef boost::shared_ptr< ::diagnostic_msgs::SelfTestResponse const> SelfTestResponseConstPtr; 00217 00218 struct SelfTest 00219 { 00220 00221 typedef SelfTestRequest Request; 00222 typedef SelfTestResponse Response; 00223 Request request; 00224 Response response; 00225 00226 typedef Request RequestType; 00227 typedef Response ResponseType; 00228 }; // struct SelfTest 00229 } // namespace diagnostic_msgs 00230 00231 namespace ros 00232 { 00233 namespace message_traits 00234 { 00235 template<class ContainerAllocator> struct IsMessage< ::diagnostic_msgs::SelfTestRequest_<ContainerAllocator> > : public TrueType {}; 00236 template<class ContainerAllocator> struct IsMessage< ::diagnostic_msgs::SelfTestRequest_<ContainerAllocator> const> : public TrueType {}; 00237 template<class ContainerAllocator> 00238 struct MD5Sum< ::diagnostic_msgs::SelfTestRequest_<ContainerAllocator> > { 00239 static const char* value() 00240 { 00241 return "d41d8cd98f00b204e9800998ecf8427e"; 00242 } 00243 00244 static const char* value(const ::diagnostic_msgs::SelfTestRequest_<ContainerAllocator> &) { return value(); } 00245 static const uint64_t static_value1 = 0xd41d8cd98f00b204ULL; 00246 static const uint64_t static_value2 = 0xe9800998ecf8427eULL; 00247 }; 00248 00249 template<class ContainerAllocator> 00250 struct DataType< ::diagnostic_msgs::SelfTestRequest_<ContainerAllocator> > { 00251 static const char* value() 00252 { 00253 return "diagnostic_msgs/SelfTestRequest"; 00254 } 00255 00256 static const char* value(const ::diagnostic_msgs::SelfTestRequest_<ContainerAllocator> &) { return value(); } 00257 }; 00258 00259 template<class ContainerAllocator> 00260 struct Definition< ::diagnostic_msgs::SelfTestRequest_<ContainerAllocator> > { 00261 static const char* value() 00262 { 00263 return "\n\ 00264 "; 00265 } 00266 00267 static const char* value(const ::diagnostic_msgs::SelfTestRequest_<ContainerAllocator> &) { return value(); } 00268 }; 00269 00270 template<class ContainerAllocator> struct IsFixedSize< ::diagnostic_msgs::SelfTestRequest_<ContainerAllocator> > : public TrueType {}; 00271 } // namespace message_traits 00272 } // namespace ros 00273 00274 00275 namespace ros 00276 { 00277 namespace message_traits 00278 { 00279 template<class ContainerAllocator> struct IsMessage< ::diagnostic_msgs::SelfTestResponse_<ContainerAllocator> > : public TrueType {}; 00280 template<class ContainerAllocator> struct IsMessage< ::diagnostic_msgs::SelfTestResponse_<ContainerAllocator> const> : public TrueType {}; 00281 template<class ContainerAllocator> 00282 struct MD5Sum< ::diagnostic_msgs::SelfTestResponse_<ContainerAllocator> > { 00283 static const char* value() 00284 { 00285 return "74c9372c870a76da4fc2b3973978b898"; 00286 } 00287 00288 static const char* value(const ::diagnostic_msgs::SelfTestResponse_<ContainerAllocator> &) { return value(); } 00289 static const uint64_t static_value1 = 0x74c9372c870a76daULL; 00290 static const uint64_t static_value2 = 0x4fc2b3973978b898ULL; 00291 }; 00292 00293 template<class ContainerAllocator> 00294 struct DataType< ::diagnostic_msgs::SelfTestResponse_<ContainerAllocator> > { 00295 static const char* value() 00296 { 00297 return "diagnostic_msgs/SelfTestResponse"; 00298 } 00299 00300 static const char* value(const ::diagnostic_msgs::SelfTestResponse_<ContainerAllocator> &) { return value(); } 00301 }; 00302 00303 template<class ContainerAllocator> 00304 struct Definition< ::diagnostic_msgs::SelfTestResponse_<ContainerAllocator> > { 00305 static const char* value() 00306 { 00307 return "string id\n\ 00308 byte passed\n\ 00309 DiagnosticStatus[] status\n\ 00310 \n\ 00311 \n\ 00312 ================================================================================\n\ 00313 MSG: diagnostic_msgs/DiagnosticStatus\n\ 00314 # This message holds the status of an individual component of the robot.\n\ 00315 # \n\ 00316 \n\ 00317 # Possible levels of operations\n\ 00318 byte OK=0\n\ 00319 byte WARN=1\n\ 00320 byte ERROR=2\n\ 00321 \n\ 00322 byte level # level of operation enumerated above \n\ 00323 string name # a description of the test/component reporting\n\ 00324 string message # a description of the status\n\ 00325 string hardware_id # a hardware unique string\n\ 00326 KeyValue[] values # an array of values associated with the status\n\ 00327 \n\ 00328 \n\ 00329 ================================================================================\n\ 00330 MSG: diagnostic_msgs/KeyValue\n\ 00331 string key # what to label this value when viewing\n\ 00332 string value # a value to track over time\n\ 00333 \n\ 00334 "; 00335 } 00336 00337 static const char* value(const ::diagnostic_msgs::SelfTestResponse_<ContainerAllocator> &) { return value(); } 00338 }; 00339 00340 } // namespace message_traits 00341 } // namespace ros 00342 00343 namespace ros 00344 { 00345 namespace serialization 00346 { 00347 00348 template<class ContainerAllocator> struct Serializer< ::diagnostic_msgs::SelfTestRequest_<ContainerAllocator> > 00349 { 00350 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00351 { 00352 } 00353 00354 ROS_DECLARE_ALLINONE_SERIALIZER; 00355 }; // struct SelfTestRequest_ 00356 } // namespace serialization 00357 } // namespace ros 00358 00359 00360 namespace ros 00361 { 00362 namespace serialization 00363 { 00364 00365 template<class ContainerAllocator> struct Serializer< ::diagnostic_msgs::SelfTestResponse_<ContainerAllocator> > 00366 { 00367 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00368 { 00369 stream.next(m.id); 00370 stream.next(m.passed); 00371 stream.next(m.status); 00372 } 00373 00374 ROS_DECLARE_ALLINONE_SERIALIZER; 00375 }; // struct SelfTestResponse_ 00376 } // namespace serialization 00377 } // namespace ros 00378 00379 namespace ros 00380 { 00381 namespace service_traits 00382 { 00383 template<> 00384 struct MD5Sum<diagnostic_msgs::SelfTest> { 00385 static const char* value() 00386 { 00387 return "74c9372c870a76da4fc2b3973978b898"; 00388 } 00389 00390 static const char* value(const diagnostic_msgs::SelfTest&) { return value(); } 00391 }; 00392 00393 template<> 00394 struct DataType<diagnostic_msgs::SelfTest> { 00395 static const char* value() 00396 { 00397 return "diagnostic_msgs/SelfTest"; 00398 } 00399 00400 static const char* value(const diagnostic_msgs::SelfTest&) { return value(); } 00401 }; 00402 00403 template<class ContainerAllocator> 00404 struct MD5Sum<diagnostic_msgs::SelfTestRequest_<ContainerAllocator> > { 00405 static const char* value() 00406 { 00407 return "74c9372c870a76da4fc2b3973978b898"; 00408 } 00409 00410 static const char* value(const diagnostic_msgs::SelfTestRequest_<ContainerAllocator> &) { return value(); } 00411 }; 00412 00413 template<class ContainerAllocator> 00414 struct DataType<diagnostic_msgs::SelfTestRequest_<ContainerAllocator> > { 00415 static const char* value() 00416 { 00417 return "diagnostic_msgs/SelfTest"; 00418 } 00419 00420 static const char* value(const diagnostic_msgs::SelfTestRequest_<ContainerAllocator> &) { return value(); } 00421 }; 00422 00423 template<class ContainerAllocator> 00424 struct MD5Sum<diagnostic_msgs::SelfTestResponse_<ContainerAllocator> > { 00425 static const char* value() 00426 { 00427 return "74c9372c870a76da4fc2b3973978b898"; 00428 } 00429 00430 static const char* value(const diagnostic_msgs::SelfTestResponse_<ContainerAllocator> &) { return value(); } 00431 }; 00432 00433 template<class ContainerAllocator> 00434 struct DataType<diagnostic_msgs::SelfTestResponse_<ContainerAllocator> > { 00435 static const char* value() 00436 { 00437 return "diagnostic_msgs/SelfTest"; 00438 } 00439 00440 static const char* value(const diagnostic_msgs::SelfTestResponse_<ContainerAllocator> &) { return value(); } 00441 }; 00442 00443 } // namespace service_traits 00444 } // namespace ros 00445 00446 #endif // DIAGNOSTIC_MSGS_SERVICE_SELFTEST_H 00447