g2o
|
a simple queue to store data and retrieve based on a timestamp More...
#include <data_queue.h>
Public Types | |
typedef std::map< double, RobotData * > | Buffer |
Public Member Functions | |
DataQueue () | |
~DataQueue () | |
void | add (RobotData *rd) |
RobotData * | findClosestData (double timestamp) const |
RobotData * | before (double timestamp) const |
RobotData * | after (double timestamp) const |
const Buffer & | buffer () const |
Protected Attributes | |
Buffer | _buffer |
a simple queue to store data and retrieve based on a timestamp
Definition at line 40 of file data_queue.h.
typedef std::map<double, RobotData*> g2o::DataQueue::Buffer |
Definition at line 43 of file data_queue.h.
g2o::DataQueue::DataQueue | ( | ) |
Definition at line 33 of file data_queue.cpp.
g2o::DataQueue::~DataQueue | ( | ) |
Definition at line 37 of file data_queue.cpp.
void g2o::DataQueue::add | ( | RobotData * | rd | ) |
Definition at line 76 of file data_queue.cpp.
References _buffer, and g2o::RobotData::timestamp().
Referenced by g2o::Gm2dlIO::readRobotLaser().
RobotData * g2o::DataQueue::after | ( | double | timestamp | ) | const |
RobotData * g2o::DataQueue::before | ( | double | timestamp | ) | const |
|
inline |
RobotData * g2o::DataQueue::findClosestData | ( | double | timestamp | ) | const |
Definition at line 41 of file data_queue.cpp.
References _buffer.
Referenced by g2o::addOdometryCalibLinksDifferential(), and main().
|
protected |
Definition at line 59 of file data_queue.h.
Referenced by add(), after(), before(), and findClosestData().