Class PosInfo

java.lang.Object
me.clarius.sdk.PosInfo

public class PosInfo extends Object
Positional data information structure.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    double
    Accelerometer x; acceleration is normalized to gravity [~9.81m/s^2] (m/s^2)/(m/s^2).
    double
    Accelerometer y; acceleration is normalized to gravity [~9.81m/s^2] (m/s^2)/(m/s^2).
    double
    Accelerometer z; acceleration is normalized to gravity [~9.81m/s^2] (m/s^2)/(m/s^2).
    double
    Gyroscope x; angular velocity is given in radians per second (RPS).
    double
    Gyroscope y; angular velocity is given in radians per second (RPS).
    double
    Gyroscope z; angular velocity is given in radians per second (RPS).
    double
    Magnetometer x; magnetic flux density is normalized to the earth's field [~50 mT] (T/T).
    double
    Magnetometer y; magnetic flux density is normalized to the earth's field [~50 mT] (T/T).
    double
    Magnetometer z; magnetic flux density is normalized to the earth's field [~50 mT] (T/T).
    double
    W component (real) of the orientation quaternion.
    double
    X component (imaginary) of the orientation quaternion.
    double
    Y component (imaginary) of the orientation quaternion.
    double
    Z component (imaginary) of the orientation quaternion.
    long
    Timestamp in nanoseconds.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Default constructor.
    PosInfo(long tm, double gx, double gy, double gz, double ax, double ay, double az, double mx, double my, double mz, double qw, double qx, double qy, double qz)
    Constructor with parameters.
  • Method Summary

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • tm

      public long tm
      Timestamp in nanoseconds.
    • gx

      public double gx
      Gyroscope x; angular velocity is given in radians per second (RPS).
    • gy

      public double gy
      Gyroscope y; angular velocity is given in radians per second (RPS).
    • gz

      public double gz
      Gyroscope z; angular velocity is given in radians per second (RPS).
    • ax

      public double ax
      Accelerometer x; acceleration is normalized to gravity [~9.81m/s^2] (m/s^2)/(m/s^2).
    • ay

      public double ay
      Accelerometer y; acceleration is normalized to gravity [~9.81m/s^2] (m/s^2)/(m/s^2).
    • az

      public double az
      Accelerometer z; acceleration is normalized to gravity [~9.81m/s^2] (m/s^2)/(m/s^2).
    • mx

      public double mx
      Magnetometer x; magnetic flux density is normalized to the earth's field [~50 mT] (T/T).
    • my

      public double my
      Magnetometer y; magnetic flux density is normalized to the earth's field [~50 mT] (T/T).
    • mz

      public double mz
      Magnetometer z; magnetic flux density is normalized to the earth's field [~50 mT] (T/T).
    • qw

      public double qw
      W component (real) of the orientation quaternion.
    • qx

      public double qx
      X component (imaginary) of the orientation quaternion.
    • qy

      public double qy
      Y component (imaginary) of the orientation quaternion.
    • qz

      public double qz
      Z component (imaginary) of the orientation quaternion.
  • Constructor Details

    • PosInfo

      public PosInfo()
      Default constructor.
    • PosInfo

      public PosInfo(long tm, double gx, double gy, double gz, double ax, double ay, double az, double mx, double my, double mz, double qw, double qx, double qy, double qz)
      Constructor with parameters.
      Parameters:
      tm - Timestamp in nanoseconds.
      gx - Gyroscope x; angular velocity is given in radians per second (RPS).
      gy - Gyroscope y; angular velocity is given in radians per second (RPS).
      gz - Gyroscope z; angular velocity is given in radians per second (RPS).
      ax - Accelerometer x; acceleration is normalized to gravity [~9.81m/s^2] (m/s^2)/(m/s^2).
      ay - Accelerometer y; acceleration is normalized to gravity [~9.81m/s^2] (m/s^2)/(m/s^2).
      az - Accelerometer z; acceleration is normalized to gravity [~9.81m/s^2] (m/s^2)/(m/s^2).
      mx - Magnetometer x; magnetic flux density is normalized to the earth's field [~50 mT] (T/T).
      my - Magnetometer y; magnetic flux density is normalized to the earth's field [~50 mT] (T/T).
      mz - Magnetometer z; magnetic flux density is normalized to the earth's field [~50 mT] (T/T).
      qw - W component (real) of the orientation quaternion.
      qx - X component (imaginary) of the orientation quaternion.
      qy - Y component (imaginary) of the orientation quaternion.
      qz - Z component (imaginary) of the orientation quaternion.