Skip to content

fix(odom_server): apply cloud2base transform to local map#507

Open
josepablovr wants to merge 1 commit into
PRBonn:mainfrom
josepablovr:odom_server_tf
Open

fix(odom_server): apply cloud2base transform to local map#507
josepablovr wants to merge 1 commit into
PRBonn:mainfrom
josepablovr:odom_server_tf

Conversation

@josepablovr

@josepablovr josepablovr commented Jun 15, 2026

Copy link
Copy Markdown

This PR fixes a bug where the local map (kiss/local_map) was misaligned in RViz when using a custom base_frame (like base_link).

Changes:

  • Updated PublishClouds to check if a base_frame is configured.
  • Applied the cloud2base transform to the local map points before publishing them to lidar_odom_frame_.

Now, the local map correctly aligns with the robot's actual base origin instead of being shifted by the sensor offset.

Before
Screenshot from 2026-06-15 16-35-55

After
Screenshot from 2026-06-15 16-48-58

Tested on ROS2 Jazzy

Closes #506

@josepablovr josepablovr changed the title feat(odom_server): apply cloud2base transform to local map fix(odom_server): apply cloud2base transform to local map Jun 15, 2026
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.

ROS2: Missing sensor-base_frame transform for localmap

1 participant