TangoPoseData 'pose.status_code' always remains VALID even if the device steps out of the Area Descrition File

半城伤御伤魂 提交于 2019-12-04 21:24:37

It's intended to have ADF pose status to be valid even after device is out of ADF area. Under the hood, ADF pose is just a motion tracking pose with ADF's transformation correction on top of that. Thus even if it's out of the ADF, as long as motion tracking is working fine, it can still produce valid pose.

To check if device is out of an ADF, the easiest way is to listen to ADF_T_StartOfService frame. With a healthy/well-constructed ADF, you should be able to see this framepair constantly produce callbacks. Each callback indicates a "frame match". If there's no "frame match" after certain period of time, it's pretty safe to say that either user is out of an ADF or the area is deprecated (visual feature changed)

Other method to check ADF boundary is to save a file with the trajactory of recorded path, there's no built-in feature like this from Tango API. Thus it has to be done from the app level.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!