#include <IMUThread.h>
Public Member Functions | |
IMUThread (int rate, const Transform &localTransform) | |
bool | init (const std::string &path) |
void | setRate (int rate) |
virtual | ~IMUThread () |
Private Member Functions | |
virtual void | mainLoop () |
virtual void | mainLoopBegin () |
Private Attributes | |
double | captureDelay_ |
UTimer | frameRateTimer_ |
std::ifstream | imuFile_ |
Transform | localTransform_ |
double | previousStamp_ |
int | rate_ |
Class IMUThread
Definition at line 46 of file IMUThread.h.
rtabmap::IMUThread::IMUThread | ( | int | rate, |
const Transform & | localTransform | ||
) |
Definition at line 37 of file IMUThread.cpp.
rtabmap::IMUThread::~IMUThread | ( | ) | [virtual] |
Definition at line 45 of file IMUThread.cpp.
bool rtabmap::IMUThread::init | ( | const std::string & | path | ) |
Definition at line 50 of file IMUThread.cpp.
void rtabmap::IMUThread::mainLoop | ( | ) | [private, 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 90 of file IMUThread.cpp.
void rtabmap::IMUThread::mainLoopBegin | ( | ) | [private, 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 84 of file IMUThread.cpp.
void rtabmap::IMUThread::setRate | ( | int | rate | ) |
Definition at line 79 of file IMUThread.cpp.
double rtabmap::IMUThread::captureDelay_ [private] |
Definition at line 66 of file IMUThread.h.
UTimer rtabmap::IMUThread::frameRateTimer_ [private] |
Definition at line 65 of file IMUThread.h.
std::ifstream rtabmap::IMUThread::imuFile_ [private] |
Definition at line 64 of file IMUThread.h.
Transform rtabmap::IMUThread::localTransform_ [private] |
Definition at line 63 of file IMUThread.h.
double rtabmap::IMUThread::previousStamp_ [private] |
Definition at line 67 of file IMUThread.h.
int rtabmap::IMUThread::rate_ [private] |
Definition at line 62 of file IMUThread.h.