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 <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
00014 namespace pr2_self_test_msgs
00015 {
00016 template <class ContainerAllocator>
00017 struct TestStatus_ : public ros::Message
00018 {
00019 typedef TestStatus_<ContainerAllocator> Type;
00020
00021 TestStatus_()
00022 : test_ok(0)
00023 , message()
00024 {
00025 }
00026
00027 TestStatus_(const ContainerAllocator& _alloc)
00028 : test_ok(0)
00029 , message(_alloc)
00030 {
00031 }
00032
00033 typedef int8_t _test_ok_type;
00034 int8_t test_ok;
00035
00036 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _message_type;
00037 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > message;
00038
00039 enum { TEST_RUNNING = 0 };
00040 enum { TEST_WARNING = 1 };
00041 enum { TEST_ERROR = 2 };
00042 enum { TEST_STALE = 3 };
00043 enum { RUNNING = 0 };
00044 enum { WARNING = 1 };
00045 enum { ERROR = 2 };
00046 enum { STALE = 3 };
00047
00048 private:
00049 static const char* __s_getDataType_() { return "pr2_self_test_msgs/TestStatus"; }
00050 public:
00051 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); }
00052
00053 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); }
00054
00055 private:
00056 static const char* __s_getMD5Sum_() { return "b3baedd2ad2ef574d577434a0165fb15"; }
00057 public:
00058 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); }
00059
00060 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); }
00061
00062 private:
00063 static const char* __s_getMessageDefinition_() { return "# Use during PR2 HW testing to report status of devices\n\
00064 byte TEST_RUNNING = 0\n\
00065 byte TEST_WARNING = 1\n\
00066 byte TEST_ERROR = 2\n\
00067 byte TEST_STALE = 3\n\
00068 \n\
00069 byte RUNNING = 0\n\
00070 byte WARNING = 1\n\
00071 byte ERROR = 2\n\
00072 byte STALE = 3\n\
00073 \n\
00074 \n\
00075 \n\
00076 byte test_ok\n\
00077 string message\n\
00078 "; }
00079 public:
00080 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); }
00081
00082 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); }
00083
00084 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const
00085 {
00086 ros::serialization::OStream stream(write_ptr, 1000000000);
00087 ros::serialization::serialize(stream, test_ok);
00088 ros::serialization::serialize(stream, message);
00089 return stream.getData();
00090 }
00091
00092 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr)
00093 {
00094 ros::serialization::IStream stream(read_ptr, 1000000000);
00095 ros::serialization::deserialize(stream, test_ok);
00096 ros::serialization::deserialize(stream, message);
00097 return stream.getData();
00098 }
00099
00100 ROS_DEPRECATED virtual uint32_t serializationLength() const
00101 {
00102 uint32_t size = 0;
00103 size += ros::serialization::serializationLength(test_ok);
00104 size += ros::serialization::serializationLength(message);
00105 return size;
00106 }
00107
00108 typedef boost::shared_ptr< ::pr2_self_test_msgs::TestStatus_<ContainerAllocator> > Ptr;
00109 typedef boost::shared_ptr< ::pr2_self_test_msgs::TestStatus_<ContainerAllocator> const> ConstPtr;
00110 };
00111 typedef ::pr2_self_test_msgs::TestStatus_<std::allocator<void> > TestStatus;
00112
00113 typedef boost::shared_ptr< ::pr2_self_test_msgs::TestStatus> TestStatusPtr;
00114 typedef boost::shared_ptr< ::pr2_self_test_msgs::TestStatus const> TestStatusConstPtr;
00115
00116
00117 template<typename ContainerAllocator>
00118 std::ostream& operator<<(std::ostream& s, const ::pr2_self_test_msgs::TestStatus_<ContainerAllocator> & v)
00119 {
00120 ros::message_operations::Printer< ::pr2_self_test_msgs::TestStatus_<ContainerAllocator> >::stream(s, "", v);
00121 return s;}
00122
00123 }
00124
00125 namespace ros
00126 {
00127 namespace message_traits
00128 {
00129 template<class ContainerAllocator>
00130 struct MD5Sum< ::pr2_self_test_msgs::TestStatus_<ContainerAllocator> > {
00131 static const char* value()
00132 {
00133 return "b3baedd2ad2ef574d577434a0165fb15";
00134 }
00135
00136 static const char* value(const ::pr2_self_test_msgs::TestStatus_<ContainerAllocator> &) { return value(); }
00137 static const uint64_t static_value1 = 0xb3baedd2ad2ef574ULL;
00138 static const uint64_t static_value2 = 0xd577434a0165fb15ULL;
00139 };
00140
00141 template<class ContainerAllocator>
00142 struct DataType< ::pr2_self_test_msgs::TestStatus_<ContainerAllocator> > {
00143 static const char* value()
00144 {
00145 return "pr2_self_test_msgs/TestStatus";
00146 }
00147
00148 static const char* value(const ::pr2_self_test_msgs::TestStatus_<ContainerAllocator> &) { return value(); }
00149 };
00150
00151 template<class ContainerAllocator>
00152 struct Definition< ::pr2_self_test_msgs::TestStatus_<ContainerAllocator> > {
00153 static const char* value()
00154 {
00155 return "# Use during PR2 HW testing to report status of devices\n\
00156 byte TEST_RUNNING = 0\n\
00157 byte TEST_WARNING = 1\n\
00158 byte TEST_ERROR = 2\n\
00159 byte TEST_STALE = 3\n\
00160 \n\
00161 byte RUNNING = 0\n\
00162 byte WARNING = 1\n\
00163 byte ERROR = 2\n\
00164 byte STALE = 3\n\
00165 \n\
00166 \n\
00167 \n\
00168 byte test_ok\n\
00169 string message\n\
00170 ";
00171 }
00172
00173 static const char* value(const ::pr2_self_test_msgs::TestStatus_<ContainerAllocator> &) { return value(); }
00174 };
00175
00176 }
00177 }
00178
00179 namespace ros
00180 {
00181 namespace serialization
00182 {
00183
00184 template<class ContainerAllocator> struct Serializer< ::pr2_self_test_msgs::TestStatus_<ContainerAllocator> >
00185 {
00186 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00187 {
00188 stream.next(m.test_ok);
00189 stream.next(m.message);
00190 }
00191
00192 ROS_DECLARE_ALLINONE_SERIALIZER;
00193 };
00194 }
00195 }
00196
00197 namespace ros
00198 {
00199 namespace message_operations
00200 {
00201
00202 template<class ContainerAllocator>
00203 struct Printer< ::pr2_self_test_msgs::TestStatus_<ContainerAllocator> >
00204 {
00205 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::pr2_self_test_msgs::TestStatus_<ContainerAllocator> & v)
00206 {
00207 s << indent << "test_ok: ";
00208 Printer<int8_t>::stream(s, indent + " ", v.test_ok);
00209 s << indent << "message: ";
00210 Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.message);
00211 }
00212 };
00213
00214
00215 }
00216 }
00217
00218 #endif // PR2_SELF_TEST_MSGS_MESSAGE_TESTSTATUS_H
00219