Table of Contents

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()

Returns

CloneObject()

protected override object CloneObject()

Returns

timestamp()

Timestamp. Unit is seconds.

public virtual double timestamp()

Returns

trackingStatus()

Get device motion tracking status: `MotionTrackingStatus`_. Only for 6DOF.

public virtual MotionTrackingStatus trackingStatus()

Returns

transform()

Transformation relative to the world coordinate system.

public virtual Matrix44F transform()

Returns

transformType()

Transformation type.

public virtual CameraTransformType transformType()

Returns

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

timestamp
position
rotation

Returns

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

timestamp
position
rotation
tracking_status

Returns

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

timestamp
rotation

Returns