libvisiontransfer  8.3.0
Public Member Functions | List of all members
visiontransfer::TimestampedQuaternion Class Reference

Encapsulate a 4D (quaternion) sensor report, containing X, Y, Z, W, as well as timestamp and status fields and measurement accuracy. More...

#include <visiontransfer/sensordata.h>

Inheritance diagram for visiontransfer::TimestampedQuaternion:
Inheritance graph
[legend]
Collaboration diagram for visiontransfer::TimestampedQuaternion:
Collaboration graph
[legend]

Public Member Functions

double x () const
 
double y () const
 
double z () const
 
double w () const
 
void getRollPitchYaw (double &roll, double &pitch, double &yaw)
 
double accuracy () const
 
 TimestampedQuaternion (int timestampSec, int timestampUSec, unsigned char status, double x, double y, double z, double w, double accuracy)
 
- Public Member Functions inherited from visiontransfer::SensorRecord
 SensorRecord (int timestampSec, int timestampUSec, unsigned char status)
 
void getTimestamp (int &s, int &us) const
 
unsigned char getStatus () const
 

Additional Inherited Members

- Protected Attributes inherited from visiontransfer::SensorRecord
int timestampSec
 
int timestampUSec
 
unsigned char status
 

Detailed Description

Encapsulate a 4D (quaternion) sensor report, containing X, Y, Z, W, as well as timestamp and status fields and measurement accuracy.

Component r is the real part of the quaternion, also called w (ijkr corresponds to xyzw).

Definition at line 80 of file sensordata.h.

Member Function Documentation

◆ accuracy()

double visiontransfer::TimestampedQuaternion::accuracy ( ) const
inline

Returns the internal device-reported angular accuracy (radians)

Definition at line 105 of file sensordata.h.

◆ getRollPitchYaw()

void visiontransfer::TimestampedQuaternion::getRollPitchYaw ( double &  roll,
double &  pitch,
double &  yaw 
)
inline

Convert the quaternion to device roll, pitch, and yaw (radians)

Definition at line 89 of file sensordata.h.


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