简体   繁体   English

Google IO之后,Project Tango的漂移校正更新

[英]Drift Correction update of Project Tango after Google IO

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 . 我正在Google IO 2016上发表演讲后寻找项目探戈API的漂移校正更新 。您可以在此链接中找到视频。 The drift correction update is presented about 22:00 min. 漂移校正更新大约在22:00分钟出现。 I hoped this function would be available after the big Okul update on June 9th, but I can't find it in any API. 我希望该功能在6月9日的Okok大更新之后可以使用,但是我在任何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. KEY_BOOLEAN_ENABLE_DRIFT_CORRECTION在任何API中均不可用。

屏幕截图

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. 我正在使用Java和Android Studio,但是如果此新功能可以在C或Unity API中使用,我也将很高兴。

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 我更新了我的Tango devkit和Unity软件包的Q版本,并且看起来它在C#方面仍然处于不确定状态

As you can see here TangoConfig.cs is the same version as last release, so there is no 如您所见 TangoConfig.cs是与上一发行版相同的版本,因此没有

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 但是,如您在Line 1149上所见,Q版本中TangoApplication.cs已更新。

 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.). TangoConfig的空白手册页也无济于事(我知道,仍处于测试版。)。

Despite the lack of documentation, I read the TangoConfig class under 尽管缺少文档,但我还是阅读了TangoConfig类

Assets/TangoSDK/Core/Scripts/TangoWrappers/TangoConfig.cs 资产/ TangoSDK /核心/脚本/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. 在第365行上。还注释了第292,293,294,310行,因此该呼叫实际上将传递给助手。

I also tried adding 我也尝试添加

SetBool (Keys.ENABLE_DRIFT_CORRECTION_BOOL, true);

on line 65,and opened the Augmented Reality test scene. 65行,并打开了增强现实测试场景。 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. 它没有崩溃,但是坐标值没有从0,0,0移到外部原点,这是我对漂移校正的理解所认为的。 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. 另一个不好的迹象是,如果我摇晃它,它仍然会崩溃,并且崩溃日志中没有LQ21(我的应用程序名称)的痕迹。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM