#include <basic.hpp>
Public Member Functions | |
BasicRecorder (const std::string &topic, float buffer_frequency=0) | |
virtual void | bufferize (const T &msg) |
bool | isInitialized () const |
bool | isSubscribed () const |
virtual void | reset (boost::shared_ptr< GlobalRecorder > gr, float conv_frequency) |
virtual void | setBufferDuration (float duration) |
void | subscribe (bool state) |
std::string | topic () const |
virtual void | write (const T &msg) |
virtual void | writeDump (const ros::Time &time) |
virtual | ~BasicRecorder () |
Protected Attributes | |
boost::circular_buffer< T > | 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 39 of file recorder/basic.hpp.
naoqi::recorder::BasicRecorder< T >::BasicRecorder | ( | const std::string & | topic, |
float | buffer_frequency = 0 |
||
) | [inline] |
Definition at line 43 of file recorder/basic.hpp.
virtual naoqi::recorder::BasicRecorder< T >::~BasicRecorder | ( | ) | [inline, virtual] |
Definition at line 52 of file recorder/basic.hpp.
virtual void naoqi::recorder::BasicRecorder< T >::bufferize | ( | const T & | msg | ) | [inline, virtual] |
Definition at line 99 of file recorder/basic.hpp.
bool naoqi::recorder::BasicRecorder< T >::isInitialized | ( | ) | const [inline] |
Definition at line 59 of file recorder/basic.hpp.
bool naoqi::recorder::BasicRecorder< T >::isSubscribed | ( | ) | const [inline] |
Definition at line 69 of file recorder/basic.hpp.
virtual void naoqi::recorder::BasicRecorder< T >::reset | ( | boost::shared_ptr< GlobalRecorder > | gr, |
float | conv_frequency | ||
) | [inline, virtual] |
Definition at line 113 of file recorder/basic.hpp.
virtual void naoqi::recorder::BasicRecorder< T >::setBufferDuration | ( | float | duration | ) | [inline, virtual] |
Definition at line 131 of file recorder/basic.hpp.
void naoqi::recorder::BasicRecorder< T >::subscribe | ( | bool | state | ) | [inline] |
Definition at line 64 of file recorder/basic.hpp.
std::string naoqi::recorder::BasicRecorder< T >::topic | ( | ) | const [inline] |
Definition at line 54 of file recorder/basic.hpp.
virtual void naoqi::recorder::BasicRecorder< T >::write | ( | const T & | msg | ) | [inline, virtual] |
Definition at line 74 of file recorder/basic.hpp.
virtual void naoqi::recorder::BasicRecorder< T >::writeDump | ( | const ros::Time & | time | ) | [inline, virtual] |
Definition at line 84 of file recorder/basic.hpp.
boost::circular_buffer<T> naoqi::recorder::BasicRecorder< T >::buffer_ [protected] |
Definition at line 142 of file recorder/basic.hpp.
float naoqi::recorder::BasicRecorder< T >::buffer_duration_ [protected] |
Definition at line 144 of file recorder/basic.hpp.
float naoqi::recorder::BasicRecorder< T >::buffer_frequency_ [protected] |
Definition at line 152 of file recorder/basic.hpp.
size_t naoqi::recorder::BasicRecorder< T >::buffer_size_ [protected] |
Definition at line 143 of file recorder/basic.hpp.
float naoqi::recorder::BasicRecorder< T >::conv_frequency_ [protected] |
Definition at line 153 of file recorder/basic.hpp.
int naoqi::recorder::BasicRecorder< T >::counter_ [protected] |
Definition at line 154 of file recorder/basic.hpp.
boost::shared_ptr<naoqi::recorder::GlobalRecorder> naoqi::recorder::BasicRecorder< T >::gr_ [protected] |
Definition at line 150 of file recorder/basic.hpp.
bool naoqi::recorder::BasicRecorder< T >::is_initialized_ [protected] |
Definition at line 147 of file recorder/basic.hpp.
bool naoqi::recorder::BasicRecorder< T >::is_subscribed_ [protected] |
Definition at line 148 of file recorder/basic.hpp.
int naoqi::recorder::BasicRecorder< T >::max_counter_ [protected] |
Definition at line 155 of file recorder/basic.hpp.
boost::mutex naoqi::recorder::BasicRecorder< T >::mutex_ [protected] |
Definition at line 145 of file recorder/basic.hpp.
std::string naoqi::recorder::BasicRecorder< T >::topic_ [protected] |
Definition at line 140 of file recorder/basic.hpp.