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

#include <log.hpp>

Public Member Functions

 LogRecorder (const std::string &topic, float buffer_frequency=0)
 
void write (std::list< rosgraph_msgs::Log > &log_msgs)
 
void reset (boost::shared_ptr< naoqi::recorder::GlobalRecorder > gr, float conv_frequency)
 
void bufferize (std::list< rosgraph_msgs::Log > &log_msgs)
 
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< std::list< rosgraph_msgs::Log > > 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::LogRecorder::LogRecorder ( const std::string &  topic,
float  buffer_frequency = 0 
)

Member Function Documentation

void naoqi::recorder::LogRecorder::bufferize ( std::list< rosgraph_msgs::Log > &  log_msgs)
bool naoqi::recorder::LogRecorder::isInitialized ( ) const
inline
bool naoqi::recorder::LogRecorder::isSubscribed ( ) const
inline
void naoqi::recorder::LogRecorder::reset ( boost::shared_ptr< naoqi::recorder::GlobalRecorder gr,
float  conv_frequency 
)
void naoqi::recorder::LogRecorder::setBufferDuration ( float  duration)
void naoqi::recorder::LogRecorder::subscribe ( bool  state)
inline
std::string naoqi::recorder::LogRecorder::topic ( ) const
inline
void naoqi::recorder::LogRecorder::write ( std::list< rosgraph_msgs::Log > &  log_msgs)
void naoqi::recorder::LogRecorder::writeDump ( const ros::Time &  time)

Field Documentation

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

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