Skip to content

Commit 45d4a54

Browse files
fix: correct external detection rotation in opennav_docking (#899)
* 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>
1 parent b49536a commit 45d4a54

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

migration/Kilted.rst

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -202,6 +202,16 @@ Removed Parameter action_server_result_timeout
202202
Removed the parameter ``action_server_result_timeout`` from all action servers after resolution within ``rcl`` and ``rclcpp`` to address early goal removal.
203203
This is not longer required to be set.
204204

205+
Dock Plugin External Detection Rotation
206+
---------------------------------------
207+
208+
The external detection rotation order of ``Simple(Non)ChargingDock`` dock plugins has changed to the more natural Rx -> Ry -> Rz (was: Rz -> Rx -> Ry). From implementation point of view, ``setEuler()`` calls have been replaced with ``setRPY()``. The old behavior is retained only when
209+
210+
- ``external_detection_rotation_yaw`` equals 0.0, or
211+
- ``external_detection_rotation_pitch`` and ``external_detection_rotation_roll`` both equal 0.0
212+
213+
Non-default external detection rotation that differs from the above cases needs to be adjusted appropriately.
214+
205215
Dock Plugin Detector Control
206216
----------------------------
207217

0 commit comments

Comments
 (0)