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