|
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 | |
| 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 41 of file data_queue.h.
| typedef std::map<double, RobotData*> g2o::DataQueue::Buffer |
Definition at line 43 of file data_queue.h.
| void g2o::DataQueue::add | ( | RobotData * | rd | ) |
Definition at line 62 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 33 of file data_queue.cpp.
References _buffer.
Referenced by g2o::addOdometryCalibLinksDifferential(), and main().
|
protected |
Definition at line 56 of file data_queue.h.
Referenced by add(), after(), before(), and findClosestData().