00001
00002 #ifndef PR2_SELF_TEST_MSGS_SERVICE_TESTRESULT_H
00003 #define PR2_SELF_TEST_MSGS_SERVICE_TESTRESULT_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 #include "pr2_self_test_msgs/Plot.h"
00016 #include "pr2_self_test_msgs/TestParam.h"
00017 #include "pr2_self_test_msgs/TestValue.h"
00018
00019
00020
00021 namespace pr2_self_test_msgs
00022 {
00023 template <class ContainerAllocator>
00024 struct TestResultRequest_ : public ros::Message
00025 {
00026 typedef TestResultRequest_<ContainerAllocator> Type;
00027
00028 TestResultRequest_()
00029 : html_result()
00030 , text_summary()
00031 , result(0)
00032 , plots()
00033 , params()
00034 , values()
00035 {
00036 }
00037
00038 TestResultRequest_(const ContainerAllocator& _alloc)
00039 : html_result(_alloc)
00040 , text_summary(_alloc)
00041 , result(0)
00042 , plots(_alloc)
00043 , params(_alloc)
00044 , values(_alloc)
00045 {
00046 }
00047
00048 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _html_result_type;
00049 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > html_result;
00050
00051 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _text_summary_type;
00052 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > text_summary;
00053
00054 typedef int8_t _result_type;
00055 int8_t result;
00056
00057 typedef std::vector< ::pr2_self_test_msgs::Plot_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::pr2_self_test_msgs::Plot_<ContainerAllocator> >::other > _plots_type;
00058 std::vector< ::pr2_self_test_msgs::Plot_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::pr2_self_test_msgs::Plot_<ContainerAllocator> >::other > plots;
00059
00060 typedef std::vector< ::pr2_self_test_msgs::TestParam_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::pr2_self_test_msgs::TestParam_<ContainerAllocator> >::other > _params_type;
00061 std::vector< ::pr2_self_test_msgs::TestParam_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::pr2_self_test_msgs::TestParam_<ContainerAllocator> >::other > params;
00062
00063 typedef std::vector< ::pr2_self_test_msgs::TestValue_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::pr2_self_test_msgs::TestValue_<ContainerAllocator> >::other > _values_type;
00064 std::vector< ::pr2_self_test_msgs::TestValue_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::pr2_self_test_msgs::TestValue_<ContainerAllocator> >::other > values;
00065
00066 enum { RESULT_PASS = 0 };
00067 enum { RESULT_FAIL = 1 };
00068 enum { RESULT_HUMAN_REQUIRED = 2 };
00069
00070 ROS_DEPRECATED uint32_t get_plots_size() const { return (uint32_t)plots.size(); }
00071 ROS_DEPRECATED void set_plots_size(uint32_t size) { plots.resize((size_t)size); }
00072 ROS_DEPRECATED void get_plots_vec(std::vector< ::pr2_self_test_msgs::Plot_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::pr2_self_test_msgs::Plot_<ContainerAllocator> >::other > & vec) const { vec = this->plots; }
00073 ROS_DEPRECATED void set_plots_vec(const std::vector< ::pr2_self_test_msgs::Plot_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::pr2_self_test_msgs::Plot_<ContainerAllocator> >::other > & vec) { this->plots = vec; }
00074 ROS_DEPRECATED uint32_t get_params_size() const { return (uint32_t)params.size(); }
00075 ROS_DEPRECATED void set_params_size(uint32_t size) { params.resize((size_t)size); }
00076 ROS_DEPRECATED void get_params_vec(std::vector< ::pr2_self_test_msgs::TestParam_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::pr2_self_test_msgs::TestParam_<ContainerAllocator> >::other > & vec) const { vec = this->params; }
00077 ROS_DEPRECATED void set_params_vec(const std::vector< ::pr2_self_test_msgs::TestParam_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::pr2_self_test_msgs::TestParam_<ContainerAllocator> >::other > & vec) { this->params = vec; }
00078 ROS_DEPRECATED uint32_t get_values_size() const { return (uint32_t)values.size(); }
00079 ROS_DEPRECATED void set_values_size(uint32_t size) { values.resize((size_t)size); }
00080 ROS_DEPRECATED void get_values_vec(std::vector< ::pr2_self_test_msgs::TestValue_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::pr2_self_test_msgs::TestValue_<ContainerAllocator> >::other > & vec) const { vec = this->values; }
00081 ROS_DEPRECATED void set_values_vec(const std::vector< ::pr2_self_test_msgs::TestValue_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::pr2_self_test_msgs::TestValue_<ContainerAllocator> >::other > & vec) { this->values = vec; }
00082 private:
00083 static const char* __s_getDataType_() { return "pr2_self_test_msgs/TestResultRequest"; }
00084 public:
00085 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); }
00086
00087 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); }
00088
00089 private:
00090 static const char* __s_getMD5Sum_() { return "3bc5fb8af85db1b7baaa0efa94b53344"; }
00091 public:
00092 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); }
00093
00094 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); }
00095
00096 private:
00097 static const char* __s_getServerMD5Sum_() { return "3bc5fb8af85db1b7baaa0efa94b53344"; }
00098 public:
00099 ROS_DEPRECATED static const std::string __s_getServerMD5Sum() { return __s_getServerMD5Sum_(); }
00100
00101 ROS_DEPRECATED const std::string __getServerMD5Sum() const { return __s_getServerMD5Sum_(); }
00102
00103 private:
00104 static const char* __s_getMessageDefinition_() { return "\n\
00105 byte RESULT_PASS = 0\n\
00106 byte RESULT_FAIL = 1\n\
00107 byte RESULT_HUMAN_REQUIRED = 2\n\
00108 \n\
00109 string html_result\n\
00110 string text_summary\n\
00111 byte result\n\
00112 Plot[] plots\n\
00113 TestParam[] params\n\
00114 TestValue[] values\n\
00115 \n\
00116 ================================================================================\n\
00117 MSG: pr2_self_test_msgs/Plot\n\
00118 # Plot data, used for PR2 self tests\n\
00119 string title\n\
00120 byte[] image\n\
00121 string image_format\n\
00122 \n\
00123 ================================================================================\n\
00124 MSG: pr2_self_test_msgs/TestParam\n\
00125 # Test param is value that is set during qualification\n\
00126 string key\n\
00127 string value\n\
00128 ================================================================================\n\
00129 MSG: pr2_self_test_msgs/TestValue\n\
00130 # TestValue is recorded value during PR2 qualification\n\
00131 string key\n\
00132 string value\n\
00133 string min\n\
00134 string max\n\
00135 "; }
00136 public:
00137 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); }
00138
00139 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); }
00140
00141 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const
00142 {
00143 ros::serialization::OStream stream(write_ptr, 1000000000);
00144 ros::serialization::serialize(stream, html_result);
00145 ros::serialization::serialize(stream, text_summary);
00146 ros::serialization::serialize(stream, result);
00147 ros::serialization::serialize(stream, plots);
00148 ros::serialization::serialize(stream, params);
00149 ros::serialization::serialize(stream, values);
00150 return stream.getData();
00151 }
00152
00153 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr)
00154 {
00155 ros::serialization::IStream stream(read_ptr, 1000000000);
00156 ros::serialization::deserialize(stream, html_result);
00157 ros::serialization::deserialize(stream, text_summary);
00158 ros::serialization::deserialize(stream, result);
00159 ros::serialization::deserialize(stream, plots);
00160 ros::serialization::deserialize(stream, params);
00161 ros::serialization::deserialize(stream, values);
00162 return stream.getData();
00163 }
00164
00165 ROS_DEPRECATED virtual uint32_t serializationLength() const
00166 {
00167 uint32_t size = 0;
00168 size += ros::serialization::serializationLength(html_result);
00169 size += ros::serialization::serializationLength(text_summary);
00170 size += ros::serialization::serializationLength(result);
00171 size += ros::serialization::serializationLength(plots);
00172 size += ros::serialization::serializationLength(params);
00173 size += ros::serialization::serializationLength(values);
00174 return size;
00175 }
00176
00177 typedef boost::shared_ptr< ::pr2_self_test_msgs::TestResultRequest_<ContainerAllocator> > Ptr;
00178 typedef boost::shared_ptr< ::pr2_self_test_msgs::TestResultRequest_<ContainerAllocator> const> ConstPtr;
00179 };
00180 typedef ::pr2_self_test_msgs::TestResultRequest_<std::allocator<void> > TestResultRequest;
00181
00182 typedef boost::shared_ptr< ::pr2_self_test_msgs::TestResultRequest> TestResultRequestPtr;
00183 typedef boost::shared_ptr< ::pr2_self_test_msgs::TestResultRequest const> TestResultRequestConstPtr;
00184
00185
00186 template <class ContainerAllocator>
00187 struct TestResultResponse_ : public ros::Message
00188 {
00189 typedef TestResultResponse_<ContainerAllocator> Type;
00190
00191 TestResultResponse_()
00192 {
00193 }
00194
00195 TestResultResponse_(const ContainerAllocator& _alloc)
00196 {
00197 }
00198
00199
00200 private:
00201 static const char* __s_getDataType_() { return "pr2_self_test_msgs/TestResultResponse"; }
00202 public:
00203 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); }
00204
00205 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); }
00206
00207 private:
00208 static const char* __s_getMD5Sum_() { return "d41d8cd98f00b204e9800998ecf8427e"; }
00209 public:
00210 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); }
00211
00212 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); }
00213
00214 private:
00215 static const char* __s_getServerMD5Sum_() { return "3bc5fb8af85db1b7baaa0efa94b53344"; }
00216 public:
00217 ROS_DEPRECATED static const std::string __s_getServerMD5Sum() { return __s_getServerMD5Sum_(); }
00218
00219 ROS_DEPRECATED const std::string __getServerMD5Sum() const { return __s_getServerMD5Sum_(); }
00220
00221 private:
00222 static const char* __s_getMessageDefinition_() { return "\n\
00223 \n\
00224 "; }
00225 public:
00226 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); }
00227
00228 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); }
00229
00230 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const
00231 {
00232 ros::serialization::OStream stream(write_ptr, 1000000000);
00233 return stream.getData();
00234 }
00235
00236 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr)
00237 {
00238 ros::serialization::IStream stream(read_ptr, 1000000000);
00239 return stream.getData();
00240 }
00241
00242 ROS_DEPRECATED virtual uint32_t serializationLength() const
00243 {
00244 uint32_t size = 0;
00245 return size;
00246 }
00247
00248 typedef boost::shared_ptr< ::pr2_self_test_msgs::TestResultResponse_<ContainerAllocator> > Ptr;
00249 typedef boost::shared_ptr< ::pr2_self_test_msgs::TestResultResponse_<ContainerAllocator> const> ConstPtr;
00250 };
00251 typedef ::pr2_self_test_msgs::TestResultResponse_<std::allocator<void> > TestResultResponse;
00252
00253 typedef boost::shared_ptr< ::pr2_self_test_msgs::TestResultResponse> TestResultResponsePtr;
00254 typedef boost::shared_ptr< ::pr2_self_test_msgs::TestResultResponse const> TestResultResponseConstPtr;
00255
00256 struct TestResult
00257 {
00258
00259 typedef TestResultRequest Request;
00260 typedef TestResultResponse Response;
00261 Request request;
00262 Response response;
00263
00264 typedef Request RequestType;
00265 typedef Response ResponseType;
00266 };
00267 }
00268
00269 namespace ros
00270 {
00271 namespace message_traits
00272 {
00273 template<class ContainerAllocator>
00274 struct MD5Sum< ::pr2_self_test_msgs::TestResultRequest_<ContainerAllocator> > {
00275 static const char* value()
00276 {
00277 return "3bc5fb8af85db1b7baaa0efa94b53344";
00278 }
00279
00280 static const char* value(const ::pr2_self_test_msgs::TestResultRequest_<ContainerAllocator> &) { return value(); }
00281 static const uint64_t static_value1 = 0x3bc5fb8af85db1b7ULL;
00282 static const uint64_t static_value2 = 0xbaaa0efa94b53344ULL;
00283 };
00284
00285 template<class ContainerAllocator>
00286 struct DataType< ::pr2_self_test_msgs::TestResultRequest_<ContainerAllocator> > {
00287 static const char* value()
00288 {
00289 return "pr2_self_test_msgs/TestResultRequest";
00290 }
00291
00292 static const char* value(const ::pr2_self_test_msgs::TestResultRequest_<ContainerAllocator> &) { return value(); }
00293 };
00294
00295 template<class ContainerAllocator>
00296 struct Definition< ::pr2_self_test_msgs::TestResultRequest_<ContainerAllocator> > {
00297 static const char* value()
00298 {
00299 return "\n\
00300 byte RESULT_PASS = 0\n\
00301 byte RESULT_FAIL = 1\n\
00302 byte RESULT_HUMAN_REQUIRED = 2\n\
00303 \n\
00304 string html_result\n\
00305 string text_summary\n\
00306 byte result\n\
00307 Plot[] plots\n\
00308 TestParam[] params\n\
00309 TestValue[] values\n\
00310 \n\
00311 ================================================================================\n\
00312 MSG: pr2_self_test_msgs/Plot\n\
00313 # Plot data, used for PR2 self tests\n\
00314 string title\n\
00315 byte[] image\n\
00316 string image_format\n\
00317 \n\
00318 ================================================================================\n\
00319 MSG: pr2_self_test_msgs/TestParam\n\
00320 # Test param is value that is set during qualification\n\
00321 string key\n\
00322 string value\n\
00323 ================================================================================\n\
00324 MSG: pr2_self_test_msgs/TestValue\n\
00325 # TestValue is recorded value during PR2 qualification\n\
00326 string key\n\
00327 string value\n\
00328 string min\n\
00329 string max\n\
00330 ";
00331 }
00332
00333 static const char* value(const ::pr2_self_test_msgs::TestResultRequest_<ContainerAllocator> &) { return value(); }
00334 };
00335
00336 }
00337 }
00338
00339
00340 namespace ros
00341 {
00342 namespace message_traits
00343 {
00344 template<class ContainerAllocator>
00345 struct MD5Sum< ::pr2_self_test_msgs::TestResultResponse_<ContainerAllocator> > {
00346 static const char* value()
00347 {
00348 return "d41d8cd98f00b204e9800998ecf8427e";
00349 }
00350
00351 static const char* value(const ::pr2_self_test_msgs::TestResultResponse_<ContainerAllocator> &) { return value(); }
00352 static const uint64_t static_value1 = 0xd41d8cd98f00b204ULL;
00353 static const uint64_t static_value2 = 0xe9800998ecf8427eULL;
00354 };
00355
00356 template<class ContainerAllocator>
00357 struct DataType< ::pr2_self_test_msgs::TestResultResponse_<ContainerAllocator> > {
00358 static const char* value()
00359 {
00360 return "pr2_self_test_msgs/TestResultResponse";
00361 }
00362
00363 static const char* value(const ::pr2_self_test_msgs::TestResultResponse_<ContainerAllocator> &) { return value(); }
00364 };
00365
00366 template<class ContainerAllocator>
00367 struct Definition< ::pr2_self_test_msgs::TestResultResponse_<ContainerAllocator> > {
00368 static const char* value()
00369 {
00370 return "\n\
00371 \n\
00372 ";
00373 }
00374
00375 static const char* value(const ::pr2_self_test_msgs::TestResultResponse_<ContainerAllocator> &) { return value(); }
00376 };
00377
00378 template<class ContainerAllocator> struct IsFixedSize< ::pr2_self_test_msgs::TestResultResponse_<ContainerAllocator> > : public TrueType {};
00379 }
00380 }
00381
00382 namespace ros
00383 {
00384 namespace serialization
00385 {
00386
00387 template<class ContainerAllocator> struct Serializer< ::pr2_self_test_msgs::TestResultRequest_<ContainerAllocator> >
00388 {
00389 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00390 {
00391 stream.next(m.html_result);
00392 stream.next(m.text_summary);
00393 stream.next(m.result);
00394 stream.next(m.plots);
00395 stream.next(m.params);
00396 stream.next(m.values);
00397 }
00398
00399 ROS_DECLARE_ALLINONE_SERIALIZER;
00400 };
00401 }
00402 }
00403
00404
00405 namespace ros
00406 {
00407 namespace serialization
00408 {
00409
00410 template<class ContainerAllocator> struct Serializer< ::pr2_self_test_msgs::TestResultResponse_<ContainerAllocator> >
00411 {
00412 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00413 {
00414 }
00415
00416 ROS_DECLARE_ALLINONE_SERIALIZER;
00417 };
00418 }
00419 }
00420
00421 namespace ros
00422 {
00423 namespace service_traits
00424 {
00425 template<>
00426 struct MD5Sum<pr2_self_test_msgs::TestResult> {
00427 static const char* value()
00428 {
00429 return "3bc5fb8af85db1b7baaa0efa94b53344";
00430 }
00431
00432 static const char* value(const pr2_self_test_msgs::TestResult&) { return value(); }
00433 };
00434
00435 template<>
00436 struct DataType<pr2_self_test_msgs::TestResult> {
00437 static const char* value()
00438 {
00439 return "pr2_self_test_msgs/TestResult";
00440 }
00441
00442 static const char* value(const pr2_self_test_msgs::TestResult&) { return value(); }
00443 };
00444
00445 template<class ContainerAllocator>
00446 struct MD5Sum<pr2_self_test_msgs::TestResultRequest_<ContainerAllocator> > {
00447 static const char* value()
00448 {
00449 return "3bc5fb8af85db1b7baaa0efa94b53344";
00450 }
00451
00452 static const char* value(const pr2_self_test_msgs::TestResultRequest_<ContainerAllocator> &) { return value(); }
00453 };
00454
00455 template<class ContainerAllocator>
00456 struct DataType<pr2_self_test_msgs::TestResultRequest_<ContainerAllocator> > {
00457 static const char* value()
00458 {
00459 return "pr2_self_test_msgs/TestResult";
00460 }
00461
00462 static const char* value(const pr2_self_test_msgs::TestResultRequest_<ContainerAllocator> &) { return value(); }
00463 };
00464
00465 template<class ContainerAllocator>
00466 struct MD5Sum<pr2_self_test_msgs::TestResultResponse_<ContainerAllocator> > {
00467 static const char* value()
00468 {
00469 return "3bc5fb8af85db1b7baaa0efa94b53344";
00470 }
00471
00472 static const char* value(const pr2_self_test_msgs::TestResultResponse_<ContainerAllocator> &) { return value(); }
00473 };
00474
00475 template<class ContainerAllocator>
00476 struct DataType<pr2_self_test_msgs::TestResultResponse_<ContainerAllocator> > {
00477 static const char* value()
00478 {
00479 return "pr2_self_test_msgs/TestResult";
00480 }
00481
00482 static const char* value(const pr2_self_test_msgs::TestResultResponse_<ContainerAllocator> &) { return value(); }
00483 };
00484
00485 }
00486 }
00487
00488 #endif // PR2_SELF_TEST_MSGS_SERVICE_TESTRESULT_H
00489