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

#include <basic.hpp>

Public Member Functions

 BasicRecorder (const std::string &topic, float buffer_frequency=0)
 
virtual ~BasicRecorder ()
 
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 Attributes

std::string topic_
 
boost::circular_buffer< T > 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

template<class T >
naoqi::recorder::BasicRecorder< T >::BasicRecorder ( const std::string &  topic,
float  buffer_frequency = 0 
)
inline
template<class T >
virtual naoqi::recorder::BasicRecorder< T >::~BasicRecorder ( )
inlinevirtual

Member Function Documentation

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

Field Documentation

template<class T >
boost::circular_buffer<T> naoqi::recorder::BasicRecorder< T >::buffer_
protected
template<class T >
float naoqi::recorder::BasicRecorder< T >::buffer_duration_
protected
template<class T >
float naoqi::recorder::BasicRecorder< T >::buffer_frequency_
protected
template<class T >
size_t naoqi::recorder::BasicRecorder< T >::buffer_size_
protected
template<class T >
float naoqi::recorder::BasicRecorder< T >::conv_frequency_
protected
template<class T >
int naoqi::recorder::BasicRecorder< T >::counter_
protected
template<class T >
boost::shared_ptr<naoqi::recorder::GlobalRecorder> naoqi::recorder::BasicRecorder< T >::gr_
protected
template<class T >
bool naoqi::recorder::BasicRecorder< T >::is_initialized_
protected
template<class T >
bool naoqi::recorder::BasicRecorder< T >::is_subscribed_
protected
template<class T >
int naoqi::recorder::BasicRecorder< T >::max_counter_
protected
template<class T >
boost::mutex naoqi::recorder::BasicRecorder< T >::mutex_
protected
template<class T >
std::string naoqi::recorder::BasicRecorder< T >::topic_
protected

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