Class PosInfo


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

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

      Constructors 
      Constructor Description
      PosInfo()
      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 Detail

      • 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 Detail

      • 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.