Repository navigation
Reduce voxel-map memory while preserving odometry results - #4
Merged
Merged
Conversation
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.
Large maps retain scan-only fields and allocate plane and threshold storage in cells that do not need them. This reduces voxel-map memory while preserving double-precision coordinates/covariances, retained geometry, matching rules, and configured map range.
Related to #2.
Changes
Validation
The combined implementation was compared with the original on six complete recordings, with Python visualization disabled and the same settings and input. Poses, timestamps, per-frame pose/covariance hashes, diagnostics, and evaluation coverage matched exactly.
Timing varied between runs; the two initial wall-time increases did not recur in reversed-order paired checks. This is a memory reduction, not a guarantee of faster execution or a fixed memory cap.
The PR core implementation matches the evaluated combined variant after removing experiment switches, instrumentation-only accessors, and comments. The final sources were rebuilt and checked: 18 core tests; 159 Python tests passed, 1 skipped; 21 ROS 1 Noetic tests; 23 ROS 2 Jazzy tests; and the storage-lifecycle test under AddressSanitizer/UndefinedBehaviorSanitizer with leak detection. The full-recording comparisons above are Python OFF runs; ROS checks here are build/unit/integration checks.
Rebuild the Python extension and ROS nodes when using this change because the internal map storage layout changes.