Skip to content

Fix the bug causing assertion failure during map merging. - #416

Closed
AlbertYang0112 wants to merge 1 commit into
UZ-SLAMLab:masterfrom
AlbertYang0112:master
Closed

AlbertYang0112 wants to merge 1 commit into
UZ-SLAMLab:masterfrom
AlbertYang0112:master

Conversation

@AlbertYang0112

Copy link
Copy Markdown
  • How to reproduce: whenever there exists more than one map, and two of them are about to merge.
  • Behavior: Assertion fails in G2O.
  • Bug location: Optimizer::LocalBundleAdjustment
  • Cause: During the creation of non-fixed keyframe vertices, local KF for merge, pKFi->mnBALocalForMerge, is not set. This causes the if condition in line 5767 to fail for all non-fixed KF, and no edges are connected between map points and these non-fixed KFs.
  • Fix: add the assignment to mnBALocalForMerge

@jdtardos jdtardos closed this Dec 23, 2021
@DOGEwbx DOGEwbx mentioned this pull request Jan 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants