#include <log.hpp>
Public Member Functions | |
void | bufferize (std::list< rosgraph_msgs::Log > &log_msgs) |
bool | isInitialized () const |
bool | isSubscribed () const |
LogRecorder (const std::string &topic, float buffer_frequency=0) | |
void | reset (boost::shared_ptr< naoqi::recorder::GlobalRecorder > gr, float conv_frequency) |
void | setBufferDuration (float duration) |
void | subscribe (bool state) |
std::string | topic () const |
void | write (std::list< rosgraph_msgs::Log > &log_msgs) |
void | writeDump (const ros::Time &time) |
Protected Attributes | |
boost::circular_buffer < std::list < rosgraph_msgs::Log > > | buffer_ |
float | buffer_duration_ |
float | buffer_frequency_ |
size_t | buffer_size_ |
float | conv_frequency_ |
int | counter_ |
boost::shared_ptr < naoqi::recorder::GlobalRecorder > | gr_ |
bool | is_initialized_ |
bool | is_subscribed_ |
int | max_counter_ |
boost::mutex | mutex_ |
std::string | topic_ |
Definition at line 43 of file recorder/log.hpp.
naoqi::recorder::LogRecorder::LogRecorder | ( | const std::string & | topic, |
float | buffer_frequency = 0 |
||
) |
Definition at line 25 of file recorder/log.cpp.
void naoqi::recorder::LogRecorder::bufferize | ( | std::list< rosgraph_msgs::Log > & | log_msgs | ) |
Definition at line 76 of file recorder/log.cpp.
bool naoqi::recorder::LogRecorder::isInitialized | ( | ) | const [inline] |
Definition at line 64 of file recorder/log.hpp.
bool naoqi::recorder::LogRecorder::isSubscribed | ( | ) | const [inline] |
Definition at line 74 of file recorder/log.hpp.
void naoqi::recorder::LogRecorder::reset | ( | boost::shared_ptr< naoqi::recorder::GlobalRecorder > | gr, |
float | conv_frequency | ||
) |
Definition at line 58 of file recorder/log.cpp.
void naoqi::recorder::LogRecorder::setBufferDuration | ( | float | duration | ) |
Definition at line 90 of file recorder/log.cpp.
void naoqi::recorder::LogRecorder::subscribe | ( | bool | state | ) | [inline] |
Definition at line 69 of file recorder/log.hpp.
std::string naoqi::recorder::LogRecorder::topic | ( | ) | const [inline] |
Definition at line 59 of file recorder/log.hpp.
void naoqi::recorder::LogRecorder::write | ( | std::list< rosgraph_msgs::Log > & | log_msgs | ) |
Definition at line 32 of file recorder/log.cpp.
void naoqi::recorder::LogRecorder::writeDump | ( | const ros::Time & | time | ) |
Definition at line 48 of file recorder/log.cpp.
boost::circular_buffer< std::list<rosgraph_msgs::Log> > naoqi::recorder::LogRecorder::buffer_ [protected] |
Definition at line 82 of file recorder/log.hpp.
float naoqi::recorder::LogRecorder::buffer_duration_ [protected] |
Definition at line 84 of file recorder/log.hpp.
float naoqi::recorder::LogRecorder::buffer_frequency_ [protected] |
Definition at line 93 of file recorder/log.hpp.
size_t naoqi::recorder::LogRecorder::buffer_size_ [protected] |
Definition at line 83 of file recorder/log.hpp.
float naoqi::recorder::LogRecorder::conv_frequency_ [protected] |
Definition at line 94 of file recorder/log.hpp.
int naoqi::recorder::LogRecorder::counter_ [protected] |
Definition at line 95 of file recorder/log.hpp.
boost::shared_ptr<naoqi::recorder::GlobalRecorder> naoqi::recorder::LogRecorder::gr_ [protected] |
Definition at line 91 of file recorder/log.hpp.
bool naoqi::recorder::LogRecorder::is_initialized_ [protected] |
Definition at line 88 of file recorder/log.hpp.
bool naoqi::recorder::LogRecorder::is_subscribed_ [protected] |
Definition at line 89 of file recorder/log.hpp.
int naoqi::recorder::LogRecorder::max_counter_ [protected] |
Definition at line 96 of file recorder/log.hpp.
boost::mutex naoqi::recorder::LogRecorder::mutex_ [protected] |
Definition at line 86 of file recorder/log.hpp.
std::string naoqi::recorder::LogRecorder::topic_ [protected] |
Definition at line 80 of file recorder/log.hpp.