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