google-ar / arcore-android-sdk

ARCore SDK for Android Studio
https://developers.google.com/ar
Other
4.97k stars 1.22k forks source link

Anchor bouncing issue #1365

Open tydice opened 2 years ago

tydice commented 2 years ago

SPECIFIC ISSUE ENCOUNTERED

When an AR object is anchored to a specific world coordinate, the object bounces slightly after 1~3 seconds. That is, it is slightly moved from the first anchored position. And it makes AR quality feel poor. The log when the object moves slightly is as follows.

1710 pose_manager.cc:354] World pose node changing to MapId:19b0fa83-e379-25d4-835d-ccf4f296a95a with 5 opt.

The weird thing is that this issue is not seen in other projects using the same AR codes. (SDK and ARCore versions are the same) And above log is not seen as well. I want to know the cause and solution of this issue.

FYI, I made anchor manually by specifying coordinates like,

objectAnchor = arSession?.createAnchor(
                Pose.makeTranslation(point.getX(), point.getY(), point.getZ())
            )

VERSIONS USED

https://user-images.githubusercontent.com/12293742/158951281-f856feff-aeff-4f26-838e-5296a151c0b1.mp4

The object is a square panel with black backround. And the issue occurs in about 3 seconds in the video.

tydice commented 2 years ago

Is there any updates? To help you debug, I uploaded source code of the test version app that I captured above. Whenever the issue happens, the log (World pose node changing to MapId ~) shows.

In case the issue is not reproduced, restart app and try again.

Here's the app source code with the bouncing issue. https://github.com/tydice/IssueTestApp