|
This class contains the the devices module and the thread for read the measurements. More...
#include <RobotAPI/drivers/XsensIMU/IMU/IMUDevice.h>
Public Member Functions | |
CIMUDevice () | |
The default constructor. The default constructor sets all member variables to zero, i.e. after construction no valid device nor thread are represented. More... | |
bool | Connect (const std::string &PortName, const SamplingFrequency Frequency) |
uint64_t | GetDeviceId () const |
IMUState | GetIMUState () const |
const timeval & | GetReferenceTimeStamp () const |
bool | IsActive () const |
bool | RegisterEventDispatcher (IIMUEventDispatcher *pIMUEventDispatcher) |
bool | SetFusion (const FusionStrategy Strategy, const ushort SamplesPerFusion) |
bool | SetThreadRunnigMode (const ThreadPolicyType ThreadPolicy, const float NormalizedPriority) |
bool | Start (const bool Blocking=true) |
void | Stop (const bool Blocking=true) |
bool | UnregisterEventDispatcher (IIMUEventDispatcher *pIMUEventDispatcher) |
virtual | ~CIMUDevice () |
The destructor. More... | |
Protected Member Functions | |
bool | GaussianFuseCurrentState () |
void | GaussianFusion () |
void | IncorporateCurrentStateGaussianFusion () |
void | IncorporateCurrentStateMeanFusion () |
bool | IntegrateCurrentState () |
bool | IntegrateWithFusion () |
bool | IntegrateWithOutFusion () |
bool | LoadCurrentState () |
bool | MeanFuseCurrentState () |
void | MeanFusion () |
This class contains the the devices module and the thread for read the measurements.
CIMUDevice encapsulates the device details for the rest of the library and applications. This also includes a thread which is in charge of generate the IMU events
Definition at line 41 of file IMUDevice.h.
enum FusionStrategy |
Enumerator | |
---|---|
eNoFusion | |
eMeanFusion | |
eGaussianFusion |
Definition at line 105 of file IMUDevice.h.
enum SamplingFrequency |
Enum specifying the supported sampling frequencies.
Definition at line 58 of file IMUDevice.h.
enum ThreadPolicyType |
Enum specifying the running thread policy.
Enumerator | |
---|---|
eRealTime | |
eRoundRobinPriorityBased | |
eBatch | |
eIdle |
Definition at line 47 of file IMUDevice.h.
CIMUDevice | ( | ) |
The default constructor. The default constructor sets all member variables to zero, i.e. after construction no valid device nor thread are represented.
Definition at line 15 of file IMUDevice.cpp.
|
virtual |
The destructor.
Definition at line 43 of file IMUDevice.cpp.
bool Connect | ( | const std::string & | PortName, |
const SamplingFrequency | Frequency | ||
) |
Definition at line 55 of file IMUDevice.cpp.
|
protected |
|
protected |
Definition at line 501 of file IMUDevice.cpp.
uint64_t GetDeviceId | ( | ) | const |
|
inline |
|
inline |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
bool IsActive | ( | ) | const |
Definition at line 138 of file IMUDevice.cpp.
|
protected |
|
protected |
|
protected |
Definition at line 454 of file IMUDevice.cpp.
bool RegisterEventDispatcher | ( | IIMUEventDispatcher * | pIMUEventDispatcher | ) |
bool SetFusion | ( | const FusionStrategy | Strategy, |
const ushort | SamplesPerFusion | ||
) |
Definition at line 115 of file IMUDevice.cpp.
bool SetThreadRunnigMode | ( | const ThreadPolicyType | ThreadPolicy, |
const float | NormalizedPriority | ||
) |
Definition at line 707 of file IMUDevice.cpp.
bool Start | ( | const bool | Blocking = true | ) |
Definition at line 76 of file IMUDevice.cpp.
void Stop | ( | const bool | Blocking = true | ) |
Definition at line 98 of file IMUDevice.cpp.
bool UnregisterEventDispatcher | ( | IIMUEventDispatcher * | pIMUEventDispatcher | ) |
Definition at line 167 of file IMUDevice.cpp.