Package se.hendeby.sensordata
Class OrientData
java.lang.Object
se.hendeby.sensordata.SensorData
se.hendeby.sensordata.OrientData
Orientation data class.
-
Field Summary
Fields inherited from class se.hendeby.sensordata.SensorData
DATA_FIELDS_USED, sensorInfo, time -
Constructor Summary
ConstructorsConstructorDescriptionOrientData(long time, float[] values) Constructor.OrientData(long time, float w, float x, float y, float z) Constructor. -
Method Summary
Methods inherited from class se.hendeby.sensordata.SensorData
deserialize, getTime, getValues, serialize
-
Constructor Details
-
OrientData
public OrientData(long time, float[] values) Constructor. The orientation is represented using a normalized quaternion, in this form only the three last components are used, hence forming a variation of a axis angle representation.- Parameters:
time- Timestamp [ms].values- Orientation information qx, qy, and qz.
-
OrientData
public OrientData(long time, float w, float x, float y, float z) Constructor. The orientation is represented using a normalized quaternion.- Parameters:
time- Time stamp [ms].w- qw component.x- qx component.y- qy component.z- qz component.
-
-
Method Details
-
getX
public float getX()qx getter.- Returns:
- qx.
-
getY
public float getY()qy getter.- Returns:
- qy.
-
getZ
public float getZ()qz getter.- Returns:
- qz.
-
getW
public float getW()qw getter.- Returns:
- qw.
-