Repository navigation
Support intermediate nodes with memory management enabled - #1687
Merged
Merged
Conversation
…/BadSignRatio to support intermediate nodes.
matlabbe
marked this pull request as ready for review
April 19, 2026 22:59
huichangs
added a commit
to huichangs/rtabmap
that referenced
this pull request
Apr 21, 2026
Rebuild segment branch on top of upstream/master (0.23.5) which added "Support intermediate nodes with memory management" (PR introlab#1687). Resolves the version mismatch where rtabmap_ros expects 0.23.5 but core was 0.23.4. Conflict resolutions: - Memory.cpp reactivateSignatures(): keep upstream's new recursive path that skips intermediate nodes from maxLoaded count — our fork never touched this function. - Rtabmap.cpp path-immunization: take upstream's clean version (updateGoalIndex only). Our commented-out block had identical effect. - Rtabmap.cpp zone-classification region: take our semantic-zone code; upstream's retrieval additions had no landing section in our file. - Rtabmap.cpp TRANSFER: keep our zone-aware cleanup path but add upstream's !lastSignatureWasIntermediateNode guard.
huichangs
added a commit
to huichangs/rtabmap
that referenced
this pull request
Apr 21, 2026
Why: upstream PR introlab#1687 added required bool arg to getLastWorkingSignature(); totalTime decl was lost in merge.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Related to #1685
These fixes should make the memory management works seemlessly when
Rtabmap/CreateIntermediateNodesistrue. The only difference is thatRtabmap/MemoryThrshould be scaled accordingly if used with intermediate nodes. For example, if the input data frequency is 10 Hz andRtabmap/DetectionRateis 1, we would have to set 10xRtabmap/MemoryThr. IfRtabmap/TimeThris used instead, nothing has to be modified. Note that there would be a slight overhead on Retrieval and Transfer when intermediate nodes are enabled.EDIT: Had to change how
Kp/BadSignRatioworks. It will be a ratio ofKp/MaxFeaturesby default if max features is not 0, otherwise will use old approach of averaging words on all signatures in working memory. Note that withRtabmap/CreateIntermediateNodeson, the average will be a lot lower than usual, the ratio may need to be tuned if so.EDIT 2: Added abort error log when RTAB-Map's planning with
Rtabmap/CreateIntermediateNodesenabled. Not supported.Tested using this demo: https://github.com/introlab/rtabmap_ros/blob/ros2/rtabmap_demos/launch/multisession_mapping_demo.launch.py
with:
EDIT: With #1733, no need to scale
Rtabmap/MemoryThranymore.