在Tango设备(Qianru)上KEY_BOOLEAN_DRIFT_CORRECTION崩溃

时间:2016-07-12 18:26:30

标签: java android google-project-tango

自Google IO以来我一直在等待所提出的漂移校正更新(请查看我的上一篇question)。现在,在 Qianru 更新之后,最终可以在Java API上使用此函数。但是在尝试使用它时,我尝试的示例总是崩溃(Java Floorplan示例)。我刚刚添加了一行(KEY_ENABLE_DRIFT_CORRECTION)。任何人都可以帮助我吗?

代码:

        // Use default configuration for Tango Service, plus low latency
    // IMU integration and area learning.
    TangoConfig config = mTango.getConfig(TangoConfig.CONFIG_TYPE_DEFAULT);
    // NOTE: Low latency integration is necessary to achieve a precise alignment of virtual
    // objects with the RBG image and produce a good AR effect.
    config.putBoolean(TangoConfig.KEY_BOOLEAN_LOWLATENCYIMUINTEGRATION, true);
    config.putBoolean(TangoConfig.KEY_BOOLEAN_DEPTH, true);
    config.putBoolean(TangoConfig.KEY_BOOLEAN_DRIFT_CORRECTION, true);
    // NOTE: Area learning is necessary to achieve better precision is pose estimation
    config.putBoolean(TangoConfig.KEY_BOOLEAN_LEARNINGMODE, true);
    config.putBoolean(TangoConfig.KEY_BOOLEAN_COLORCAMERA, true);
    mTango.connect(config);

错误: enter image description here

0 个答案:

没有答案