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