Skip to content

fix: correct external detection rotation in opennav_docking#899

Merged
SteveMacenski merged 1 commit intoros-navigation:masterfrom
nikolaos-drosinos:fix-dock-external-rotation
Apr 9, 2026
Merged

fix: correct external detection rotation in opennav_docking#899
SteveMacenski merged 1 commit intoros-navigation:masterfrom
nikolaos-drosinos:fix-dock-external-rotation

Conversation

@nikolaos-drosinos
Copy link
Copy Markdown
Contributor


Basic Info

Info Please fill out this column
Ticket(s) this addresses navigation2 6045
Does this PR contain AI-generated software? No

Description of contribution in a few bullet points

Implements documentation for ros-navigation/navigation2#6047

* replace tf2::Quaternion::setEuler() with tf2::Quaternion::setRPY()
  - setEuler(p, r, y) rotation order: Rz(y) -> Rx(r) -> Ry(p)
  - setRPY(r, p, y) rotation order: Rx(r) -> Ry(p) -> Rz(y)
* the computed rotation remains the same in the following cases:
  - when yaw rotation equals 0.0, or
  - when roll and pitch rotations both equal 1.0
* non-default rotation that differs from the above cases will break

Implements documentation for ros-navigation/navigation2#6047

Signed-off-by: Nikolaos Drosinos <nikolaos.drosinos@ocado.com>
Comment thread migration/Kilted.rst
@SteveMacenski SteveMacenski merged commit 45d4a54 into ros-navigation:master Apr 9, 2026
11 checks passed
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