0
我是Tango發展中的新人。我嘗試了的最新版本hello_area_description java_basic_examples。我發現如果我加載了之前保存的ADF,並且無論在學習模式中還是在關閉狀態下都無法再重新定位。 如果我通過以下配置加載ADF,我無法捕獲'Relocalized'日誌。搬遷ADF無法正常工作?
config.putString(TangoConfig.KEY_STRING_AREADESCRIPTION, uuid);
有什麼不對嗎?
mTango.connectListener(framePairs, new OnTangoUpdateListener() {
@Override
public void onPoseAvailable(TangoPoseData pose) {
// Make sure to have atomic access to Tango data so that UI loop doesn't interfere
// while Pose call back is updating the data.
synchronized (mSharedLock) {
// Check for Device wrt ADF pose, Device wrt Start of Service pose, Start of
// Service wrt ADF pose (this pose determines if the device is relocalized or
// not).
if (pose.baseFrame == TangoPoseData.COORDINATE_FRAME_AREA_DESCRIPTION
&& pose.targetFrame == TangoPoseData
.COORDINATE_FRAME_START_OF_SERVICE) {
if (pose.statusCode == TangoPoseData.POSE_VALID) {
Log.i(TAG, "[onPoseAvailable]mIsRelocalized = " + mIsRelocalized);
} else {
mIsRelocalized = false;
}
}
我試圖加載ADF並啓用學習模式。等待90〜120秒後獲得重定位日誌。但仍然無法取得禁用學習模式的日誌。 – Hugo