Go to the documentation of this file.00001
00002 #ifndef PR2_SELF_TEST_MSGS_MESSAGE_TESTSTATUS_H
00003 #define PR2_SELF_TEST_MSGS_MESSAGE_TESTSTATUS_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
00018 namespace pr2_self_test_msgs
00019 {
00020 template <class ContainerAllocator>
00021 struct TestStatus_ {
00022 typedef TestStatus_<ContainerAllocator> Type;
00023
00024 TestStatus_()
00025 : test_ok(0)
00026 , message()
00027 {
00028 }
00029
00030 TestStatus_(const ContainerAllocator& _alloc)
00031 : test_ok(0)
00032 , message(_alloc)
00033 {
00034 }
00035
00036 typedef int8_t _test_ok_type;
00037 int8_t test_ok;
00038
00039 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _message_type;
00040 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > message;
00041
00042 enum { TEST_RUNNING = 0 };
00043 enum { TEST_WARNING = 1 };
00044 enum { TEST_ERROR = 2 };
00045 enum { TEST_STALE = 3 };
00046 enum { RUNNING = 0 };
00047 enum { WARNING = 1 };
00048 enum { ERROR = 2 };
00049 enum { STALE = 3 };
00050
00051 typedef boost::shared_ptr< ::pr2_self_test_msgs::TestStatus_<ContainerAllocator> > Ptr;
00052 typedef boost::shared_ptr< ::pr2_self_test_msgs::TestStatus_<ContainerAllocator> const> ConstPtr;
00053 boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00054 };
00055 typedef ::pr2_self_test_msgs::TestStatus_<std::allocator<void> > TestStatus;
00056
00057 typedef boost::shared_ptr< ::pr2_self_test_msgs::TestStatus> TestStatusPtr;
00058 typedef boost::shared_ptr< ::pr2_self_test_msgs::TestStatus const> TestStatusConstPtr;
00059
00060
00061 template<typename ContainerAllocator>
00062 std::ostream& operator<<(std::ostream& s, const ::pr2_self_test_msgs::TestStatus_<ContainerAllocator> & v)
00063 {
00064 ros::message_operations::Printer< ::pr2_self_test_msgs::TestStatus_<ContainerAllocator> >::stream(s, "", v);
00065 return s;}
00066
00067 }
00068
00069 namespace ros
00070 {
00071 namespace message_traits
00072 {
00073 template<class ContainerAllocator> struct IsMessage< ::pr2_self_test_msgs::TestStatus_<ContainerAllocator> > : public TrueType {};
00074 template<class ContainerAllocator> struct IsMessage< ::pr2_self_test_msgs::TestStatus_<ContainerAllocator> const> : public TrueType {};
00075 template<class ContainerAllocator>
00076 struct MD5Sum< ::pr2_self_test_msgs::TestStatus_<ContainerAllocator> > {
00077 static const char* value()
00078 {
00079 return "b3baedd2ad2ef574d577434a0165fb15";
00080 }
00081
00082 static const char* value(const ::pr2_self_test_msgs::TestStatus_<ContainerAllocator> &) { return value(); }
00083 static const uint64_t static_value1 = 0xb3baedd2ad2ef574ULL;
00084 static const uint64_t static_value2 = 0xd577434a0165fb15ULL;
00085 };
00086
00087 template<class ContainerAllocator>
00088 struct DataType< ::pr2_self_test_msgs::TestStatus_<ContainerAllocator> > {
00089 static const char* value()
00090 {
00091 return "pr2_self_test_msgs/TestStatus";
00092 }
00093
00094 static const char* value(const ::pr2_self_test_msgs::TestStatus_<ContainerAllocator> &) { return value(); }
00095 };
00096
00097 template<class ContainerAllocator>
00098 struct Definition< ::pr2_self_test_msgs::TestStatus_<ContainerAllocator> > {
00099 static const char* value()
00100 {
00101 return "# Use during PR2 HW testing to report status of devices\n\
00102 byte TEST_RUNNING = 0\n\
00103 byte TEST_WARNING = 1\n\
00104 byte TEST_ERROR = 2\n\
00105 byte TEST_STALE = 3\n\
00106 \n\
00107 byte RUNNING = 0\n\
00108 byte WARNING = 1\n\
00109 byte ERROR = 2\n\
00110 byte STALE = 3\n\
00111 \n\
00112 \n\
00113 \n\
00114 byte test_ok\n\
00115 string message\n\
00116 ";
00117 }
00118
00119 static const char* value(const ::pr2_self_test_msgs::TestStatus_<ContainerAllocator> &) { return value(); }
00120 };
00121
00122 }
00123 }
00124
00125 namespace ros
00126 {
00127 namespace serialization
00128 {
00129
00130 template<class ContainerAllocator> struct Serializer< ::pr2_self_test_msgs::TestStatus_<ContainerAllocator> >
00131 {
00132 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00133 {
00134 stream.next(m.test_ok);
00135 stream.next(m.message);
00136 }
00137
00138 ROS_DECLARE_ALLINONE_SERIALIZER;
00139 };
00140 }
00141 }
00142
00143 namespace ros
00144 {
00145 namespace message_operations
00146 {
00147
00148 template<class ContainerAllocator>
00149 struct Printer< ::pr2_self_test_msgs::TestStatus_<ContainerAllocator> >
00150 {
00151 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::pr2_self_test_msgs::TestStatus_<ContainerAllocator> & v)
00152 {
00153 s << indent << "test_ok: ";
00154 Printer<int8_t>::stream(s, indent + " ", v.test_ok);
00155 s << indent << "message: ";
00156 Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.message);
00157 }
00158 };
00159
00160
00161 }
00162 }
00163
00164 #endif // PR2_SELF_TEST_MSGS_MESSAGE_TESTSTATUS_H
00165