Class MotionInputData
- Namespace
- easyar
- Assembly
- EasyAR.Sense.dll
Motion input data. Includes timestamp, transformation relative to the world coordinate system, and tracking status.
public class MotionInputData : RefBase, IDisposable
- Inheritance
-
MotionInputData
- Implements
- Inherited Members
Methods
Clone()
public MotionInputData Clone()
CloneObject()
protected override object CloneObject()
timestamp()
Timestamp. Unit is seconds.
public virtual double timestamp()
trackingStatus()
Get device motion tracking status: `MotionTrackingStatus`_. Only for 6DOF.
public virtual MotionTrackingStatus trackingStatus()
transform()
Transformation relative to the world coordinate system.
public virtual Matrix44F transform()
transformType()
Transformation type.
public virtual CameraTransformType transformType()
tryCreateFiveDofRotXZ(double, Vec3F, Vec4F)
Creates data for a 5DOF transformation that includes rotation and 2D translation. rotation is a quaternion, with the order wxyz.
public static Optional<MotionInputData> tryCreateFiveDofRotXZ(double timestamp, Vec3F position, Vec4F rotation)
Parameters
timestamppositionrotation
tryCreateSixDof(double, Vec3F, Vec4F, MotionTrackingStatus)
Creates data for a 6DOF transformation that includes rotation and translation. rotation is a quaternion, with the order wxyz.
public static Optional<MotionInputData> tryCreateSixDof(double timestamp, Vec3F position, Vec4F rotation, MotionTrackingStatus tracking_status)
Parameters
timestamppositionrotationtracking_status
tryCreateThreeDofRotOnly(double, Vec4F)
Creates data for a 3-degree-of-freedom rotation transformation only. rotation is a quaternion, with the order wxyz.
public static Optional<MotionInputData> tryCreateThreeDofRotOnly(double timestamp, Vec4F rotation)
Parameters
timestamprotation