Table of Contents

Class MotionInputData

Namespace
easyar
Assembly
EasyAR.Sense.dll

Motion input data. Contains the timestamp, transform relative to the world coordinate system, and tracking status.

public class MotionInputData : RefBase, IDisposable
Inheritance
MotionInputData
Implements
Inherited Members

Methods

Clone()

public MotionInputData Clone()

timestamp()

Timestamp. The unit is seconds.

public virtual double timestamp()

trackingStatus()

Gets the device motion tracking status: `MotionTrackingStatus`_. Used only for 6DOF.

public virtual MotionTrackingStatus trackingStatus()

transform()

Transform relative to the world coordinate system.

public virtual Matrix44F transform()

transformType()

Transform type.

public virtual CameraTransformType transformType()

tryCreateFiveDofRotXZ(double, Vec3F, Vec4F)

Creates data containing a 5DOF transform with rotation and 2D translation. rotation is a quaternion in wxyz order.

public static Optional<MotionInputData> tryCreateFiveDofRotXZ(double timestamp, Vec3F position, Vec4F rotation)

Parameters

timestamp
position
rotation

tryCreateSixDof(double, Vec3F, Vec4F, MotionTrackingStatus)

Creates data containing a 6DOF transform with rotation and translation. rotation is a quaternion in wxyz order.

public static Optional<MotionInputData> tryCreateSixDof(double timestamp, Vec3F position, Vec4F rotation, MotionTrackingStatus tracking_status)

Parameters

timestamp
position
rotation
tracking_status

tryCreateThreeDofRotOnly(double, Vec4F)

Creates data containing only a 3DOF rotation transform. rotation is a quaternion in wxyz order.

public static Optional<MotionInputData> tryCreateThreeDofRotOnly(double timestamp, Vec4F rotation)

Parameters

timestamp
rotation