Public Member Functions | Protected Attributes | List of all members
naoqi::recorder::BasicRecorder< T > Class Template Reference

#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::GlobalRecordergr_
 
bool is_initialized_
 
bool is_subscribed_
 
int max_counter_
 
boost::mutex mutex_
 
std::string topic_
 

Detailed Description

template<class T>
class naoqi::recorder::BasicRecorder< T >

Definition at line 39 of file recorder/basic.hpp.

Constructor & Destructor Documentation

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

Definition at line 43 of file recorder/basic.hpp.

template<class T >
virtual naoqi::recorder::BasicRecorder< T >::~BasicRecorder ( )
inlinevirtual

Definition at line 52 of file recorder/basic.hpp.

Member Function Documentation

template<class T >
virtual void naoqi::recorder::BasicRecorder< T >::bufferize ( const T &  msg)
inlinevirtual

Definition at line 99 of file recorder/basic.hpp.

template<class T >
bool naoqi::recorder::BasicRecorder< T >::isInitialized ( ) const
inline

Definition at line 59 of file recorder/basic.hpp.

template<class T >
bool naoqi::recorder::BasicRecorder< T >::isSubscribed ( ) const
inline

Definition at line 69 of file recorder/basic.hpp.

template<class T >
virtual void naoqi::recorder::BasicRecorder< T >::reset ( boost::shared_ptr< GlobalRecorder gr,
float  conv_frequency 
)
inlinevirtual

Definition at line 113 of file recorder/basic.hpp.

template<class T >
virtual void naoqi::recorder::BasicRecorder< T >::setBufferDuration ( float  duration)
inlinevirtual

Definition at line 131 of file recorder/basic.hpp.

template<class T >
void naoqi::recorder::BasicRecorder< T >::subscribe ( bool  state)
inline

Definition at line 64 of file recorder/basic.hpp.

template<class T >
std::string naoqi::recorder::BasicRecorder< T >::topic ( ) const
inline

Definition at line 54 of file recorder/basic.hpp.

template<class T >
virtual void naoqi::recorder::BasicRecorder< T >::write ( const T &  msg)
inlinevirtual

Definition at line 74 of file recorder/basic.hpp.

template<class T >
virtual void naoqi::recorder::BasicRecorder< T >::writeDump ( const ros::Time time)
inlinevirtual

Definition at line 84 of file recorder/basic.hpp.

Member Data Documentation

template<class T >
boost::circular_buffer<T> naoqi::recorder::BasicRecorder< T >::buffer_
protected

Definition at line 142 of file recorder/basic.hpp.

template<class T >
float naoqi::recorder::BasicRecorder< T >::buffer_duration_
protected

Definition at line 144 of file recorder/basic.hpp.

template<class T >
float naoqi::recorder::BasicRecorder< T >::buffer_frequency_
protected

Definition at line 152 of file recorder/basic.hpp.

template<class T >
size_t naoqi::recorder::BasicRecorder< T >::buffer_size_
protected

Definition at line 143 of file recorder/basic.hpp.

template<class T >
float naoqi::recorder::BasicRecorder< T >::conv_frequency_
protected

Definition at line 153 of file recorder/basic.hpp.

template<class T >
int naoqi::recorder::BasicRecorder< T >::counter_
protected

Definition at line 154 of file recorder/basic.hpp.

Definition at line 150 of file recorder/basic.hpp.

template<class T >
bool naoqi::recorder::BasicRecorder< T >::is_initialized_
protected

Definition at line 147 of file recorder/basic.hpp.

template<class T >
bool naoqi::recorder::BasicRecorder< T >::is_subscribed_
protected

Definition at line 148 of file recorder/basic.hpp.

template<class T >
int naoqi::recorder::BasicRecorder< T >::max_counter_
protected

Definition at line 155 of file recorder/basic.hpp.

template<class T >
boost::mutex naoqi::recorder::BasicRecorder< T >::mutex_
protected

Definition at line 145 of file recorder/basic.hpp.

template<class T >
std::string naoqi::recorder::BasicRecorder< T >::topic_
protected

Definition at line 140 of file recorder/basic.hpp.


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


naoqi_driver
Author(s): Karsten Knese
autogenerated on Sat Feb 15 2020 03:24:26