Table of Contents

Class MotionInputData

命名空间
easyar
程序集
EasyAR.Sense.dll

运动输入数据。 包含、时间戳、相对于世界坐标系的变换和跟踪状态。

public class MotionInputData : RefBase, IDisposable
继承
MotionInputData
实现
继承成员

方法

Clone()

public MotionInputData Clone()

CloneObject()

protected override object CloneObject()

timestamp()

时间戳。单位为秒。

public virtual double timestamp()

trackingStatus()

获取设备运动跟踪状态: `MotionTrackingStatus`_ 。仅用于6DOF。

public virtual MotionTrackingStatus trackingStatus()

transform()

相对于世界坐标系的变换。坐标系参考 :doc:`概览 <Overview>` 。

public virtual Matrix44F transform()

transformType()

变换类型。

public virtual CameraTransformType transformType()

tryCreateFiveDofRotXZ(double, Vec3F, Vec4F)

创建包含旋转和2D平移的5DOF变换的数据。rotation为四元数,排列顺序为wxyz。

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

参数

timestamp
position
rotation

tryCreateSixDof(double, Vec3F, Vec4F, MotionTrackingStatus)

创建包含旋转和平移的6DOF变换的数据。rotation为四元数,排列顺序为wxyz。

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

参数

timestamp
position
rotation
tracking_status

tryCreateThreeDofRotOnly(double, Vec4F)

创建仅包含3自由度旋转变换的数据。rotation为四元数,排列顺序为wxyz。

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

参数

timestamp
rotation