Public Member Functions | Private Member Functions | Private Attributes | List of all members
rtabmap::IMUThread Class Reference

#include <IMUThread.h>

Inheritance diagram for rtabmap::IMUThread:
Inheritance graph
[legend]

Public Member Functions

 IMUThread (int rate, const Transform &localTransform)
 
bool init (const std::string &path)
 
void setRate (int rate)
 
virtual ~IMUThread ()
 
- Public Member Functions inherited from UThread
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 ()
 
- Public Member Functions inherited from UThreadC< void >
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 UEventsSender
 UEventsSender ()
 
virtual ~UEventsSender ()
 

Private Member Functions

virtual void mainLoop ()
 
virtual void mainLoopBegin ()
 

Private Attributes

double captureDelay_
 
UTimer frameRateTimer_
 
std::ifstream imuFile_
 
Transform localTransform_
 
double previousStamp_
 
int rate_
 

Additional Inherited Members

- Public Types inherited from UThread
enum  Priority {
  kPLow, kPBelowNormal, kPNormal, kPAboveNormal,
  kPRealTime
}
 
- Public Types inherited from UThreadC< void >
typedef THREAD_HANDLE Handle
 
typedef THREAD_HANDLE Handle
 
typedef void(* Handler) ()
 
typedef void(* Handler) ()
 
- Static Public Member Functions inherited from UThread
static unsigned long currentThreadId ()
 
- Static Public Member Functions inherited from UThreadC< void >
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)
 
- Protected Member Functions inherited from UThreadC< void >
 UThreadC ()
 
 UThreadC ()
 
- Protected Member Functions inherited from UEventsSender
void post (UEvent *event, bool async=true) const
 
- Static Protected Member Functions inherited from UThreadC< void >
static void Exit ()
 
static void Exit ()
 
static Handle Self ()
 
static int Self ()
 
static void TestCancel ()
 
static void TestCancel ()
 

Detailed Description

Class IMUThread

Definition at line 46 of file IMUThread.h.

Constructor & Destructor Documentation

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.

Member Function Documentation

bool rtabmap::IMUThread::init ( const std::string &  path)

Definition at line 50 of file IMUThread.cpp.

void rtabmap::IMUThread::mainLoop ( )
privatevirtual

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.

See also
mainLoop()
kill()

Implements UThread.

Definition at line 90 of file IMUThread.cpp.

void rtabmap::IMUThread::mainLoopBegin ( )
privatevirtual

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.

Member Data Documentation

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.


The documentation for this class was generated from the following files:


rtabmap
Author(s): Mathieu Labbe
autogenerated on Wed Jun 5 2019 22:43:43