#include <basic_event.hpp>
Public Member Functions | |
BasicEventRecorder (const std::string &topic) | |
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 | ~BasicEventRecorder () |
Protected Member Functions | |
bool | isOlderThan (const T &msg, const ros::Time &time) |
bool | isTooOld (const T &msg) |
void | removeOld () |
void | removeOlderThan (const ros::Time &time) |
Protected Attributes | |
std::list< T > | buffer_ |
float | buffer_duration_ |
boost::shared_ptr < naoqi::recorder::GlobalRecorder > | gr_ |
bool | is_initialized_ |
bool | is_subscribed_ |
boost::mutex | mutex_ |
std::string | topic_ |
Definition at line 38 of file basic_event.hpp.
naoqi::recorder::BasicEventRecorder< T >::BasicEventRecorder | ( | const std::string & | topic | ) | [inline] |
Definition at line 42 of file basic_event.hpp.
virtual naoqi::recorder::BasicEventRecorder< T >::~BasicEventRecorder | ( | ) | [inline, virtual] |
Definition at line 49 of file basic_event.hpp.
virtual void naoqi::recorder::BasicEventRecorder< T >::bufferize | ( | const T & | msg | ) | [inline, virtual] |
Definition at line 97 of file basic_event.hpp.
bool naoqi::recorder::BasicEventRecorder< T >::isInitialized | ( | ) | const [inline] |
Definition at line 56 of file basic_event.hpp.
bool naoqi::recorder::BasicEventRecorder< T >::isOlderThan | ( | const T & | msg, |
const ros::Time & | time | ||
) | [inline, protected] |
Definition at line 129 of file basic_event.hpp.
bool naoqi::recorder::BasicEventRecorder< T >::isSubscribed | ( | ) | const [inline] |
Definition at line 66 of file basic_event.hpp.
bool naoqi::recorder::BasicEventRecorder< T >::isTooOld | ( | const T & | msg | ) | [inline, protected] |
Definition at line 119 of file basic_event.hpp.
void naoqi::recorder::BasicEventRecorder< T >::removeOld | ( | ) | [inline, protected] |
Definition at line 139 of file basic_event.hpp.
void naoqi::recorder::BasicEventRecorder< T >::removeOlderThan | ( | const ros::Time & | time | ) | [inline, protected] |
Definition at line 147 of file basic_event.hpp.
virtual void naoqi::recorder::BasicEventRecorder< T >::reset | ( | boost::shared_ptr< GlobalRecorder > | gr, |
float | conv_frequency | ||
) | [inline, virtual] |
Definition at line 106 of file basic_event.hpp.
virtual void naoqi::recorder::BasicEventRecorder< T >::setBufferDuration | ( | float | duration | ) | [inline, virtual] |
Definition at line 112 of file basic_event.hpp.
void naoqi::recorder::BasicEventRecorder< T >::subscribe | ( | bool | state | ) | [inline] |
Definition at line 61 of file basic_event.hpp.
std::string naoqi::recorder::BasicEventRecorder< T >::topic | ( | ) | const [inline] |
Definition at line 51 of file basic_event.hpp.
virtual void naoqi::recorder::BasicEventRecorder< T >::write | ( | const T & | msg | ) | [inline, virtual] |
Definition at line 71 of file basic_event.hpp.
virtual void naoqi::recorder::BasicEventRecorder< T >::writeDump | ( | const ros::Time & | time | ) | [inline, virtual] |
Definition at line 81 of file basic_event.hpp.
std::list<T> naoqi::recorder::BasicEventRecorder< T >::buffer_ [protected] |
Definition at line 158 of file basic_event.hpp.
float naoqi::recorder::BasicEventRecorder< T >::buffer_duration_ [protected] |
Definition at line 159 of file basic_event.hpp.
boost::shared_ptr<naoqi::recorder::GlobalRecorder> naoqi::recorder::BasicEventRecorder< T >::gr_ [protected] |
Definition at line 165 of file basic_event.hpp.
bool naoqi::recorder::BasicEventRecorder< T >::is_initialized_ [protected] |
Definition at line 162 of file basic_event.hpp.
bool naoqi::recorder::BasicEventRecorder< T >::is_subscribed_ [protected] |
Definition at line 163 of file basic_event.hpp.
boost::mutex naoqi::recorder::BasicEventRecorder< T >::mutex_ [protected] |
Definition at line 160 of file basic_event.hpp.
std::string naoqi::recorder::BasicEventRecorder< T >::topic_ [protected] |
Definition at line 156 of file basic_event.hpp.