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

#include <sonar.hpp>

Public Member Functions

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

Protected Attributes

boost::circular_buffer< std::vector< sensor_msgs::Range > > 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_
 
std::vector< std::string > topics_
 

Detailed Description

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

Constructor & Destructor Documentation

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

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

Member Function Documentation

void naoqi::recorder::SonarRecorder::bufferize ( const std::vector< sensor_msgs::Range > &  sonar_msgs)

Definition at line 82 of file recorder/sonar.cpp.

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

Definition at line 63 of file recorder/sonar.hpp.

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

Definition at line 73 of file recorder/sonar.hpp.

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

Definition at line 64 of file recorder/sonar.cpp.

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

Definition at line 96 of file recorder/sonar.cpp.

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

Definition at line 68 of file recorder/sonar.hpp.

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

Definition at line 58 of file recorder/sonar.hpp.

void naoqi::recorder::SonarRecorder::write ( const std::vector< sensor_msgs::Range > &  sonar_msgs)

Definition at line 35 of file recorder/sonar.cpp.

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

Definition at line 54 of file recorder/sonar.cpp.

Member Data Documentation

boost::circular_buffer< std::vector<sensor_msgs::Range> > naoqi::recorder::SonarRecorder::buffer_
protected

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

float naoqi::recorder::SonarRecorder::buffer_duration_
protected

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

float naoqi::recorder::SonarRecorder::buffer_frequency_
protected

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

size_t naoqi::recorder::SonarRecorder::buffer_size_
protected

Definition at line 82 of file recorder/sonar.hpp.

float naoqi::recorder::SonarRecorder::conv_frequency_
protected

Definition at line 94 of file recorder/sonar.hpp.

int naoqi::recorder::SonarRecorder::counter_
protected

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

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

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

bool naoqi::recorder::SonarRecorder::is_initialized_
protected

Definition at line 87 of file recorder/sonar.hpp.

bool naoqi::recorder::SonarRecorder::is_subscribed_
protected

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

int naoqi::recorder::SonarRecorder::max_counter_
protected

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

boost::mutex naoqi::recorder::SonarRecorder::mutex_
protected

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

std::string naoqi::recorder::SonarRecorder::topic_
protected

Definition at line 79 of file recorder/sonar.hpp.

std::vector<std::string> naoqi::recorder::SonarRecorder::topics_
protected

Definition at line 91 of file recorder/sonar.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