【Vuforia】Device Tracker

翻译

使用设备跟踪器
Vuforia Engine支持旋转和位置设备跟踪。旋转设备跟踪器允许3个自由度跟踪,而位置设备跟踪器允许6个自由度跟踪。

本文使用本机Android和iOS SDK中的示例描述了Device Tracker API。有关如何在Unity中使用设备跟踪的详细信息,请参阅:在Unity中配置设备跟踪或在Unity中使用MixedRealityController。

介绍
位置设备跟踪
定位设备跟踪利用Vuforia Fusion,以提供设备相对于世界和其他对象的位置姿势信息。位置设备跟踪允许使用地平面和扩展跟踪等功能。

PositionalDeviceTracker类启用了位置跟踪。
旋转设备跟踪
旋转设备跟踪需要设备上的惯性传感器。它不依赖于设备的摄像头来报告旋转信息,因此可以进行头部跟踪和沉浸式虚拟现实(VR)体验的开发。此功能允许创建可在使用VR查看器时跟踪用户头部旋转的应用程序,还支持手持设备跟踪。
旋转跟踪由RotationalDeviceTracker类启用,该类是Tracker报告手持或头戴式设备的旋转姿势的专用类型。旋转设备跟踪器还可以配置有旋转枢轴偏移,以调整姿势值以与用户头部或臂的旋转中心重合。

设备跟踪API
所述DeviceTracker类跟踪使用从设备的惯性传感器,照相机,或像ARKit和ARCORE平台使能器的数据的设备的世界内的旋转或位置姿势的坐标系。

Vuforia图像
RotationalDeviceTracker,PositionalDeviceTracker,DeviceTrackable和DeviceTrackableResult类型

该RotationalDeviceTracker或PositionalDeviceTracker提供更新带来的DeviceTrackableResult单个DeviceTrackable 实例。这些可跟踪结果可以从State对象获得,可以通过updateState()从StateUpdater 类实例上调用TrackerManager,也可以从返回的State对象调用Renderer.begin()。

从StateUpdater获取州:

1
const Vuforia::State state = Vuforia::TrackerManager::getInstance().getStateUpdater().updateState();
学到更多
有关特定设备跟踪器的更多信息,请参阅以下文档:

旋转设备跟踪器
定位设备跟踪器

原文

Using the Device Tracker
Vuforia Engine supports both rotational and positional Device Tracking. The Rotational Device Tracker allows for 3 degrees-of-freedom tracking while the Positional Device Tracker allows for 6 degrees-of-freedom tracking.

This article describes the Device Tracker APIs using examples from the native Android and iOS SDKs. For more information on how to use device tracking in Unity see: Configuring Device Tracking in Unity or Using the MixedRealityController in Unity.

Introduction
Positional Device Tracking
Positional Device Tracking leverages Vuforia Fusion in order to provide positional pose information of the device relative to the world and other objects. Positional Device Tracking allows for features such as Ground Plane and Extended Tracking.

Positional Tracking is enabled by the PositionalDeviceTracker class.
Rotational Device Tracking
Rotational Device Tracking requires inertial sensors on the device. It does not depend on the device’s camera to report rotational information and, therefore, allows for head tracking and the development of immersive Virtual Reality (VR) experiences. This functionality allows the creation of apps that can track the rotation of a user’s head, when using a VR viewer, and also supports handheld device tracking.
Rotational Tracking is enabled by the RotationalDeviceTracker class, which is a a specialized Tracker type that reports the rotational pose of a handheld or head mounted device. The Rotational Device Tracker can also be configured with a rotational pivot offset to adjust the pose values to coincide with the center of rotation of a user’s head or arm.

Device Tracking API
The DeviceTracker class tracks the rotational or positional pose of a device within a world coordinate system using data from the device’s inertial sensors, camera, or platform enablers like ARKit and ARCore.

Vuforia Image
The RotationalDeviceTracker, PositionalDeviceTracker, DeviceTrackable, and DeviceTrackableResult types

The RotationalDeviceTracker or PositionalDeviceTracker provide pose updates as a DeviceTrackableResult for a single DeviceTrackable instance. These Trackable Results are obtainable from the State object either by calling updateState() from the StateUpdater class instance on the TrackerManager, or from the State object returned by Renderer.begin().

Obtaining State from the StateUpdater:

1
const Vuforia::State state = Vuforia::TrackerManager::getInstance().getStateUpdater().updateState();
Learn More
For more information on the specific Device Trackers, please refer to the following documents:

Rotational Device Tracker
Positional Device Tracker

  • 2
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值