#include <OdometryThread.h>
|
| OdometryThread (Odometry *odometry, unsigned int dataBufferMaxSize=1) |
|
virtual | ~OdometryThread () |
|
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 () |
|
|
enum | Priority {
kPLow,
kPBelowNormal,
kPNormal,
kPAboveNormal,
kPRealTime
} |
|
typedef THREAD_HANDLE | Handle |
|
typedef THREAD_HANDLE | Handle |
|
typedef void(* | Handler) () |
|
typedef void(* | Handler) () |
|
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 (Handle H) |
|
static int | Detach (const Handle &H) |
|
static int | Join (const Handle &H) |
|
static int | Join (Handle H) |
|
static int | Kill (Handle H) |
|
static int | Kill (const Handle &H) |
|
static void | Exit () |
|
static void | Exit () |
|
static Handle | Self () |
|
static int | Self () |
|
static void | TestCancel () |
|
static void | TestCancel () |
|
Definition at line 41 of file OdometryThread.h.
rtabmap::OdometryThread::OdometryThread |
( |
Odometry * |
odometry, |
|
|
unsigned int |
dataBufferMaxSize = 1 |
|
) |
| |
rtabmap::OdometryThread::~OdometryThread |
( |
| ) |
|
|
virtual |
void rtabmap::OdometryThread::addData |
( |
const SensorData & |
data | ) |
|
|
private |
bool rtabmap::OdometryThread::getData |
( |
SensorData & |
data | ) |
|
|
private |
bool rtabmap::OdometryThread::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 57 of file OdometryThread.cpp.
void rtabmap::OdometryThread::mainLoop |
( |
| ) |
|
|
privatevirtual |
void rtabmap::OdometryThread::mainLoopBegin |
( |
| ) |
|
|
privatevirtual |
void rtabmap::OdometryThread::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 96 of file OdometryThread.cpp.
std::list<SensorData> rtabmap::OdometryThread::_dataBuffer |
|
private |
unsigned int rtabmap::OdometryThread::_dataBufferMaxSize |
|
private |
UMutex rtabmap::OdometryThread::_dataMutex |
|
private |
std::list<SensorData> rtabmap::OdometryThread::_imuBuffer |
|
private |
double rtabmap::OdometryThread::_imuEstimatedDelay |
|
private |
double rtabmap::OdometryThread::_lastImuStamp |
|
private |
Odometry* rtabmap::OdometryThread::_odometry |
|
private |
bool rtabmap::OdometryThread::_resetOdometry |
|
private |
Transform rtabmap::OdometryThread::_resetPose |
|
private |
The documentation for this class was generated from the following files: