g2o
Loading...
Searching...
No Matches
g2o::DataQueue Class Reference

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

Detailed Description

a simple queue to store data and retrieve based on a timestamp

Definition at line 41 of file data_queue.h.

Member Typedef Documentation

◆ Buffer

typedef std::map<double, RobotData*> g2o::DataQueue::Buffer

Definition at line 43 of file data_queue.h.

Member Function Documentation

◆ add()

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().

◆ after()

RobotData * g2o::DataQueue::after ( double timestamp) const

Definition at line 54 of file data_queue.cpp.

References _buffer.

◆ before()

RobotData * g2o::DataQueue::before ( double timestamp) const

Definition at line 46 of file data_queue.cpp.

References _buffer.

◆ buffer()

const Buffer & g2o::DataQueue::buffer ( ) const
inline

Definition at line 53 of file data_queue.h.

References _buffer.

Referenced by main().

◆ findClosestData()

RobotData * g2o::DataQueue::findClosestData ( double timestamp) const

Definition at line 33 of file data_queue.cpp.

References _buffer.

Referenced by g2o::addOdometryCalibLinksDifferential(), and main().

Member Data Documentation

◆ _buffer

Buffer g2o::DataQueue::_buffer
protected

Definition at line 56 of file data_queue.h.

Referenced by add(), after(), before(), buffer(), and findClosestData().


The documentation for this class was generated from the following files: