LibMultiSense
LibMultiSense Documentation
crl::multisense::imu::Sample Class Reference

Class containing a single IMU sample. More...

#include <MultiSenseTypes.hh>

Public Types

typedef uint16_t Type
 Typedef used to determine which data source a sample came from. More...
 

Public Member Functions

double time () const
 A convenience function used for getting the time of the specific sample. More...
 

Public Attributes

Type type
 The type of data contained in the instance of imu::Sample. More...
 
uint32_t timeSeconds
 The time seconds value corresponding to the specific sample. More...
 
uint32_t timeMicroSeconds
 The time microseconds value corresponding to the specific sample. More...
 
float x
 x data for each sample More...
 
float y
 y data for each sample More...
 
float z
 z data for each sample More...
 

Static Public Attributes

static CRL_CONSTEXPR Type Type_Accelerometer = 1
 
static CRL_CONSTEXPR Type Type_Gyroscope = 2
 
static CRL_CONSTEXPR Type Type_Magnetometer = 3
 

Detailed Description

Class containing a single IMU sample.

A sample can contain data either accelerometer data, gyroscope data, or magnetometer data.

Definition at line 2543 of file MultiSenseTypes.hh.

Member Typedef Documentation

◆ Type

Typedef used to determine which data source a sample came from.

Definition at line 2547 of file MultiSenseTypes.hh.

Member Function Documentation

◆ time()

double crl::multisense::imu::Sample::time ( ) const
inline

A convenience function used for getting the time of the specific sample.

return The time corresponding to the sample as a double

Definition at line 2590 of file MultiSenseTypes.hh.

Member Data Documentation

◆ timeMicroSeconds

uint32_t crl::multisense::imu::Sample::timeMicroSeconds

The time microseconds value corresponding to the specific sample.

Definition at line 2558 of file MultiSenseTypes.hh.

◆ timeSeconds

uint32_t crl::multisense::imu::Sample::timeSeconds

The time seconds value corresponding to the specific sample.

Definition at line 2556 of file MultiSenseTypes.hh.

◆ type

Type crl::multisense::imu::Sample::type

The type of data contained in the instance of imu::Sample.

Definition at line 2554 of file MultiSenseTypes.hh.

◆ Type_Accelerometer

CRL_CONSTEXPR Type crl::multisense::imu::Sample::Type_Accelerometer = 1
static

Definition at line 2549 of file MultiSenseTypes.hh.

◆ Type_Gyroscope

CRL_CONSTEXPR Type crl::multisense::imu::Sample::Type_Gyroscope = 2
static

Definition at line 2550 of file MultiSenseTypes.hh.

◆ Type_Magnetometer

CRL_CONSTEXPR Type crl::multisense::imu::Sample::Type_Magnetometer = 3
static

Definition at line 2551 of file MultiSenseTypes.hh.

◆ x

float crl::multisense::imu::Sample::x

x data for each sample

The units vary by source and can be queried with crl::multisense::Channel::getImuInfo

Definition at line 2566 of file MultiSenseTypes.hh.

◆ y

float crl::multisense::imu::Sample::y

y data for each sample

The units vary by source and can be queried with crl::multisense::Channel::getImuInfo

Definition at line 2574 of file MultiSenseTypes.hh.

◆ z

float crl::multisense::imu::Sample::z

z data for each sample

The units vary by source and can be queried with crl::multisense::Channel::getImuInfo

Definition at line 2582 of file MultiSenseTypes.hh.


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