|
| enum | State { kStateDetecting
, kStateProcessCommand
} |
| |
| enum | Priority {
kPLow
, kPBelowNormal
, kPNormal
, kPAboveNormal
,
kPRealTime
} |
| |
| typedef THREAD_HANDLE | Handle |
| |
| typedef void(* | Handler) () |
| |
| typedef THREAD_HANDLE | Handle |
| |
| typedef void(* | Handler) () |
| |
|
|
| RtabmapThread (Rtabmap *rtabmap) |
| |
|
void | clearBufferedData () |
| |
|
void | setDetectorRate (float rate) |
| |
|
void | setDataBufferSize (unsigned int bufferSize) |
| |
|
void | createIntermediateNodes (bool enabled) |
| |
| float | getDetectorRate () const |
| |
| unsigned int | getDataBufferSize () const |
| |
| bool | getCreateIntermediateNodes () const |
| |
| void | close (bool databaseSaved, const std::string &databasePath="") |
| |
| | UThread (Priority priority=kPNormal) |
| |
| virtual | ~UThread () |
| |
| void | start () |
| |
| void | kill () |
| |
| void | join (bool killFirst=false) |
| |
| void | setPriority (Priority priority) |
| |
| void | setAffinity (int cpu=0) |
| |
| bool | isCreating () const |
| |
| bool | isRunning () const |
| |
| bool | isIdle () const |
| |
| bool | isKilled () const |
| |
| Handle | getThreadHandle () const |
| |
| unsigned long | getThreadId () 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 (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 |
| |
Public Member Functions inherited from UEventsHandler |
|
void | registerToEventsManager () |
| |
|
void | unregisterFromEventsManager () |
| |
|
| 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 | Join (Handle H) |
| |
| static int | Kill (Handle H) |
| |
| static int | Detach (Handle H) |
| |
| 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 | Join (const Handle &H) |
| |
| static int | Kill (const Handle &H) |
| |
| static int | Detach (const Handle &H) |
| |
| static void | Exit () |
| |
| static void | TestCancel () |
| |
| static Handle | Self () |
| |
| static void | Exit () |
| |
| static void | TestCancel () |
| |
| static int | Self () |
| |
Definition at line 51 of file RtabmapThread.h.
◆ State
| enum rtabmap::RtabmapThread::State |
◆ getDetectorRate()
| float rtabmap::RtabmapThread::getDetectorRate |
( |
| ) |
const |
|
inline |
◆ getDataBufferSize()
| unsigned int rtabmap::RtabmapThread::getDataBufferSize |
( |
| ) |
const |
|
inline |
◆ getCreateIntermediateNodes()
| bool rtabmap::RtabmapThread::getCreateIntermediateNodes |
( |
| ) |
const |
|
inline |
◆ 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). |
◆ handleEvent()
| virtual 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.
The documentation for this class was generated from the following file: