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