18 #ifndef SONAR_RECORDER_HPP 19 #define SONAR_RECORDER_HPP 24 #include <boost/circular_buffer.hpp> 30 #include "../helpers/recorder_helpers.hpp" 35 #include <sensor_msgs/Range.h> 46 SonarRecorder(
const std::vector<std::string>& topics,
float buffer_frequency = 0 );
48 void write(
const std::vector<sensor_msgs::Range>& sonar_msgs );
52 void bufferize(
const std::vector<sensor_msgs::Range>& sonar_msgs );
58 inline std::string
topic()
const 81 boost::circular_buffer< std::vector<sensor_msgs::Range> >
buffer_;
bool isInitialized() const
void bufferize(const std::vector< sensor_msgs::Range > &sonar_msgs)
void subscribe(bool state)
bool isSubscribed() const
void reset(boost::shared_ptr< naoqi::recorder::GlobalRecorder > gr, float conv_frequency)
boost::circular_buffer< std::vector< sensor_msgs::Range > > buffer_
void setBufferDuration(float duration)
std::vector< std::string > topics_
boost::shared_ptr< naoqi::recorder::GlobalRecorder > gr_
SonarRecorder(const std::vector< std::string > &topics, float buffer_frequency=0)
void writeDump(const ros::Time &time)
void write(const std::vector< sensor_msgs::Range > &sonar_msgs)
std::string topic() const