Package me.clarius.sdk
Class PosInfo
java.lang.Object
me.clarius.sdk.PosInfo
Positional data information structure.
-
Field Summary
FieldsModifier and TypeFieldDescriptiondouble
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 -
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.
-