Drift Correction update of Project Tango after Google IO

谁都会走 提交于 2019-12-13 06:13:15

问题


I am looking for the drift correction update for the project tango APIs after the presentation on the Google IO 2016. You can find the video at this link. The drift correction update is presented about 22:00 min. I hoped this function would be available after the big Okul update on June 9th, but I can't find it in any API. Does anyone one when this function will be available?

The screenshot below shows what I'm looking for. The KEY_BOOLEAN_ENABLE_DRIFT_CORRECTION isn't available in any of the APIs.

I'm working with Java and Android Studio, but I would also be happy if this new function will be available in C or Unity API.


回答1:


I updated to the Q release both my Tango devkit and the Unity package, and looks like it's still in a limbo state on the c# side

As you can see here TangoConfig.cs is the same version as last release, so there is no

config.putBoolean(TangoConfig.KEY_BOOLEAN_DRIFT_CORRECTION, true)

variable to use.

However TangoApplication.cs has been updated in the Q release, as you can see on Line 1149

 areaDescription.baseFrame = TangoEnums.TangoCoordinateFrameType.TANGO_COORDINATE_FRAME_AREA_DESCRIPTION;    

which does correspond to that example.

The empty man page for TangoConfig doesn't help either (I know, still in beta.).

Despite the lack of documentation, I read the TangoConfig class under

Assets/TangoSDK/Core/Scripts/TangoWrappers/TangoConfig.cs

and brutally added

public static readonly string ENABLE_DRIFT_CORRECTION_BOOL = "config_enable_drift_correction";

on line 365. Also commented lines 292,293,294,310 so the call would actually pass to the helper.

I also tried adding

SetBool (Keys.ENABLE_DRIFT_CORRECTION_BOOL, true);

on line 65,and opened the Augmented Reality test scene. It didn't crash, but the coordinate values were not shifted from 0,0,0 to an external origin, as my understanding of drift correction would think. Another bad telltale sign is that it still crashes if I shake it, and there is no trace of LQ21 (my app name) in the crash log.



来源:https://stackoverflow.com/questions/37783252/drift-correction-update-of-project-tango-after-google-io

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