Package me.clarius.sdk
Class PosInfo
java.lang.Object
me.clarius.sdk.PosInfo
Positional data information structure.
-
Field Summary
FieldsModifier and TypeFieldDescriptiondoubleAccelerometer x; acceleration is normalized to gravity [~9.81m/s^2] (m/s^2)/(m/s^2).doubleAccelerometer y; acceleration is normalized to gravity [~9.81m/s^2] (m/s^2)/(m/s^2).doubleAccelerometer z; acceleration is normalized to gravity [~9.81m/s^2] (m/s^2)/(m/s^2).doubleGyroscope x; angular velocity is given in radians per second (RPS).doubleGyroscope y; angular velocity is given in radians per second (RPS).doubleGyroscope z; angular velocity is given in radians per second (RPS).doubleMagnetometer x; magnetic flux density is normalized to the earth's field [~50 mT] (T/T).doubleMagnetometer y; magnetic flux density is normalized to the earth's field [~50 mT] (T/T).doubleMagnetometer z; magnetic flux density is normalized to the earth's field [~50 mT] (T/T).doubleW component (real) of the orientation quaternion.doubleX component (imaginary) of the orientation quaternion.doubleY component (imaginary) of the orientation quaternion.doubleZ component (imaginary) of the orientation quaternion.longTimestamp in nanoseconds. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
tm
public long tmTimestamp in nanoseconds. -
gx
public double gxGyroscope x; angular velocity is given in radians per second (RPS). -
gy
public double gyGyroscope y; angular velocity is given in radians per second (RPS). -
gz
public double gzGyroscope z; angular velocity is given in radians per second (RPS). -
ax
public double axAccelerometer x; acceleration is normalized to gravity [~9.81m/s^2] (m/s^2)/(m/s^2). -
ay
public double ayAccelerometer y; acceleration is normalized to gravity [~9.81m/s^2] (m/s^2)/(m/s^2). -
az
public double azAccelerometer z; acceleration is normalized to gravity [~9.81m/s^2] (m/s^2)/(m/s^2). -
mx
public double mxMagnetometer x; magnetic flux density is normalized to the earth's field [~50 mT] (T/T). -
my
public double myMagnetometer y; magnetic flux density is normalized to the earth's field [~50 mT] (T/T). -
mz
public double mzMagnetometer z; magnetic flux density is normalized to the earth's field [~50 mT] (T/T). -
qw
public double qwW component (real) of the orientation quaternion. -
qx
public double qxX component (imaginary) of the orientation quaternion. -
qy
public double qyY component (imaginary) of the orientation quaternion. -
qz
public double qzZ 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.
-