#include <RtabmapThread.h>
|
void | clearBufferedData () |
|
void | close (bool databaseSaved, const std::string &databasePath="") |
|
void | createIntermediateNodes (bool enabled) |
|
bool | getCreateIntermediateNodes () const |
|
unsigned int | getDataBufferSize () const |
|
float | getDetectorRate () const |
|
| RtabmapThread (Rtabmap *rtabmap) |
|
void | setDataBufferSize (unsigned int bufferSize) |
|
void | setDetectorRate (float rate) |
|
virtual | ~RtabmapThread () |
|
Handle | getThreadHandle () const |
|
unsigned long | getThreadId () const |
|
bool | isCreating () const |
|
bool | isIdle () const |
|
bool | isKilled () const |
|
bool | isRunning () const |
|
void | join (bool killFirst=false) |
|
void | kill () |
|
void | setAffinity (int cpu=0) |
|
void | setPriority (Priority priority) |
|
void | start () |
|
| UThread (Priority priority=kPNormal) |
|
virtual | ~UThread () |
|
int | Create (Handle *const &H=0, const bool &CreateDetached=false, const unsigned int &StackSize=0, const bool &CancelEnable=false, const bool &CancelAsync=false) const |
|
int | Create (Handle *const &H=0, const bool &CreateDetached=false, const unsigned int &StackSize=0, const bool &CancelEnable=false, const bool &CancelAsync=false) const |
|
int | Create (unsigned long &ThreadId, Handle *const &H=0, const bool &CreateDetached=false, const unsigned int &StackSize=0, const bool &CancelEnable=false, const bool &CancelAsync=false) const |
|
int | Create (unsigned long &ThreadId, Handle *const &H=0, const bool &CreateDetached=false, const unsigned int &StackSize=0, const bool &CancelEnable=false, const bool &CancelAsync=false) const |
|
virtual | ~UThreadC () |
|
virtual | ~UThreadC () |
|
Public Member Functions inherited from UEventsHandler |
void | registerToEventsManager () |
|
void | unregisterFromEventsManager () |
|
| UEventsSender () |
|
virtual | ~UEventsSender () |
|
|
static unsigned long | currentThreadId () |
|
static int | Create (const Handler &Function, Handle *const &H=0, const bool &CreateDetached=false, const unsigned int &StackSize=0, const bool &CancelEnable=false, const bool &CancelAsync=false) |
|
static int | Create (const Handler &Function, Handle *const &H=0, const bool &CreateDetached=false, const unsigned int &StackSize=0, const bool &CancelEnable=false, const bool &CancelAsync=false) |
|
static int | Detach (const Handle &H) |
|
static int | Detach (Handle H) |
|
static int | Join (const Handle &H) |
|
static int | Join (Handle H) |
|
static int | Kill (const Handle &H) |
|
static int | Kill (Handle H) |
|
static void | Exit () |
|
static void | Exit () |
|
static Handle | Self () |
|
static int | Self () |
|
static void | TestCancel () |
|
static void | TestCancel () |
|
Definition at line 51 of file RtabmapThread.h.
◆ State
Enumerator |
---|
kStateDetecting | |
kStateProcessCommand | |
Definition at line 56 of file RtabmapThread.h.
◆ RtabmapThread()
rtabmap::RtabmapThread::RtabmapThread |
( |
Rtabmap * |
rtabmap | ) |
|
◆ ~RtabmapThread()
rtabmap::RtabmapThread::~RtabmapThread |
( |
| ) |
|
|
virtual |
◆ addData()
void rtabmap::RtabmapThread::addData |
( |
const OdometryEvent & |
odomEvent | ) |
|
|
private |
◆ clearBufferedData()
void rtabmap::RtabmapThread::clearBufferedData |
( |
| ) |
|
◆ close()
void rtabmap::RtabmapThread::close |
( |
bool |
databaseSaved, |
|
|
const std::string & |
databasePath = "" |
|
) |
| |
Close rtabmap. This will delete rtabmap object if set.
- Parameters
-
databaseSaved | true=database saved, false=database discarded. |
databasePath | output database file name, ignored if Db/Sqlite3InMemory=false (opened database is then overwritten). |
Definition at line 118 of file RtabmapThread.cpp.
◆ createIntermediateNodes()
void rtabmap::RtabmapThread::createIntermediateNodes |
( |
bool |
enabled | ) |
|
◆ getCreateIntermediateNodes()
bool rtabmap::RtabmapThread::getCreateIntermediateNodes |
( |
| ) |
const |
|
inline |
◆ getData()
◆ getDataBufferSize()
unsigned int rtabmap::RtabmapThread::getDataBufferSize |
( |
| ) |
const |
|
inline |
◆ getDetectorRate()
float rtabmap::RtabmapThread::getDetectorRate |
( |
| ) |
const |
|
inline |
◆ handleEvent()
bool rtabmap::RtabmapThread::handleEvent |
( |
UEvent * |
event | ) |
|
|
protectedvirtual |
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.
- Returns
- "true" to notify UEventsManager that this handler took ownership of the event (meaning it must delete it). The event will not be dispatched to next handlers.
-
"false" to let event be dispatched to next handlers (default behavior). UEventsManager will take care of deleting the event.
Implements UEventsHandler.
Definition at line 365 of file RtabmapThread.cpp.
◆ mainLoop()
void rtabmap::RtabmapThread::mainLoop |
( |
| ) |
|
|
privatevirtual |
◆ mainLoopBegin()
void rtabmap::RtabmapThread::mainLoopBegin |
( |
| ) |
|
|
privatevirtual |
◆ mainLoopKill()
void rtabmap::RtabmapThread::mainLoopKill |
( |
| ) |
|
|
privatevirtual |
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 173 of file RtabmapThread.cpp.
◆ process()
void rtabmap::RtabmapThread::process |
( |
| ) |
|
|
private |
◆ publishMap()
void rtabmap::RtabmapThread::publishMap |
( |
bool |
optimized, |
|
|
bool |
full, |
|
|
bool |
graphOnly |
|
) |
| const |
|
private |
◆ pushNewState()
◆ setDataBufferSize()
void rtabmap::RtabmapThread::setDataBufferSize |
( |
unsigned int |
bufferSize | ) |
|
◆ setDetectorRate()
void rtabmap::RtabmapThread::setDetectorRate |
( |
float |
rate | ) |
|
◆ _createIntermediateNodes
bool rtabmap::RtabmapThread::_createIntermediateNodes |
|
private |
◆ _dataAdded
◆ _dataBuffer
◆ _dataBufferMaxSize
unsigned int rtabmap::RtabmapThread::_dataBufferMaxSize |
|
private |
◆ _dataMutex
UMutex rtabmap::RtabmapThread::_dataMutex |
|
private |
◆ _frameRateTimer
UTimer* rtabmap::RtabmapThread::_frameRateTimer |
|
private |
◆ _newMapEvents
std::list<double> rtabmap::RtabmapThread::_newMapEvents |
|
private |
◆ _paused
bool rtabmap::RtabmapThread::_paused |
|
private |
◆ _previousStamp
double rtabmap::RtabmapThread::_previousStamp |
|
private |
◆ _rate
float rtabmap::RtabmapThread::_rate |
|
private |
◆ _rtabmap
Rtabmap* rtabmap::RtabmapThread::_rtabmap |
|
private |
◆ _state
std::queue<State> rtabmap::RtabmapThread::_state |
|
private |
◆ _stateMutex
UMutex rtabmap::RtabmapThread::_stateMutex |
|
private |
◆ _stateParam
◆ _userData
cv::Mat rtabmap::RtabmapThread::_userData |
|
private |
◆ _userDataMutex
UMutex rtabmap::RtabmapThread::_userDataMutex |
|
private |
◆ covariance_
cv::Mat rtabmap::RtabmapThread::covariance_ |
|
private |
◆ lastPose_
The documentation for this class was generated from the following files: