18 #ifndef CAMERA_RECORDER_HPP 19 #define CAMERA_RECORDER_HPP 24 #include <boost/circular_buffer.hpp> 30 #include "../helpers/recorder_helpers.hpp" 35 #include <sensor_msgs/CameraInfo.h> 36 #include <sensor_msgs/Image.h> 49 void write(
const sensor_msgs::ImagePtr& img,
const sensor_msgs::CameraInfo& camera_info );
53 void bufferize(
const sensor_msgs::ImagePtr& img,
const sensor_msgs::CameraInfo& camera_info );
59 inline std::string
topic()
const 83 boost::circular_buffer< std::pair<sensor_msgs::ImagePtr, sensor_msgs::CameraInfo> >
buffer_;
CameraRecorder(const std::string &topic, float buffer_frequency)
void setBufferDuration(float duration)
void writeDump(const ros::Time &time)
void bufferize(const sensor_msgs::ImagePtr &img, const sensor_msgs::CameraInfo &camera_info)
void subscribe(bool state)
bool isSubscribed() const
void write(const sensor_msgs::ImagePtr &img, const sensor_msgs::CameraInfo &camera_info)
boost::shared_ptr< naoqi::recorder::GlobalRecorder > gr_
std::string topic() const
void reset(boost::shared_ptr< naoqi::recorder::GlobalRecorder > gr, float conv_frequency)
boost::circular_buffer< std::pair< sensor_msgs::ImagePtr, sensor_msgs::CameraInfo > > buffer_
bool isInitialized() const