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

#include <sonar.hpp>

Public Member Functions

 SonarRecorder (const std::vector< std::string > &topics, float buffer_frequency=0)
 
void write (const std::vector< sensor_msgs::Range > &sonar_msgs)
 
void reset (boost::shared_ptr< naoqi::recorder::GlobalRecorder > gr, float conv_frequency)
 
void bufferize (const std::vector< sensor_msgs::Range > &sonar_msgs)
 
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< std::vector< sensor_msgs::Range > > buffer_
 
size_t buffer_size_
 
float buffer_duration_
 
boost::mutex mutex_
 
bool is_initialized_
 
bool is_subscribed_
 
boost::shared_ptr< naoqi::recorder::GlobalRecordergr_
 
std::vector< std::string > topics_
 
float buffer_frequency_
 
float conv_frequency_
 
int counter_
 
int max_counter_
 

Constructor & Destructor Documentation

naoqi::recorder::SonarRecorder::SonarRecorder ( const std::vector< std::string > &  topics,
float  buffer_frequency = 0 
)

Member Function Documentation

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

Field Documentation

boost::circular_buffer< std::vector<sensor_msgs::Range> > naoqi::recorder::SonarRecorder::buffer_
protected
float naoqi::recorder::SonarRecorder::buffer_duration_
protected
float naoqi::recorder::SonarRecorder::buffer_frequency_
protected
size_t naoqi::recorder::SonarRecorder::buffer_size_
protected
float naoqi::recorder::SonarRecorder::conv_frequency_
protected
int naoqi::recorder::SonarRecorder::counter_
protected
boost::shared_ptr<naoqi::recorder::GlobalRecorder> naoqi::recorder::SonarRecorder::gr_
protected
bool naoqi::recorder::SonarRecorder::is_initialized_
protected
bool naoqi::recorder::SonarRecorder::is_subscribed_
protected
int naoqi::recorder::SonarRecorder::max_counter_
protected
boost::mutex naoqi::recorder::SonarRecorder::mutex_
protected
std::string naoqi::recorder::SonarRecorder::topic_
protected
std::vector<std::string> naoqi::recorder::SonarRecorder::topics_
protected

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