$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/TestInfoArray.msg */ 00002 #ifndef PR2_SELF_TEST_MSGS_MESSAGE_TESTINFOARRAY_H 00003 #define PR2_SELF_TEST_MSGS_MESSAGE_TESTINFOARRAY_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 #include "pr2_self_test_msgs/TestInfo.h" 00018 00019 namespace pr2_self_test_msgs 00020 { 00021 template <class ContainerAllocator> 00022 struct TestInfoArray_ { 00023 typedef TestInfoArray_<ContainerAllocator> Type; 00024 00025 TestInfoArray_() 00026 : data() 00027 { 00028 } 00029 00030 TestInfoArray_(const ContainerAllocator& _alloc) 00031 : data(_alloc) 00032 { 00033 } 00034 00035 typedef std::vector< ::pr2_self_test_msgs::TestInfo_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::pr2_self_test_msgs::TestInfo_<ContainerAllocator> >::other > _data_type; 00036 std::vector< ::pr2_self_test_msgs::TestInfo_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::pr2_self_test_msgs::TestInfo_<ContainerAllocator> >::other > data; 00037 00038 00039 ROS_DEPRECATED uint32_t get_data_size() const { return (uint32_t)data.size(); } 00040 ROS_DEPRECATED void set_data_size(uint32_t size) { data.resize((size_t)size); } 00041 ROS_DEPRECATED void get_data_vec(std::vector< ::pr2_self_test_msgs::TestInfo_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::pr2_self_test_msgs::TestInfo_<ContainerAllocator> >::other > & vec) const { vec = this->data; } 00042 ROS_DEPRECATED void set_data_vec(const std::vector< ::pr2_self_test_msgs::TestInfo_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::pr2_self_test_msgs::TestInfo_<ContainerAllocator> >::other > & vec) { this->data = vec; } 00043 private: 00044 static const char* __s_getDataType_() { return "pr2_self_test_msgs/TestInfoArray"; } 00045 public: 00046 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00047 00048 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00049 00050 private: 00051 static const char* __s_getMD5Sum_() { return "1ed4c76da9520649c668cc322d33542a"; } 00052 public: 00053 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00054 00055 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00056 00057 private: 00058 static const char* __s_getMessageDefinition_() { return "TestInfo[] data\n\ 00059 ================================================================================\n\ 00060 MSG: pr2_self_test_msgs/TestInfo\n\ 00061 string serial\n\ 00062 string test_name\n\ 00063 byte test_status # 127, not launched, 0, ok; 1, warn; 2, error; 3, stale\n\ 00064 string bay_name\n\ 00065 string machine\n\ 00066 int32 board\n\ 00067 int32 breaker\n\ 00068 string power_status\n\ 00069 byte estop # 0, off; 1, on\n\ 00070 int32 elapsed\n\ 00071 string status_msg\n\ 00072 "; } 00073 public: 00074 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00075 00076 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00077 00078 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00079 { 00080 ros::serialization::OStream stream(write_ptr, 1000000000); 00081 ros::serialization::serialize(stream, data); 00082 return stream.getData(); 00083 } 00084 00085 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00086 { 00087 ros::serialization::IStream stream(read_ptr, 1000000000); 00088 ros::serialization::deserialize(stream, data); 00089 return stream.getData(); 00090 } 00091 00092 ROS_DEPRECATED virtual uint32_t serializationLength() const 00093 { 00094 uint32_t size = 0; 00095 size += ros::serialization::serializationLength(data); 00096 return size; 00097 } 00098 00099 typedef boost::shared_ptr< ::pr2_self_test_msgs::TestInfoArray_<ContainerAllocator> > Ptr; 00100 typedef boost::shared_ptr< ::pr2_self_test_msgs::TestInfoArray_<ContainerAllocator> const> ConstPtr; 00101 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00102 }; // struct TestInfoArray 00103 typedef ::pr2_self_test_msgs::TestInfoArray_<std::allocator<void> > TestInfoArray; 00104 00105 typedef boost::shared_ptr< ::pr2_self_test_msgs::TestInfoArray> TestInfoArrayPtr; 00106 typedef boost::shared_ptr< ::pr2_self_test_msgs::TestInfoArray const> TestInfoArrayConstPtr; 00107 00108 00109 template<typename ContainerAllocator> 00110 std::ostream& operator<<(std::ostream& s, const ::pr2_self_test_msgs::TestInfoArray_<ContainerAllocator> & v) 00111 { 00112 ros::message_operations::Printer< ::pr2_self_test_msgs::TestInfoArray_<ContainerAllocator> >::stream(s, "", v); 00113 return s;} 00114 00115 } // namespace pr2_self_test_msgs 00116 00117 namespace ros 00118 { 00119 namespace message_traits 00120 { 00121 template<class ContainerAllocator> struct IsMessage< ::pr2_self_test_msgs::TestInfoArray_<ContainerAllocator> > : public TrueType {}; 00122 template<class ContainerAllocator> struct IsMessage< ::pr2_self_test_msgs::TestInfoArray_<ContainerAllocator> const> : public TrueType {}; 00123 template<class ContainerAllocator> 00124 struct MD5Sum< ::pr2_self_test_msgs::TestInfoArray_<ContainerAllocator> > { 00125 static const char* value() 00126 { 00127 return "1ed4c76da9520649c668cc322d33542a"; 00128 } 00129 00130 static const char* value(const ::pr2_self_test_msgs::TestInfoArray_<ContainerAllocator> &) { return value(); } 00131 static const uint64_t static_value1 = 0x1ed4c76da9520649ULL; 00132 static const uint64_t static_value2 = 0xc668cc322d33542aULL; 00133 }; 00134 00135 template<class ContainerAllocator> 00136 struct DataType< ::pr2_self_test_msgs::TestInfoArray_<ContainerAllocator> > { 00137 static const char* value() 00138 { 00139 return "pr2_self_test_msgs/TestInfoArray"; 00140 } 00141 00142 static const char* value(const ::pr2_self_test_msgs::TestInfoArray_<ContainerAllocator> &) { return value(); } 00143 }; 00144 00145 template<class ContainerAllocator> 00146 struct Definition< ::pr2_self_test_msgs::TestInfoArray_<ContainerAllocator> > { 00147 static const char* value() 00148 { 00149 return "TestInfo[] data\n\ 00150 ================================================================================\n\ 00151 MSG: pr2_self_test_msgs/TestInfo\n\ 00152 string serial\n\ 00153 string test_name\n\ 00154 byte test_status # 127, not launched, 0, ok; 1, warn; 2, error; 3, stale\n\ 00155 string bay_name\n\ 00156 string machine\n\ 00157 int32 board\n\ 00158 int32 breaker\n\ 00159 string power_status\n\ 00160 byte estop # 0, off; 1, on\n\ 00161 int32 elapsed\n\ 00162 string status_msg\n\ 00163 "; 00164 } 00165 00166 static const char* value(const ::pr2_self_test_msgs::TestInfoArray_<ContainerAllocator> &) { return value(); } 00167 }; 00168 00169 } // namespace message_traits 00170 } // namespace ros 00171 00172 namespace ros 00173 { 00174 namespace serialization 00175 { 00176 00177 template<class ContainerAllocator> struct Serializer< ::pr2_self_test_msgs::TestInfoArray_<ContainerAllocator> > 00178 { 00179 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00180 { 00181 stream.next(m.data); 00182 } 00183 00184 ROS_DECLARE_ALLINONE_SERIALIZER; 00185 }; // struct TestInfoArray_ 00186 } // namespace serialization 00187 } // namespace ros 00188 00189 namespace ros 00190 { 00191 namespace message_operations 00192 { 00193 00194 template<class ContainerAllocator> 00195 struct Printer< ::pr2_self_test_msgs::TestInfoArray_<ContainerAllocator> > 00196 { 00197 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::pr2_self_test_msgs::TestInfoArray_<ContainerAllocator> & v) 00198 { 00199 s << indent << "data[]" << std::endl; 00200 for (size_t i = 0; i < v.data.size(); ++i) 00201 { 00202 s << indent << " data[" << i << "]: "; 00203 s << std::endl; 00204 s << indent; 00205 Printer< ::pr2_self_test_msgs::TestInfo_<ContainerAllocator> >::stream(s, indent + " ", v.data[i]); 00206 } 00207 } 00208 }; 00209 00210 00211 } // namespace message_operations 00212 } // namespace ros 00213 00214 #endif // PR2_SELF_TEST_MSGS_MESSAGE_TESTINFOARRAY_H 00215