Skip to content

Reprocess: added option -abort_disconnected_sessions - #1738

Merged
matlabbe merged 5 commits into
masterfrom
reprocess_check_all_sessions_combined
Jul 15, 2026
Merged

matlabbe merged 5 commits into
masterfrom
reprocess_check_all_sessions_combined

Conversation

@matlabbe

@matlabbe matlabbe commented Jul 14, 2026 •

Copy link
Copy Markdown
Member

To make rtabmap-reprocess returns error if not all new sessions are connected at the end.

Examples:

  • Append (-a) a database that cannot be connected to original database:
Total loop closures = 8 (Loop=8, Prox=0, In Motion=8/94, Intra=8, Inter=0)
Sessions linked to the last pose: 1/3
New sessions connected to the global graph: 1/1
ERROR: Aborting (option -abort_disconnected_sessions is set). The new sessions are not connected to original map.
  • Append a bunch of databases, but some new sessions are disconnect from the global graph:
Total loop closures = 60 (Loop=47, Prox=13, In Motion=60/281, Intra=49, Inter=11)
Sessions linked to the last pose: 3/4
New sessions connected to the global graph: 1/2
ERROR: Aborting (option -abort_disconnected_sessions is set). Not all new sessions are connected.
  • Reprocess a bunch of databases, and some sessions are disconnect from the global graph:
Total loop closures = 339 (Loop=273, Prox=66, In Motion=339/1063, Intra=245, Inter=94)
Sessions linked to the last pose: 3/4
ERROR: Aborting (option -abort_disconnected_sessions is set). Not all sessions are connected.

Note: that may not work as expected if Memory Management is enabled. For example, if we reprocess 10 databases and while ate are all connected, the first one may be forgotten (all transferred to LTM). Actually, it should be fine, I used the global graph to query map ids, not the local graph.

@matlabbe
matlabbe marked this pull request as ready for review July 14, 2026 18:20
@matlabbe
matlabbe merged commit 6a605b3 into master Jul 15, 2026
26 checks passed
@matlabbe
matlabbe deleted the reprocess_check_all_sessions_combined branch July 15, 2026 00:55
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.

1 participant