ros-navigation / navigation2

ROS 2 Navigation Framework and System
https://nav2.org/
Other
2.62k stars 1.31k forks source link

[RotationShimController] fix: rotate to goal heading #4724

Closed gennartan closed 1 month ago

gennartan commented 1 month ago

Add frame_id to goal when rotating towards goal heading, otherwise the transform would fail. This bug was introduced in 30e2cde by not setting the frame_id.

This fix is similar to https://github.com/ros-navigation/navigation2/pull/4716


Basic Info

Info Please fill out this column
Ticket(s) this addresses 4332
Primary OS tested on Ubuntu
Robotic platform tested on Gazebo
Does this PR contain AI generated software? No

Description of contribution in a few bullet points

Fix a bug.

Description of documentation updates required from your changes


Future work that may be required in bullet points

For Maintainers:

codecov[bot] commented 1 month ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Files with missing lines Coverage Δ
...m_controller/src/nav2_rotation_shim_controller.cpp 95.23% <100.00%> (+0.02%) :arrow_up:

... and 1 file with indirect coverage changes

SteveMacenski commented 1 month ago

Thanks!