00001
00002 #ifndef PR2_SELF_TEST_MSGS_MESSAGE_TESTINFO_H
00003 #define PR2_SELF_TEST_MSGS_MESSAGE_TESTINFO_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 TestInfo_ : public ros::Message
00018 {
00019 typedef TestInfo_<ContainerAllocator> Type;
00020
00021 TestInfo_()
00022 : serial()
00023 , test_name()
00024 , test_status(0)
00025 , bay_name()
00026 , machine()
00027 , board(0)
00028 , breaker(0)
00029 , power_status()
00030 , estop(0)
00031 , elapsed(0)
00032 , status_msg()
00033 {
00034 }
00035
00036 TestInfo_(const ContainerAllocator& _alloc)
00037 : serial(_alloc)
00038 , test_name(_alloc)
00039 , test_status(0)
00040 , bay_name(_alloc)
00041 , machine(_alloc)
00042 , board(0)
00043 , breaker(0)
00044 , power_status(_alloc)
00045 , estop(0)
00046 , elapsed(0)
00047 , status_msg(_alloc)
00048 {
00049 }
00050
00051 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _serial_type;
00052 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > serial;
00053
00054 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _test_name_type;
00055 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > test_name;
00056
00057 typedef int8_t _test_status_type;
00058 int8_t test_status;
00059
00060 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _bay_name_type;
00061 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > bay_name;
00062
00063 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _machine_type;
00064 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > machine;
00065
00066 typedef int32_t _board_type;
00067 int32_t board;
00068
00069 typedef int32_t _breaker_type;
00070 int32_t breaker;
00071
00072 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _power_status_type;
00073 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > power_status;
00074
00075 typedef int8_t _estop_type;
00076 int8_t estop;
00077
00078 typedef int32_t _elapsed_type;
00079 int32_t elapsed;
00080
00081 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _status_msg_type;
00082 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > status_msg;
00083
00084
00085 private:
00086 static const char* __s_getDataType_() { return "pr2_self_test_msgs/TestInfo"; }
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 "594219b720ecaee963aa0b601d38b8f2"; }
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_getMessageDefinition_() { return "string serial\n\
00101 string test_name\n\
00102 byte test_status # 127, not launched, 0, ok; 1, warn; 2, error; 3, stale\n\
00103 string bay_name\n\
00104 string machine\n\
00105 int32 board\n\
00106 int32 breaker\n\
00107 string power_status\n\
00108 byte estop # 0, off; 1, on\n\
00109 int32 elapsed\n\
00110 string status_msg\n\
00111 "; }
00112 public:
00113 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); }
00114
00115 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); }
00116
00117 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const
00118 {
00119 ros::serialization::OStream stream(write_ptr, 1000000000);
00120 ros::serialization::serialize(stream, serial);
00121 ros::serialization::serialize(stream, test_name);
00122 ros::serialization::serialize(stream, test_status);
00123 ros::serialization::serialize(stream, bay_name);
00124 ros::serialization::serialize(stream, machine);
00125 ros::serialization::serialize(stream, board);
00126 ros::serialization::serialize(stream, breaker);
00127 ros::serialization::serialize(stream, power_status);
00128 ros::serialization::serialize(stream, estop);
00129 ros::serialization::serialize(stream, elapsed);
00130 ros::serialization::serialize(stream, status_msg);
00131 return stream.getData();
00132 }
00133
00134 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr)
00135 {
00136 ros::serialization::IStream stream(read_ptr, 1000000000);
00137 ros::serialization::deserialize(stream, serial);
00138 ros::serialization::deserialize(stream, test_name);
00139 ros::serialization::deserialize(stream, test_status);
00140 ros::serialization::deserialize(stream, bay_name);
00141 ros::serialization::deserialize(stream, machine);
00142 ros::serialization::deserialize(stream, board);
00143 ros::serialization::deserialize(stream, breaker);
00144 ros::serialization::deserialize(stream, power_status);
00145 ros::serialization::deserialize(stream, estop);
00146 ros::serialization::deserialize(stream, elapsed);
00147 ros::serialization::deserialize(stream, status_msg);
00148 return stream.getData();
00149 }
00150
00151 ROS_DEPRECATED virtual uint32_t serializationLength() const
00152 {
00153 uint32_t size = 0;
00154 size += ros::serialization::serializationLength(serial);
00155 size += ros::serialization::serializationLength(test_name);
00156 size += ros::serialization::serializationLength(test_status);
00157 size += ros::serialization::serializationLength(bay_name);
00158 size += ros::serialization::serializationLength(machine);
00159 size += ros::serialization::serializationLength(board);
00160 size += ros::serialization::serializationLength(breaker);
00161 size += ros::serialization::serializationLength(power_status);
00162 size += ros::serialization::serializationLength(estop);
00163 size += ros::serialization::serializationLength(elapsed);
00164 size += ros::serialization::serializationLength(status_msg);
00165 return size;
00166 }
00167
00168 typedef boost::shared_ptr< ::pr2_self_test_msgs::TestInfo_<ContainerAllocator> > Ptr;
00169 typedef boost::shared_ptr< ::pr2_self_test_msgs::TestInfo_<ContainerAllocator> const> ConstPtr;
00170 };
00171 typedef ::pr2_self_test_msgs::TestInfo_<std::allocator<void> > TestInfo;
00172
00173 typedef boost::shared_ptr< ::pr2_self_test_msgs::TestInfo> TestInfoPtr;
00174 typedef boost::shared_ptr< ::pr2_self_test_msgs::TestInfo const> TestInfoConstPtr;
00175
00176
00177 template<typename ContainerAllocator>
00178 std::ostream& operator<<(std::ostream& s, const ::pr2_self_test_msgs::TestInfo_<ContainerAllocator> & v)
00179 {
00180 ros::message_operations::Printer< ::pr2_self_test_msgs::TestInfo_<ContainerAllocator> >::stream(s, "", v);
00181 return s;}
00182
00183 }
00184
00185 namespace ros
00186 {
00187 namespace message_traits
00188 {
00189 template<class ContainerAllocator>
00190 struct MD5Sum< ::pr2_self_test_msgs::TestInfo_<ContainerAllocator> > {
00191 static const char* value()
00192 {
00193 return "594219b720ecaee963aa0b601d38b8f2";
00194 }
00195
00196 static const char* value(const ::pr2_self_test_msgs::TestInfo_<ContainerAllocator> &) { return value(); }
00197 static const uint64_t static_value1 = 0x594219b720ecaee9ULL;
00198 static const uint64_t static_value2 = 0x63aa0b601d38b8f2ULL;
00199 };
00200
00201 template<class ContainerAllocator>
00202 struct DataType< ::pr2_self_test_msgs::TestInfo_<ContainerAllocator> > {
00203 static const char* value()
00204 {
00205 return "pr2_self_test_msgs/TestInfo";
00206 }
00207
00208 static const char* value(const ::pr2_self_test_msgs::TestInfo_<ContainerAllocator> &) { return value(); }
00209 };
00210
00211 template<class ContainerAllocator>
00212 struct Definition< ::pr2_self_test_msgs::TestInfo_<ContainerAllocator> > {
00213 static const char* value()
00214 {
00215 return "string serial\n\
00216 string test_name\n\
00217 byte test_status # 127, not launched, 0, ok; 1, warn; 2, error; 3, stale\n\
00218 string bay_name\n\
00219 string machine\n\
00220 int32 board\n\
00221 int32 breaker\n\
00222 string power_status\n\
00223 byte estop # 0, off; 1, on\n\
00224 int32 elapsed\n\
00225 string status_msg\n\
00226 ";
00227 }
00228
00229 static const char* value(const ::pr2_self_test_msgs::TestInfo_<ContainerAllocator> &) { return value(); }
00230 };
00231
00232 }
00233 }
00234
00235 namespace ros
00236 {
00237 namespace serialization
00238 {
00239
00240 template<class ContainerAllocator> struct Serializer< ::pr2_self_test_msgs::TestInfo_<ContainerAllocator> >
00241 {
00242 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00243 {
00244 stream.next(m.serial);
00245 stream.next(m.test_name);
00246 stream.next(m.test_status);
00247 stream.next(m.bay_name);
00248 stream.next(m.machine);
00249 stream.next(m.board);
00250 stream.next(m.breaker);
00251 stream.next(m.power_status);
00252 stream.next(m.estop);
00253 stream.next(m.elapsed);
00254 stream.next(m.status_msg);
00255 }
00256
00257 ROS_DECLARE_ALLINONE_SERIALIZER;
00258 };
00259 }
00260 }
00261
00262 namespace ros
00263 {
00264 namespace message_operations
00265 {
00266
00267 template<class ContainerAllocator>
00268 struct Printer< ::pr2_self_test_msgs::TestInfo_<ContainerAllocator> >
00269 {
00270 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::pr2_self_test_msgs::TestInfo_<ContainerAllocator> & v)
00271 {
00272 s << indent << "serial: ";
00273 Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.serial);
00274 s << indent << "test_name: ";
00275 Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.test_name);
00276 s << indent << "test_status: ";
00277 Printer<int8_t>::stream(s, indent + " ", v.test_status);
00278 s << indent << "bay_name: ";
00279 Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.bay_name);
00280 s << indent << "machine: ";
00281 Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.machine);
00282 s << indent << "board: ";
00283 Printer<int32_t>::stream(s, indent + " ", v.board);
00284 s << indent << "breaker: ";
00285 Printer<int32_t>::stream(s, indent + " ", v.breaker);
00286 s << indent << "power_status: ";
00287 Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.power_status);
00288 s << indent << "estop: ";
00289 Printer<int8_t>::stream(s, indent + " ", v.estop);
00290 s << indent << "elapsed: ";
00291 Printer<int32_t>::stream(s, indent + " ", v.elapsed);
00292 s << indent << "status_msg: ";
00293 Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.status_msg);
00294 }
00295 };
00296
00297
00298 }
00299 }
00300
00301 #endif // PR2_SELF_TEST_MSGS_MESSAGE_TESTINFO_H
00302