libvisiontransfer
10.8.0
|
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.
#include <visiontransfer/sensordata.h>
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 |
|
inline |
Returns the internal device-reported angular accuracy (radians)
Definition at line 105 of file sensordata.h.
|
inline |
Convert the quaternion to device roll, pitch, and yaw (radians)
Definition at line 89 of file sensordata.h.