28 buffer_frequency_(buffer_frequency),
34 while ( !log_msgs.empty() )
36 if (!log_msgs.front().header.stamp.isZero()) {
37 gr_->write(
topic_, log_msgs.front(), log_msgs.front().header.stamp);
50 boost::mutex::scoped_lock lock_write_buffer(
mutex_ );
51 boost::circular_buffer< std::list<rosgraph_msgs::Log> >::iterator it;
78 boost::mutex::scoped_lock lock_bufferize(
mutex_ );
92 boost::mutex::scoped_lock lock_bufferize(
mutex_ );
boost::shared_ptr< naoqi::recorder::GlobalRecorder > gr_
void reset(boost::shared_ptr< naoqi::recorder::GlobalRecorder > gr, float conv_frequency)
void bufferize(std::list< rosgraph_msgs::Log > &log_msgs)
void writeDump(const ros::Time &time)
void setBufferDuration(float duration)
LogRecorder(const std::string &topic, float buffer_frequency=0)
void write(std::list< rosgraph_msgs::Log > &log_msgs)
static const float bufferDefaultDuration
boost::circular_buffer< std::list< rosgraph_msgs::Log > > buffer_