naoqidriver
Public Member Functions | Protected Attributes
naoqi::recorder::JointStateRecorder Class Reference

#include <joint_state.hpp>

Public Member Functions

 JointStateRecorder (const std::string &topic, float buffer_frequency=0)
 
void write (const sensor_msgs::JointState &js_msg, const std::vector< geometry_msgs::TransformStamped > &tf_transforms)
 
void reset (boost::shared_ptr< naoqi::recorder::GlobalRecorder > gr, float conv_frequency)
 
void bufferize (const sensor_msgs::JointState &js_msg, const std::vector< geometry_msgs::TransformStamped > &tf_transforms)
 
void writeDump (const ros::Time &time)
 
void setBufferDuration (float duration)
 
std::string topic () const
 
bool isInitialized () const
 
void subscribe (bool state)
 
bool isSubscribed () const
 

Protected Attributes

std::string topic_
 
boost::circular_buffer< sensor_msgs::JointState > bufferJoinState_
 
boost::circular_buffer< std::vector< geometry_msgs::TransformStamped > > bufferTF_
 
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

naoqi::recorder::JointStateRecorder::JointStateRecorder ( const std::string &  topic,
float  buffer_frequency = 0 
)

Member Function Documentation

void naoqi::recorder::JointStateRecorder::bufferize ( const sensor_msgs::JointState &  js_msg,
const std::vector< geometry_msgs::TransformStamped > &  tf_transforms 
)
bool naoqi::recorder::JointStateRecorder::isInitialized ( ) const
inline
bool naoqi::recorder::JointStateRecorder::isSubscribed ( ) const
inline
void naoqi::recorder::JointStateRecorder::reset ( boost::shared_ptr< naoqi::recorder::GlobalRecorder gr,
float  conv_frequency 
)
void naoqi::recorder::JointStateRecorder::setBufferDuration ( float  duration)
void naoqi::recorder::JointStateRecorder::subscribe ( bool  state)
inline
std::string naoqi::recorder::JointStateRecorder::topic ( ) const
inline
void naoqi::recorder::JointStateRecorder::write ( const sensor_msgs::JointState &  js_msg,
const std::vector< geometry_msgs::TransformStamped > &  tf_transforms 
)
void naoqi::recorder::JointStateRecorder::writeDump ( const ros::Time &  time)

Field Documentation

float naoqi::recorder::JointStateRecorder::buffer_duration_
protected
float naoqi::recorder::JointStateRecorder::buffer_frequency_
protected
size_t naoqi::recorder::JointStateRecorder::buffer_size_
protected
boost::circular_buffer<sensor_msgs::JointState> naoqi::recorder::JointStateRecorder::bufferJoinState_
protected
boost::circular_buffer< std::vector<geometry_msgs::TransformStamped> > naoqi::recorder::JointStateRecorder::bufferTF_
protected
float naoqi::recorder::JointStateRecorder::conv_frequency_
protected
int naoqi::recorder::JointStateRecorder::counter_
protected
boost::shared_ptr<naoqi::recorder::GlobalRecorder> naoqi::recorder::JointStateRecorder::gr_
protected
bool naoqi::recorder::JointStateRecorder::is_initialized_
protected
bool naoqi::recorder::JointStateRecorder::is_subscribed_
protected
int naoqi::recorder::JointStateRecorder::max_counter_
protected
boost::mutex naoqi::recorder::JointStateRecorder::mutex_
protected
std::string naoqi::recorder::JointStateRecorder::topic_
protected

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