Skip to content

Ensure Odom Message Has Proper Frames - #34

Open
kethan1 wants to merge 1 commit into
waterlinked:mainfrom
avbotz:frame-fix
Open

Ensure Odom Message Has Proper Frames#34
kethan1 wants to merge 1 commit into
waterlinked:mainfrom
avbotz:frame-fix

Conversation

@kethan1

@kethan1 kethan1 commented Jul 7, 2026

Copy link
Copy Markdown
Contributor

Changes Made

This PR sets the child_frame_id field of the odom message to the appropriate frame passed via the node's parameters.

Associated Issues

As outlined at https://docs.ros.org/en/melodic/api/robot_localization/html/preparing_sensor_data.html, odom_msg.header.frame_id is used for pose data, while odom_msg.child_frame_id is used for twist data with robot_localization.

Being able to have the twist data transformed is useful when setting up the odom, base_link, and dvl frames to transform dvl data from FRD -> FLU for consistency with ROS2 convention.

Testing

Tested with a Water Linked a50 DVL in a pool.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the ROS 2 driver’s nav_msgs/msg/Odometry publication to populate child_frame_id, enabling consumers (notably robot_localization) to correctly interpret/transform the twist portion of the message.

Changes:

  • Set odom_msg_.child_frame_id during lifecycle configure using the node’s configured frame_id parameter.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

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