-
Notifications
You must be signed in to change notification settings - Fork 4.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
g2o optimizer warning while running slam #211
Comments
Did you find where the problem is? I met the same problem in PoseOptimization because after n iterations probably all correspondences is bad. I just add the following check. |
Hi, I don't know yet the exact cause for this warning, but you should know this is a library warning, g2o warning, non related to orb-slam2, and it seems to be completely harmless. The library g2o is telling the application orb-slam2 invoked it to optimize something, but provided no vertices to do it, so there's nothing to work on. It could be avoided with an appropriate check before calling the optimizer, like @HeatherHu 's. |
@HeatherHu Could you provide the location where you added this fix? |
@gocarlos I put this in the function Optimizer::PoseOptimization. Try to find the place where it performs 4 optimizations (for loop in there). At the end of each optimization, I add this check to make sure there are still enough vertices in the optimized graph. |
I use the RGB-D interface and the TUM dataset.
While ORB_SLAM is running, I occasionally get some warning message:
and tracking often lost at the same time, although the program continue to run and can relocate again.
Anyone with the same problem ? Any idea ?
The text was updated successfully, but these errors were encountered: