#include <DBReader.h>
Public Member Functions | |
DBReader (const std::string &databasePath, float frameRate=0.0f, bool odometryIgnored=false, bool ignoreGoalDelay=false) | |
DBReader (const std::list< std::string > &databasePaths, float frameRate=0.0f, bool odometryIgnored=false, bool ignoreGoalDelay=false) | |
SensorData | getNextData () |
bool | init (int startIndex=0) |
void | setFrameRate (float frameRate) |
virtual | ~DBReader () |
Protected Member Functions | |
virtual void | mainLoop () |
virtual void | mainLoopBegin () |
Private Attributes | |
std::set< int >::iterator | _currentId |
DBDriver * | _dbDriver |
float | _frameRate |
std::set< int > | _ids |
bool | _ignoreGoalDelay |
bool | _odometryIgnored |
std::list< std::string > | _paths |
double | _previousStamp |
UTimer | _timer |
Definition at line 48 of file DBReader.h.
rtabmap::DBReader::DBReader | ( | const std::string & | databasePath, |
float | frameRate = 0.0f , |
||
bool | odometryIgnored = false , |
||
bool | ignoreGoalDelay = false |
||
) |
Definition at line 45 of file DBReader.cpp.
rtabmap::DBReader::DBReader | ( | const std::list< std::string > & | databasePaths, |
float | frameRate = 0.0f , |
||
bool | odometryIgnored = false , |
||
bool | ignoreGoalDelay = false |
||
) |
Definition at line 58 of file DBReader.cpp.
rtabmap::DBReader::~DBReader | ( | ) | [virtual] |
Definition at line 71 of file DBReader.cpp.
Definition at line 240 of file DBReader.cpp.
bool rtabmap::DBReader::init | ( | int | startIndex = 0 | ) |
Definition at line 80 of file DBReader.cpp.
void rtabmap::DBReader::mainLoop | ( | ) | [protected, virtual] |
Pure virtual method mainLoop(). The inner loop of the thread. This method is called repetitively until the thread is killed. Note that if kill() is called in mainLoopBegin(), mainLoop() is not called, terminating immediately the thread.
Implements UThread.
Definition at line 149 of file DBReader.cpp.
void rtabmap::DBReader::mainLoopBegin | ( | ) | [protected, virtual] |
Virtual method mainLoopBegin(). User can implement this function to add a behavior before the main loop is started. It is called once (before entering mainLoop()).
Reimplemented from UThread.
Definition at line 144 of file DBReader.cpp.
void rtabmap::DBReader::setFrameRate | ( | float | frameRate | ) |
Definition at line 139 of file DBReader.cpp.
std::set<int>::iterator rtabmap::DBReader::_currentId [private] |
Definition at line 77 of file DBReader.h.
DBDriver* rtabmap::DBReader::_dbDriver [private] |
Definition at line 74 of file DBReader.h.
float rtabmap::DBReader::_frameRate [private] |
Definition at line 70 of file DBReader.h.
std::set<int> rtabmap::DBReader::_ids [private] |
Definition at line 76 of file DBReader.h.
bool rtabmap::DBReader::_ignoreGoalDelay [private] |
Definition at line 72 of file DBReader.h.
bool rtabmap::DBReader::_odometryIgnored [private] |
Definition at line 71 of file DBReader.h.
std::list<std::string> rtabmap::DBReader::_paths [private] |
Definition at line 69 of file DBReader.h.
double rtabmap::DBReader::_previousStamp [private] |
Definition at line 78 of file DBReader.h.
UTimer rtabmap::DBReader::_timer [private] |
Definition at line 75 of file DBReader.h.