naoqidriver
Public Member Functions | Protected Attributes
naoqi::recorder::DiagnosticsRecorder Class Reference

#include <diagnostics.hpp>

Public Member Functions

 DiagnosticsRecorder (const std::string &topic, float buffer_frequency=0)
 
void write (diagnostic_msgs::DiagnosticArray &msg)
 
void reset (boost::shared_ptr< naoqi::recorder::GlobalRecorder > gr, float conv_frequency)
 
void bufferize (diagnostic_msgs::DiagnosticArray &msg)
 
void writeDump (const ros::Time &time)
 
void setBufferDuration (float duration)
 
std::string topic () const
 
bool isInitialized () const
 
void subscribe (bool state)
 
bool isSubscribed () const
 

Protected Attributes

std::string topic_
 
boost::circular_buffer< diagnostic_msgs::DiagnosticArray > buffer_
 
size_t buffer_size_
 
float buffer_duration_
 
boost::mutex mutex_
 
bool is_initialized_
 
bool is_subscribed_
 
boost::shared_ptr< naoqi::recorder::GlobalRecordergr_
 
float buffer_frequency_
 
float conv_frequency_
 
int counter_
 
int max_counter_
 

Constructor & Destructor Documentation

naoqi::recorder::DiagnosticsRecorder::DiagnosticsRecorder ( const std::string &  topic,
float  buffer_frequency = 0 
)

Member Function Documentation

void naoqi::recorder::DiagnosticsRecorder::bufferize ( diagnostic_msgs::DiagnosticArray &  msg)
bool naoqi::recorder::DiagnosticsRecorder::isInitialized ( ) const
inline
bool naoqi::recorder::DiagnosticsRecorder::isSubscribed ( ) const
inline
void naoqi::recorder::DiagnosticsRecorder::reset ( boost::shared_ptr< naoqi::recorder::GlobalRecorder gr,
float  conv_frequency 
)
void naoqi::recorder::DiagnosticsRecorder::setBufferDuration ( float  duration)
void naoqi::recorder::DiagnosticsRecorder::subscribe ( bool  state)
inline
std::string naoqi::recorder::DiagnosticsRecorder::topic ( ) const
inline
void naoqi::recorder::DiagnosticsRecorder::write ( diagnostic_msgs::DiagnosticArray &  msg)
void naoqi::recorder::DiagnosticsRecorder::writeDump ( const ros::Time &  time)

Field Documentation

boost::circular_buffer<diagnostic_msgs::DiagnosticArray> naoqi::recorder::DiagnosticsRecorder::buffer_
protected
float naoqi::recorder::DiagnosticsRecorder::buffer_duration_
protected
float naoqi::recorder::DiagnosticsRecorder::buffer_frequency_
protected
size_t naoqi::recorder::DiagnosticsRecorder::buffer_size_
protected
float naoqi::recorder::DiagnosticsRecorder::conv_frequency_
protected
int naoqi::recorder::DiagnosticsRecorder::counter_
protected
boost::shared_ptr<naoqi::recorder::GlobalRecorder> naoqi::recorder::DiagnosticsRecorder::gr_
protected
bool naoqi::recorder::DiagnosticsRecorder::is_initialized_
protected
bool naoqi::recorder::DiagnosticsRecorder::is_subscribed_
protected
int naoqi::recorder::DiagnosticsRecorder::max_counter_
protected
boost::mutex naoqi::recorder::DiagnosticsRecorder::mutex_
protected
std::string naoqi::recorder::DiagnosticsRecorder::topic_
protected

The documentation for this class was generated from the following files: