naoqidriver
Public Member Functions | Protected Member Functions | Protected Attributes
naoqi::recorder::BasicEventRecorder< T > Class Template Reference

#include <basic_event.hpp>

Public Member Functions

 BasicEventRecorder (const std::string &topic)
 
virtual ~BasicEventRecorder ()
 
std::string topic () const
 
bool isInitialized () const
 
void subscribe (bool state)
 
bool isSubscribed () const
 
virtual void write (const T &msg)
 
virtual void writeDump (const ros::Time &time)
 
virtual void bufferize (const T &msg)
 
virtual void reset (boost::shared_ptr< GlobalRecorder > gr, float conv_frequency)
 
virtual void setBufferDuration (float duration)
 

Protected Member Functions

bool isTooOld (const T &msg)
 
bool isOlderThan (const T &msg, const ros::Time &time)
 
void removeOld ()
 
void removeOlderThan (const ros::Time &time)
 

Protected Attributes

std::string topic_
 
std::list< T > buffer_
 
float buffer_duration_
 
boost::mutex mutex_
 
bool is_initialized_
 
bool is_subscribed_
 
boost::shared_ptr< naoqi::recorder::GlobalRecordergr_
 

Constructor & Destructor Documentation

template<class T >
naoqi::recorder::BasicEventRecorder< T >::BasicEventRecorder ( const std::string &  topic)
inline
template<class T >
virtual naoqi::recorder::BasicEventRecorder< T >::~BasicEventRecorder ( )
inlinevirtual

Member Function Documentation

template<class T >
virtual void naoqi::recorder::BasicEventRecorder< T >::bufferize ( const T &  msg)
inlinevirtual
template<class T >
bool naoqi::recorder::BasicEventRecorder< T >::isInitialized ( ) const
inline
template<class T >
bool naoqi::recorder::BasicEventRecorder< T >::isOlderThan ( const T &  msg,
const ros::Time &  time 
)
inlineprotected
template<class T >
bool naoqi::recorder::BasicEventRecorder< T >::isSubscribed ( ) const
inline
template<class T >
bool naoqi::recorder::BasicEventRecorder< T >::isTooOld ( const T &  msg)
inlineprotected
template<class T >
void naoqi::recorder::BasicEventRecorder< T >::removeOld ( )
inlineprotected
template<class T >
void naoqi::recorder::BasicEventRecorder< T >::removeOlderThan ( const ros::Time &  time)
inlineprotected
template<class T >
virtual void naoqi::recorder::BasicEventRecorder< T >::reset ( boost::shared_ptr< GlobalRecorder gr,
float  conv_frequency 
)
inlinevirtual
template<class T >
virtual void naoqi::recorder::BasicEventRecorder< T >::setBufferDuration ( float  duration)
inlinevirtual
template<class T >
void naoqi::recorder::BasicEventRecorder< T >::subscribe ( bool  state)
inline
template<class T >
std::string naoqi::recorder::BasicEventRecorder< T >::topic ( ) const
inline
template<class T >
virtual void naoqi::recorder::BasicEventRecorder< T >::write ( const T &  msg)
inlinevirtual
template<class T >
virtual void naoqi::recorder::BasicEventRecorder< T >::writeDump ( const ros::Time &  time)
inlinevirtual

Field Documentation

template<class T >
std::list<T> naoqi::recorder::BasicEventRecorder< T >::buffer_
protected
template<class T >
float naoqi::recorder::BasicEventRecorder< T >::buffer_duration_
protected
template<class T >
boost::shared_ptr<naoqi::recorder::GlobalRecorder> naoqi::recorder::BasicEventRecorder< T >::gr_
protected
template<class T >
bool naoqi::recorder::BasicEventRecorder< T >::is_initialized_
protected
template<class T >
bool naoqi::recorder::BasicEventRecorder< T >::is_subscribed_
protected
template<class T >
boost::mutex naoqi::recorder::BasicEventRecorder< T >::mutex_
protected
template<class T >
std::string naoqi::recorder::BasicEventRecorder< T >::topic_
protected

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