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