18 #ifndef DIAGNOSTICS_RECORDER_HPP 19 #define DIAGNOSTICS_RECORDER_HPP 24 #include <boost/circular_buffer.hpp> 30 #include "../helpers/recorder_helpers.hpp" 35 #include <diagnostic_msgs/DiagnosticArray.h> 48 void write(diagnostic_msgs::DiagnosticArray&
msg );
52 void bufferize(diagnostic_msgs::DiagnosticArray& msg );
58 inline std::string
topic()
const 81 boost::circular_buffer<diagnostic_msgs::DiagnosticArray>
buffer_;
void subscribe(bool state)
bool isSubscribed() const
void writeDump(const ros::Time &time)
void reset(boost::shared_ptr< naoqi::recorder::GlobalRecorder > gr, float conv_frequency)
void bufferize(diagnostic_msgs::DiagnosticArray &msg)
void setBufferDuration(float duration)
boost::shared_ptr< naoqi::recorder::GlobalRecorder > gr_
void write(diagnostic_msgs::DiagnosticArray &msg)
boost::circular_buffer< diagnostic_msgs::DiagnosticArray > buffer_
std::string topic() const
bool isInitialized() const
DiagnosticsRecorder(const std::string &topic, float buffer_frequency=0)