#include <RtabmapThread.h>
Definition at line 51 of file RtabmapThread.h.
Reimplemented from UThread.
Definition at line 56 of file RtabmapThread.h.
rtabmap::RtabmapThread::RtabmapThread | ( | Rtabmap * | rtabmap | ) |
Definition at line 46 of file RtabmapThread.cpp.
rtabmap::RtabmapThread::~RtabmapThread | ( | ) | [virtual] |
Definition at line 62 of file RtabmapThread.cpp.
void rtabmap::RtabmapThread::addData | ( | const OdometryEvent & | odomEvent | ) | [private] |
Definition at line 552 of file RtabmapThread.cpp.
Definition at line 85 of file RtabmapThread.cpp.
void rtabmap::RtabmapThread::close | ( | bool | databaseSaved | ) |
Definition at line 120 of file RtabmapThread.cpp.
void rtabmap::RtabmapThread::createIntermediateNodes | ( | bool | enabled | ) |
Definition at line 115 of file RtabmapThread.cpp.
bool rtabmap::RtabmapThread::getData | ( | OdometryEvent & | data | ) | [private] |
Definition at line 643 of file RtabmapThread.cpp.
void rtabmap::RtabmapThread::handleEvent | ( | UEvent * | event | ) | [protected, virtual] |
Method called by the UEventsManager to handle an event. Important : this method must do a minimum of work because the faster the dispatching loop is done; the faster the events are received. If a handling function takes too much time, the events list can grow faster than it is emptied. The event can be modified but must not be deleted.
Implements UEventsHandler.
Definition at line 326 of file RtabmapThread.cpp.
void rtabmap::RtabmapThread::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 188 of file RtabmapThread.cpp.
void rtabmap::RtabmapThread::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 172 of file RtabmapThread.cpp.
void rtabmap::RtabmapThread::mainLoopKill | ( | ) | [private, virtual] |
Virtual method mainLoopKill(). User can implement this function to add a behavior before the thread is killed. When this function is called, the state of the thread is set to kSKilled. It is useful to wake up a sleeping thread to finish his loop and to avoid a deadlock.
Reimplemented from UThread.
Definition at line 181 of file RtabmapThread.cpp.
void rtabmap::RtabmapThread::process | ( | ) | [private] |
Definition at line 523 of file RtabmapThread.cpp.
void rtabmap::RtabmapThread::publishMap | ( | bool | optimized, |
bool | full, | ||
bool | graphOnly | ||
) | const [private] |
Definition at line 131 of file RtabmapThread.cpp.
void rtabmap::RtabmapThread::pushNewState | ( | State | newState, |
const ParametersMap & | parameters = ParametersMap() |
||
) | [private] |
Definition at line 71 of file RtabmapThread.cpp.
void rtabmap::RtabmapThread::setDataBufferSize | ( | unsigned int | bufferSize | ) |
Definition at line 110 of file RtabmapThread.cpp.
void rtabmap::RtabmapThread::setDetectorRate | ( | float | rate | ) |
Definition at line 104 of file RtabmapThread.cpp.
bool rtabmap::RtabmapThread::_createIntermediateNodes [private] |
Definition at line 111 of file RtabmapThread.h.
USemaphore rtabmap::RtabmapThread::_dataAdded [private] |
Definition at line 108 of file RtabmapThread.h.
std::list<OdometryEvent> rtabmap::RtabmapThread::_dataBuffer [private] |
Definition at line 106 of file RtabmapThread.h.
unsigned int rtabmap::RtabmapThread::_dataBufferMaxSize [private] |
Definition at line 109 of file RtabmapThread.h.
UMutex rtabmap::RtabmapThread::_dataMutex [private] |
Definition at line 107 of file RtabmapThread.h.
UTimer* rtabmap::RtabmapThread::_frameRateTimer [private] |
Definition at line 112 of file RtabmapThread.h.
bool rtabmap::RtabmapThread::_paused [private] |
Definition at line 116 of file RtabmapThread.h.
double rtabmap::RtabmapThread::_previousStamp [private] |
Definition at line 113 of file RtabmapThread.h.
float rtabmap::RtabmapThread::_rate [private] |
Definition at line 110 of file RtabmapThread.h.
double rtabmap::RtabmapThread::_rotVariance [private] |
Definition at line 118 of file RtabmapThread.h.
Rtabmap* rtabmap::RtabmapThread::_rtabmap [private] |
Definition at line 115 of file RtabmapThread.h.
std::stack<State> rtabmap::RtabmapThread::_state [private] |
Definition at line 103 of file RtabmapThread.h.
UMutex rtabmap::RtabmapThread::_stateMutex [private] |
Definition at line 102 of file RtabmapThread.h.
std::stack<ParametersMap> rtabmap::RtabmapThread::_stateParam [private] |
Definition at line 104 of file RtabmapThread.h.
double rtabmap::RtabmapThread::_transVariance [private] |
Definition at line 119 of file RtabmapThread.h.
cv::Mat rtabmap::RtabmapThread::_userData [private] |
Definition at line 121 of file RtabmapThread.h.
UMutex rtabmap::RtabmapThread::_userDataMutex [private] |
Definition at line 122 of file RtabmapThread.h.
Transform rtabmap::RtabmapThread::lastPose_ [private] |
Definition at line 117 of file RtabmapThread.h.