Public Types | Public Member Functions | Public Attributes | Static Public Attributes | List of all members
crl::multisense::imu::Sample Class Reference

#include <MultiSenseTypes.hh>

Public Types

typedef uint16_t Type
 

Public Member Functions

double time () const
 

Public Attributes

uint32_t timeMicroSeconds
 
uint32_t timeSeconds
 
Type type
 
float x
 
float y
 
float z
 

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 1715 of file MultiSenseTypes.hh.

Member Typedef Documentation

Typedef used to determine which data source a sample came from

Definition at line 1719 of file MultiSenseTypes.hh.

Member Function Documentation

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 1762 of file MultiSenseTypes.hh.

Member Data Documentation

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

The time microseconds value corresponding to the specific sample

Definition at line 1730 of file MultiSenseTypes.hh.

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

The time seconds value corresponding to the specific sample

Definition at line 1728 of file MultiSenseTypes.hh.

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

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

Definition at line 1726 of file MultiSenseTypes.hh.

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

Definition at line 1721 of file MultiSenseTypes.hh.

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

Definition at line 1722 of file MultiSenseTypes.hh.

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

Definition at line 1723 of file MultiSenseTypes.hh.

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 1738 of file MultiSenseTypes.hh.

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 1746 of file MultiSenseTypes.hh.

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 1754 of file MultiSenseTypes.hh.


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


multisense_lib
Author(s):
autogenerated on Sat Apr 6 2019 02:16:47