Add odom frame and ICP-based relocalization#9
Open
baishibona wants to merge 2 commits intoVectorRobotics:devfrom
Open
Add odom frame and ICP-based relocalization#9baishibona wants to merge 2 commits intoVectorRobotics:devfrom
baishibona wants to merge 2 commits intoVectorRobotics:devfrom
Conversation
Split the TF tree from map->sensor to map->odom->sensor following standard ROS conventions. The imu_preintegration node now publishes both odom->sensor (continuous) and map->odom (identity by default, updated by relocalization). Added global_localization.py (adapted from FAST_LIO_LOCALIZATION2) which performs ICP against a prior PCD map and publishes corrections on /map_to_odom. The node auto-launches when MAP_PATH env is set (local_mode=true).
alexlin2
requested changes
Apr 3, 2026
Collaborator
alexlin2
left a comment
There was a problem hiding this comment.
Looks fantastic. Just a few small thing that I commented
Collaborator
There was a problem hiding this comment.
Maybe this can be it's own package? since the relocalization is not specific to arise_slam, can in the future we might replace arise with fastlio2 or another SLAM method
Collaborator
There was a problem hiding this comment.
This should default to using the ENV MAP_PATH similar to
Addresses PR feedback: relocalization is SLAM-agnostic so it belongs in its own package. Moved global_localization.py and relocalization.launch.py into src/slam/global_localization/ as a proper ament_python package. Also default pcd_map_path from MAP_PATH env variable in the relocalization launch.
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.
Summary
map→sensortomap→odom→sensor(standard ROS convention)imu_preintegration_nodenow publishesodom→sensorTF (continuous) andmap→odomTF (identity by default, updated by relocalization via/map_to_odomtopic)global_localizationas a standalone SLAM-agnostic package — performs ICP against a prior PCD map, publishesmap→odomcorrectionsMAP_PATHenv is set (local_mode=true)ODOM_FRAMEparameter (default"odom") across config, launch, and parameter systemrelocalization.launch.pyalso available for manual launchTest plan
global_localizationpackage builds successfully (colcon build --packages-select global_localization)arise_slam_mid360with GTSAM installed and verify compilationMAP_PATH) — verifymap→odomis identity, TF tree ismap→odom→sensor/initialposeodomframe