Skip to content

Fix: restore static map→odom TF conditioned on slam:=false#666

Merged
bkanator merged 1 commit into
mainfrom
fix/static-map-odom-slam-conditional
May 27, 2026
Merged

Fix: restore static map→odom TF conditioned on slam:=false#666
bkanator merged 1 commit into
mainfrom
fix/static-map-odom-slam-conditional

Conversation

@bkanator

@bkanator bkanator commented May 26, 2026

Copy link
Copy Markdown

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_odom was removed unconditionally in PR #596 to avoid conflicting with slam_toolbox's dynamic map → odom publish. When slam:=false (the default), odom has no parent in the TF tree so all navigation objectives fail immediately with Could not find a connection between 'map' and 'odom' because they are not part of the same tree.

Fix

Restore static_tf_map_to_odom conditioned on slam:=false. When slam:=true, the static TF is suppressed and slam_toolbox owns map → odom dynamically as before.

Alternatives considered

  • Publish mj_world → odom from MuJoCo — rejected because it hardcodes an identity and interferes with fuse and localization.
  • Leave as-is and require slam to always be running — too much overhead for simple navigation testing.

Fixes PickNikRobotics/moveit_pro#19337

Release notes

None

@bkanator bkanator marked this pull request as ready for review May 26, 2026 18:34
@bkanator bkanator requested a review from griswaldbrooks May 26, 2026 18:35
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>
@bkanator bkanator force-pushed the fix/static-map-odom-slam-conditional branch from 79b3ffa to 297287a Compare May 26, 2026 21:55
@bkanator bkanator enabled auto-merge May 26, 2026 21:56
@bkanator bkanator merged commit 171ec75 into main May 27, 2026
9 of 10 checks passed
@bkanator bkanator deleted the fix/static-map-odom-slam-conditional branch May 27, 2026 12:34
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.

2 participants