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

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

Detailed Description

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

Definition at line 38 of file basic_event.hpp.

Constructor & Destructor Documentation

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

Definition at line 42 of file basic_event.hpp.

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

Definition at line 49 of file basic_event.hpp.

Member Function Documentation

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

Definition at line 97 of file basic_event.hpp.

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

Definition at line 56 of file basic_event.hpp.

template<class T >
bool naoqi::recorder::BasicEventRecorder< T >::isOlderThan ( const T &  msg,
const ros::Time time 
)
inlineprotected

Definition at line 129 of file basic_event.hpp.

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

Definition at line 66 of file basic_event.hpp.

template<class T >
bool naoqi::recorder::BasicEventRecorder< T >::isTooOld ( const T &  msg)
inlineprotected

Definition at line 119 of file basic_event.hpp.

template<class T >
void naoqi::recorder::BasicEventRecorder< T >::removeOld ( )
inlineprotected

Definition at line 139 of file basic_event.hpp.

template<class T >
void naoqi::recorder::BasicEventRecorder< T >::removeOlderThan ( const ros::Time time)
inlineprotected

Definition at line 147 of file basic_event.hpp.

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

Definition at line 106 of file basic_event.hpp.

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

Definition at line 112 of file basic_event.hpp.

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

Definition at line 61 of file basic_event.hpp.

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

Definition at line 51 of file basic_event.hpp.

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

Definition at line 71 of file basic_event.hpp.

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

Definition at line 81 of file basic_event.hpp.

Member Data Documentation

template<class T >
std::list<T> naoqi::recorder::BasicEventRecorder< T >::buffer_
protected

Definition at line 158 of file basic_event.hpp.

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

Definition at line 159 of file basic_event.hpp.

Definition at line 165 of file basic_event.hpp.

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

Definition at line 162 of file basic_event.hpp.

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

Definition at line 163 of file basic_event.hpp.

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

Definition at line 160 of file basic_event.hpp.

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

Definition at line 156 of file basic_event.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