$search
00001 /* Auto-generated by genmsg_cpp for file /home/rosbuild/hudson/workspace/doc-electric-common_msgs/doc_stacks/2013-03-01_14-58-52.505545/common_msgs/diagnostic_msgs/msg/DiagnosticArray.msg */ 00002 #ifndef DIAGNOSTIC_MSGS_MESSAGE_DIAGNOSTICARRAY_H 00003 #define DIAGNOSTIC_MSGS_MESSAGE_DIAGNOSTICARRAY_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 "std_msgs/Header.h" 00018 #include "diagnostic_msgs/DiagnosticStatus.h" 00019 00020 namespace diagnostic_msgs 00021 { 00022 template <class ContainerAllocator> 00023 struct DiagnosticArray_ { 00024 typedef DiagnosticArray_<ContainerAllocator> Type; 00025 00026 DiagnosticArray_() 00027 : header() 00028 , status() 00029 { 00030 } 00031 00032 DiagnosticArray_(const ContainerAllocator& _alloc) 00033 : header(_alloc) 00034 , status(_alloc) 00035 { 00036 } 00037 00038 typedef ::std_msgs::Header_<ContainerAllocator> _header_type; 00039 ::std_msgs::Header_<ContainerAllocator> header; 00040 00041 typedef std::vector< ::diagnostic_msgs::DiagnosticStatus_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::diagnostic_msgs::DiagnosticStatus_<ContainerAllocator> >::other > _status_type; 00042 std::vector< ::diagnostic_msgs::DiagnosticStatus_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::diagnostic_msgs::DiagnosticStatus_<ContainerAllocator> >::other > status; 00043 00044 00045 ROS_DEPRECATED uint32_t get_status_size() const { return (uint32_t)status.size(); } 00046 ROS_DEPRECATED void set_status_size(uint32_t size) { status.resize((size_t)size); } 00047 ROS_DEPRECATED void get_status_vec(std::vector< ::diagnostic_msgs::DiagnosticStatus_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::diagnostic_msgs::DiagnosticStatus_<ContainerAllocator> >::other > & vec) const { vec = this->status; } 00048 ROS_DEPRECATED void set_status_vec(const std::vector< ::diagnostic_msgs::DiagnosticStatus_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::diagnostic_msgs::DiagnosticStatus_<ContainerAllocator> >::other > & vec) { this->status = vec; } 00049 private: 00050 static const char* __s_getDataType_() { return "diagnostic_msgs/DiagnosticArray"; } 00051 public: 00052 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00053 00054 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00055 00056 private: 00057 static const char* __s_getMD5Sum_() { return "3cfbeff055e708a24c3d946a5c8139cd"; } 00058 public: 00059 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00060 00061 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00062 00063 private: 00064 static const char* __s_getMessageDefinition_() { return "# This message is used to send diagnostic information about the state of the robot\n\ 00065 Header header #for timestamp\n\ 00066 DiagnosticStatus[] status # an array of components being reported on\n\ 00067 ================================================================================\n\ 00068 MSG: std_msgs/Header\n\ 00069 # Standard metadata for higher-level stamped data types.\n\ 00070 # This is generally used to communicate timestamped data \n\ 00071 # in a particular coordinate frame.\n\ 00072 # \n\ 00073 # sequence ID: consecutively increasing ID \n\ 00074 uint32 seq\n\ 00075 #Two-integer timestamp that is expressed as:\n\ 00076 # * stamp.secs: seconds (stamp_secs) since epoch\n\ 00077 # * stamp.nsecs: nanoseconds since stamp_secs\n\ 00078 # time-handling sugar is provided by the client library\n\ 00079 time stamp\n\ 00080 #Frame this data is associated with\n\ 00081 # 0: no frame\n\ 00082 # 1: global frame\n\ 00083 string frame_id\n\ 00084 \n\ 00085 ================================================================================\n\ 00086 MSG: diagnostic_msgs/DiagnosticStatus\n\ 00087 # This message holds the status of an individual component of the robot.\n\ 00088 # \n\ 00089 \n\ 00090 # Possible levels of operations\n\ 00091 byte OK=0\n\ 00092 byte WARN=1\n\ 00093 byte ERROR=2\n\ 00094 \n\ 00095 byte level # level of operation enumerated above \n\ 00096 string name # a description of the test/component reporting\n\ 00097 string message # a description of the status\n\ 00098 string hardware_id # a hardware unique string\n\ 00099 KeyValue[] values # an array of values associated with the status\n\ 00100 \n\ 00101 \n\ 00102 ================================================================================\n\ 00103 MSG: diagnostic_msgs/KeyValue\n\ 00104 string key # what to label this value when viewing\n\ 00105 string value # a value to track over time\n\ 00106 \n\ 00107 "; } 00108 public: 00109 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00110 00111 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00112 00113 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00114 { 00115 ros::serialization::OStream stream(write_ptr, 1000000000); 00116 ros::serialization::serialize(stream, header); 00117 ros::serialization::serialize(stream, status); 00118 return stream.getData(); 00119 } 00120 00121 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00122 { 00123 ros::serialization::IStream stream(read_ptr, 1000000000); 00124 ros::serialization::deserialize(stream, header); 00125 ros::serialization::deserialize(stream, status); 00126 return stream.getData(); 00127 } 00128 00129 ROS_DEPRECATED virtual uint32_t serializationLength() const 00130 { 00131 uint32_t size = 0; 00132 size += ros::serialization::serializationLength(header); 00133 size += ros::serialization::serializationLength(status); 00134 return size; 00135 } 00136 00137 typedef boost::shared_ptr< ::diagnostic_msgs::DiagnosticArray_<ContainerAllocator> > Ptr; 00138 typedef boost::shared_ptr< ::diagnostic_msgs::DiagnosticArray_<ContainerAllocator> const> ConstPtr; 00139 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00140 }; // struct DiagnosticArray 00141 typedef ::diagnostic_msgs::DiagnosticArray_<std::allocator<void> > DiagnosticArray; 00142 00143 typedef boost::shared_ptr< ::diagnostic_msgs::DiagnosticArray> DiagnosticArrayPtr; 00144 typedef boost::shared_ptr< ::diagnostic_msgs::DiagnosticArray const> DiagnosticArrayConstPtr; 00145 00146 00147 template<typename ContainerAllocator> 00148 std::ostream& operator<<(std::ostream& s, const ::diagnostic_msgs::DiagnosticArray_<ContainerAllocator> & v) 00149 { 00150 ros::message_operations::Printer< ::diagnostic_msgs::DiagnosticArray_<ContainerAllocator> >::stream(s, "", v); 00151 return s;} 00152 00153 } // namespace diagnostic_msgs 00154 00155 namespace ros 00156 { 00157 namespace message_traits 00158 { 00159 template<class ContainerAllocator> struct IsMessage< ::diagnostic_msgs::DiagnosticArray_<ContainerAllocator> > : public TrueType {}; 00160 template<class ContainerAllocator> struct IsMessage< ::diagnostic_msgs::DiagnosticArray_<ContainerAllocator> const> : public TrueType {}; 00161 template<class ContainerAllocator> 00162 struct MD5Sum< ::diagnostic_msgs::DiagnosticArray_<ContainerAllocator> > { 00163 static const char* value() 00164 { 00165 return "3cfbeff055e708a24c3d946a5c8139cd"; 00166 } 00167 00168 static const char* value(const ::diagnostic_msgs::DiagnosticArray_<ContainerAllocator> &) { return value(); } 00169 static const uint64_t static_value1 = 0x3cfbeff055e708a2ULL; 00170 static const uint64_t static_value2 = 0x4c3d946a5c8139cdULL; 00171 }; 00172 00173 template<class ContainerAllocator> 00174 struct DataType< ::diagnostic_msgs::DiagnosticArray_<ContainerAllocator> > { 00175 static const char* value() 00176 { 00177 return "diagnostic_msgs/DiagnosticArray"; 00178 } 00179 00180 static const char* value(const ::diagnostic_msgs::DiagnosticArray_<ContainerAllocator> &) { return value(); } 00181 }; 00182 00183 template<class ContainerAllocator> 00184 struct Definition< ::diagnostic_msgs::DiagnosticArray_<ContainerAllocator> > { 00185 static const char* value() 00186 { 00187 return "# This message is used to send diagnostic information about the state of the robot\n\ 00188 Header header #for timestamp\n\ 00189 DiagnosticStatus[] status # an array of components being reported on\n\ 00190 ================================================================================\n\ 00191 MSG: std_msgs/Header\n\ 00192 # Standard metadata for higher-level stamped data types.\n\ 00193 # This is generally used to communicate timestamped data \n\ 00194 # in a particular coordinate frame.\n\ 00195 # \n\ 00196 # sequence ID: consecutively increasing ID \n\ 00197 uint32 seq\n\ 00198 #Two-integer timestamp that is expressed as:\n\ 00199 # * stamp.secs: seconds (stamp_secs) since epoch\n\ 00200 # * stamp.nsecs: nanoseconds since stamp_secs\n\ 00201 # time-handling sugar is provided by the client library\n\ 00202 time stamp\n\ 00203 #Frame this data is associated with\n\ 00204 # 0: no frame\n\ 00205 # 1: global frame\n\ 00206 string frame_id\n\ 00207 \n\ 00208 ================================================================================\n\ 00209 MSG: diagnostic_msgs/DiagnosticStatus\n\ 00210 # This message holds the status of an individual component of the robot.\n\ 00211 # \n\ 00212 \n\ 00213 # Possible levels of operations\n\ 00214 byte OK=0\n\ 00215 byte WARN=1\n\ 00216 byte ERROR=2\n\ 00217 \n\ 00218 byte level # level of operation enumerated above \n\ 00219 string name # a description of the test/component reporting\n\ 00220 string message # a description of the status\n\ 00221 string hardware_id # a hardware unique string\n\ 00222 KeyValue[] values # an array of values associated with the status\n\ 00223 \n\ 00224 \n\ 00225 ================================================================================\n\ 00226 MSG: diagnostic_msgs/KeyValue\n\ 00227 string key # what to label this value when viewing\n\ 00228 string value # a value to track over time\n\ 00229 \n\ 00230 "; 00231 } 00232 00233 static const char* value(const ::diagnostic_msgs::DiagnosticArray_<ContainerAllocator> &) { return value(); } 00234 }; 00235 00236 template<class ContainerAllocator> struct HasHeader< ::diagnostic_msgs::DiagnosticArray_<ContainerAllocator> > : public TrueType {}; 00237 template<class ContainerAllocator> struct HasHeader< const ::diagnostic_msgs::DiagnosticArray_<ContainerAllocator> > : public TrueType {}; 00238 } // namespace message_traits 00239 } // namespace ros 00240 00241 namespace ros 00242 { 00243 namespace serialization 00244 { 00245 00246 template<class ContainerAllocator> struct Serializer< ::diagnostic_msgs::DiagnosticArray_<ContainerAllocator> > 00247 { 00248 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00249 { 00250 stream.next(m.header); 00251 stream.next(m.status); 00252 } 00253 00254 ROS_DECLARE_ALLINONE_SERIALIZER; 00255 }; // struct DiagnosticArray_ 00256 } // namespace serialization 00257 } // namespace ros 00258 00259 namespace ros 00260 { 00261 namespace message_operations 00262 { 00263 00264 template<class ContainerAllocator> 00265 struct Printer< ::diagnostic_msgs::DiagnosticArray_<ContainerAllocator> > 00266 { 00267 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::diagnostic_msgs::DiagnosticArray_<ContainerAllocator> & v) 00268 { 00269 s << indent << "header: "; 00270 s << std::endl; 00271 Printer< ::std_msgs::Header_<ContainerAllocator> >::stream(s, indent + " ", v.header); 00272 s << indent << "status[]" << std::endl; 00273 for (size_t i = 0; i < v.status.size(); ++i) 00274 { 00275 s << indent << " status[" << i << "]: "; 00276 s << std::endl; 00277 s << indent; 00278 Printer< ::diagnostic_msgs::DiagnosticStatus_<ContainerAllocator> >::stream(s, indent + " ", v.status[i]); 00279 } 00280 } 00281 }; 00282 00283 00284 } // namespace message_operations 00285 } // namespace ros 00286 00287 #endif // DIAGNOSTIC_MSGS_MESSAGE_DIAGNOSTICARRAY_H 00288