#include <XsensDriver.hpp>
| XsensDriver::XsensDriver |
( |
| ) |
|
| XsensDriver::~XsensDriver |
( |
| ) |
|
| bool XsensDriver::close |
( |
void |
| ) |
|
| std::list< std::string > XsensDriver::getAvailableScenarios |
( |
| ) |
|
| Eigen::Vector3d XsensDriver::getCalibratedAccData |
( |
| ) |
const |
Returns the calibrated accelerometer data Note getReading() should be called before calling this function
| Eigen::Vector3d XsensDriver::getCalibratedGyroData |
( |
| ) |
const |
Returns the calibrated gyroscope data Note getReading() should be called before calling this function
| Eigen::Vector3d XsensDriver::getCalibratedMagData |
( |
| ) |
const |
Returns the calibrated magnetometer data Note getReading() should be called before calling this function
| Eigen::Vector3d XsensDriver::getEulerAngles |
( |
| ) |
const |
Returns the current orientation as Euler Angels (aerospace convention: Roll, Pitch, Yaw). Returned angles given as Tait–Bryan convention with x-Axis as heading direction: Rotation around x-Axis in YZ-Plane: Roll (Angle Phi) Rotation around y-Axis in XZ-Plane: Pitch (Angle Theta) Rotation around z-Axis in XY Plane: Yaw (Angle Psi)
Note getReading() should be called before calling this function
| int XsensDriver::getFileHandle |
( |
| ) |
|
| uint16_t XsensDriver::getFrequency |
( |
void |
| ) |
|
Gets the sampling frequency of IMU. Returns frequency in Hz. Note: Method has to be called BEFORE setReadingMode() to apply new frequency value.
| Eigen::Quaternion< double > XsensDriver::getOrientation |
( |
| ) |
const |
Returns the current orientation as quaternion. Note getReading() should be called before calling this function
| int XsensDriver::getPacketCounter |
( |
| ) |
|
Returns the packt count of the last received packet from the IMU
| Eigen::Vector3d XsensDriver::getRawAccData |
( |
| ) |
const |
Returns the raw accelerometer data Note getReading() should be called before calling this function
| Eigen::Vector3d XsensDriver::getRawGyroData |
( |
| ) |
const |
Returns the raw gyroscope data Note getReading() should be called before calling this function
| Eigen::Vector3d XsensDriver::getRawMagData |
( |
| ) |
const |
Returns the raw magnetometer data Note getReading() should be called before calling this function
This function acquires a new sensor reading from the Xsens IMU.
Return Values 0 Data Aquired -1 Timeout -2 Error fetching data from IMU
This function acquires a new sensor reading from the Xsens IMU.
Return Values 0 Data Aquired -1 Error_Again e.g. no reading there yet -2 Error fetching data from IMU
| std::list<std::string> xsens_imu::XsensDriver::getScenarios |
( |
| ) |
const |
Returns the list of scenario names that are available on this device
| bool XsensDriver::open |
( |
std::string const & |
dev | ) |
|
| bool XsensDriver::setCalibrationMode |
( |
| ) |
|
| void XsensDriver::setFrequency |
( |
const uint16_t |
new_sample_frequency | ) |
|
Sets the sampling frequency for reading measurements from the IMU. Parameter is in Hz Note: Method has to be called BEFORE setReadingMode() to apply new frequency value.
| bool XsensDriver::setScenario |
( |
std::string const & |
name | ) |
|
| bool XsensDriver::setSyncOut |
( |
bool |
enable, |
|
|
bool |
pulse, |
|
|
bool |
positive |
|
) |
| |
Configures the SyncOut pin. Must be done before setReadingMode(). enable: selects enabled or disabled pulse: when true, a pulse is emitted on sensor acquisition, otherwise the level of the line is toggled. positive: direction of the pulse
| bool XsensDriver::setTimeout |
( |
const uint32_t |
timeout | ) |
|
Sets the timout for reading measurements from the IMU. Parameter is in ms returns true on success
| const int xsens_imu::XsensDriver::DEFAULT_SAMPLE_FREQUENCY = 100 |
|
static |
The documentation for this class was generated from the following files: