Fix: restore static map→odom TF conditioned on slam:=false#666
Merged
Conversation
griswaldbrooks
approved these changes
May 26, 2026
When slam:=false (default), odom has no parent in the TF tree because static_tf_map_to_odom was removed unconditionally in PR #596. Restore it behind a not-slam condition so slam_toolbox still owns map→odom when slam:=true. Fixes PickNikRobotics/moveit_pro#19337 Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
79b3ffa to
297287a
Compare
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.
Human (that's me) :
I noticed some odom and map TF errors on hangar_sim start. I needed to have this TF that used to be there conditional on slam being false. I saw that before I added it back the 'navigate to clicked point' failed, and now the 'navigate to clicked point' is working again.
Problem
static_tf_map_to_odomwas removed unconditionally in PR #596 to avoid conflicting with slam_toolbox's dynamicmap → odompublish. Whenslam:=false(the default),odomhas no parent in the TF tree so all navigation objectives fail immediately withCould not find a connection between 'map' and 'odom' because they are not part of the same tree.Fix
Restore
static_tf_map_to_odomconditioned onslam:=false. Whenslam:=true, the static TF is suppressed and slam_toolbox ownsmap → odomdynamically as before.Alternatives considered
mj_world → odomfrom MuJoCo — rejected because it hardcodes an identity and interferes with fuse and localization.Fixes PickNikRobotics/moveit_pro#19337
Release notes
None