google-ar / arcore-android-sdk

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

Camera tracking status is reported as TRACKING too often. #528

Open inio opened 6 years ago

inio commented 6 years ago

Sometimes ARCore reports a tracking state of TRACKING when it probably should be PAUSED.

This bug is to collapse a bunch of similar reports about poor tracking quality reports. These generally come in two flavors:

  1. Tracking is working but then lost, usually demonstrated by anchors drifting off in a random direction. Sometimes the world will occasionally snap back to where it should be but then start drifting again in the same direction.
  2. Anchors created shortly after the session begins tracking can have very poor location consistency.
inio commented 6 years ago

(Replying to myself so this thread has a Googler response for internal bookeeping purposes)

MarcoLavoro commented 6 years ago

yust to know...there is any workaround for this problem? i need a good precision to start my new project

inio commented 6 years ago

@ikaro88 I've seen some developer suggest waiting for the first plane detection.

MarcoLavoro commented 6 years ago

@inio what do you mean with "waiting for the first plane detection" you mean to scan all surface before place the objects on it? because i tried it but in that way the problem persist...

inio commented 6 years ago

Wait until Session.getAllTrackables(Plane.class) returns a non-empty list. Besides that there's not much to do from the app side.

MarcoLavoro commented 6 years ago

@inio I use the helloAR of the unity package, and it have already Session.GetTrackables(m_AllPlanes); there is not definition of Session.getAllTrackables

and the only definition of getAllTrackables is inside SessionApi.cs, but is a void function, I miss something? btw here there is a video of the issue:

https://www.youtube.com/watch?v=AYGU6afFLvo

inio commented 6 years ago

Please post issues with the Unity integration on the google-ar/arcore-unity-sdk issues board.

kgf684 commented 5 years ago

@inio Any updates on this Camera Drift issue. Are there any recommendations on how to avoid the anchor object to be drifted?

bharathhereafter commented 4 years ago

@djraags have you fixed the drift issue?

kgf684 commented 4 years ago

@bharathhereafter For my use case, we later realized we dont need the objects to be at the same place, we just need its position, so we were able to work around this