Class OrientData

java.lang.Object
se.hendeby.sensordata.SensorData
se.hendeby.sensordata.OrientData

public class OrientData extends SensorData
Orientation data class.
  • 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.