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

#include <camera.hpp>

Public Member Functions

 CameraRecorder (const std::string &topic, float buffer_frequency)
 
void write (const sensor_msgs::ImagePtr &img, const sensor_msgs::CameraInfo &camera_info)
 
void reset (boost::shared_ptr< naoqi::recorder::GlobalRecorder > gr, float conv_frequency)
 
void bufferize (const sensor_msgs::ImagePtr &img, const sensor_msgs::CameraInfo &camera_info)
 
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

bool is_initialized_
 
bool is_subscribed_
 
boost::circular_buffer< std::pair< sensor_msgs::ImagePtr, sensor_msgs::CameraInfo > > buffer_
 
size_t buffer_size_
 
float buffer_duration_
 
boost::mutex mutex_
 
boost::shared_ptr< naoqi::recorder::GlobalRecordergr_
 
std::string topic_info_
 
std::string topic_img_
 
float buffer_frequency_
 
float conv_frequency_
 
int counter_
 
int max_counter_
 

Constructor & Destructor Documentation

naoqi::recorder::CameraRecorder::CameraRecorder ( const std::string &  topic,
float  buffer_frequency 
)

Member Function Documentation

void naoqi::recorder::CameraRecorder::bufferize ( const sensor_msgs::ImagePtr &  img,
const sensor_msgs::CameraInfo &  camera_info 
)
bool naoqi::recorder::CameraRecorder::isInitialized ( ) const
inline
bool naoqi::recorder::CameraRecorder::isSubscribed ( ) const
inline
void naoqi::recorder::CameraRecorder::reset ( boost::shared_ptr< naoqi::recorder::GlobalRecorder gr,
float  conv_frequency 
)
void naoqi::recorder::CameraRecorder::setBufferDuration ( float  duration)
void naoqi::recorder::CameraRecorder::subscribe ( bool  state)
inline
std::string naoqi::recorder::CameraRecorder::topic ( ) const
inline
void naoqi::recorder::CameraRecorder::write ( const sensor_msgs::ImagePtr &  img,
const sensor_msgs::CameraInfo &  camera_info 
)
void naoqi::recorder::CameraRecorder::writeDump ( const ros::Time &  time)

Field Documentation

boost::circular_buffer< std::pair<sensor_msgs::ImagePtr, sensor_msgs::CameraInfo> > naoqi::recorder::CameraRecorder::buffer_
protected
float naoqi::recorder::CameraRecorder::buffer_duration_
protected
float naoqi::recorder::CameraRecorder::buffer_frequency_
protected
size_t naoqi::recorder::CameraRecorder::buffer_size_
protected
float naoqi::recorder::CameraRecorder::conv_frequency_
protected
int naoqi::recorder::CameraRecorder::counter_
protected
boost::shared_ptr<naoqi::recorder::GlobalRecorder> naoqi::recorder::CameraRecorder::gr_
protected
bool naoqi::recorder::CameraRecorder::is_initialized_
protected
bool naoqi::recorder::CameraRecorder::is_subscribed_
protected
int naoqi::recorder::CameraRecorder::max_counter_
protected
boost::mutex naoqi::recorder::CameraRecorder::mutex_
protected
std::string naoqi::recorder::CameraRecorder::topic_img_
protected
std::string naoqi::recorder::CameraRecorder::topic_info_
protected

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