Public Member Functions | Protected Attributes | List of all members
naoqi::recorder::JointStateRecorder Class Reference

#include <joint_state.hpp>

Public Member Functions

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

Protected Attributes

float buffer_duration_
 
float buffer_frequency_
 
size_t buffer_size_
 
boost::circular_buffer< sensor_msgs::JointState > bufferJoinState_
 
boost::circular_buffer< std::vector< geometry_msgs::TransformStamped > > bufferTF_
 
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

Definition at line 42 of file recorder/joint_state.hpp.

Constructor & Destructor Documentation

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

Definition at line 28 of file recorder/joint_state.cpp.

Member Function Documentation

void naoqi::recorder::JointStateRecorder::bufferize ( const sensor_msgs::JointState &  js_msg,
const std::vector< geometry_msgs::TransformStamped > &  tf_transforms 
)

Definition at line 88 of file recorder/joint_state.cpp.

bool naoqi::recorder::JointStateRecorder::isInitialized ( ) const
inline

Definition at line 65 of file recorder/joint_state.hpp.

bool naoqi::recorder::JointStateRecorder::isSubscribed ( ) const
inline

Definition at line 75 of file recorder/joint_state.hpp.

void naoqi::recorder::JointStateRecorder::reset ( boost::shared_ptr< naoqi::recorder::GlobalRecorder gr,
float  conv_frequency 
)

Definition at line 69 of file recorder/joint_state.cpp.

void naoqi::recorder::JointStateRecorder::setBufferDuration ( float  duration)

Definition at line 104 of file recorder/joint_state.cpp.

void naoqi::recorder::JointStateRecorder::subscribe ( bool  state)
inline

Definition at line 70 of file recorder/joint_state.hpp.

std::string naoqi::recorder::JointStateRecorder::topic ( ) const
inline

Definition at line 60 of file recorder/joint_state.hpp.

void naoqi::recorder::JointStateRecorder::write ( const sensor_msgs::JointState &  js_msg,
const std::vector< geometry_msgs::TransformStamped > &  tf_transforms 
)

Definition at line 37 of file recorder/joint_state.cpp.

void naoqi::recorder::JointStateRecorder::writeDump ( const ros::Time time)

Definition at line 49 of file recorder/joint_state.cpp.

Member Data Documentation

float naoqi::recorder::JointStateRecorder::buffer_duration_
protected

Definition at line 86 of file recorder/joint_state.hpp.

float naoqi::recorder::JointStateRecorder::buffer_frequency_
protected

Definition at line 95 of file recorder/joint_state.hpp.

size_t naoqi::recorder::JointStateRecorder::buffer_size_
protected

Definition at line 85 of file recorder/joint_state.hpp.

boost::circular_buffer<sensor_msgs::JointState> naoqi::recorder::JointStateRecorder::bufferJoinState_
protected

Definition at line 83 of file recorder/joint_state.hpp.

boost::circular_buffer< std::vector<geometry_msgs::TransformStamped> > naoqi::recorder::JointStateRecorder::bufferTF_
protected

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

float naoqi::recorder::JointStateRecorder::conv_frequency_
protected

Definition at line 96 of file recorder/joint_state.hpp.

int naoqi::recorder::JointStateRecorder::counter_
protected

Definition at line 97 of file recorder/joint_state.hpp.

boost::shared_ptr<naoqi::recorder::GlobalRecorder> naoqi::recorder::JointStateRecorder::gr_
protected

Definition at line 93 of file recorder/joint_state.hpp.

bool naoqi::recorder::JointStateRecorder::is_initialized_
protected

Definition at line 90 of file recorder/joint_state.hpp.

bool naoqi::recorder::JointStateRecorder::is_subscribed_
protected

Definition at line 91 of file recorder/joint_state.hpp.

int naoqi::recorder::JointStateRecorder::max_counter_
protected

Definition at line 98 of file recorder/joint_state.hpp.

boost::mutex naoqi::recorder::JointStateRecorder::mutex_
protected

Definition at line 88 of file recorder/joint_state.hpp.

std::string naoqi::recorder::JointStateRecorder::topic_
protected

Definition at line 81 of file recorder/joint_state.hpp.


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


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