diff --git a/source/isaaclab_tasks/changelog.d/fix-forge-xyzw-quat-zeroing.fixed.rst b/source/isaaclab_tasks/changelog.d/fix-forge-xyzw-quat-zeroing.fixed.rst new file mode 100644 index 000000000000..9467f77b849c --- /dev/null +++ b/source/isaaclab_tasks/changelog.d/fix-forge-xyzw-quat-zeroing.fixed.rst @@ -0,0 +1,3 @@ +* Fixed ``ForgeEnv._compute_intermediate_values`` zeroing ``noisy_fingertip_quat[:, ::3]`` (``x`` and ``w`` in XYZW + format) instead of ``[:, 2:4]`` (``z`` and ``w``), which dropped yaw orientation information for the downward-facing + end-effector after the WXYZ-to-XYZW migration. diff --git a/source/isaaclab_tasks/isaaclab_tasks/contrib/forge/forge_env.py b/source/isaaclab_tasks/isaaclab_tasks/contrib/forge/forge_env.py index 20b200d31f5b..b02a028f2bea 100644 --- a/source/isaaclab_tasks/isaaclab_tasks/contrib/forge/forge_env.py +++ b/source/isaaclab_tasks/isaaclab_tasks/contrib/forge/forge_env.py @@ -79,7 +79,8 @@ def _compute_intermediate_values(self, dt): self.noisy_fingertip_quat = quat_mul( self.fingertip_midpoint_quat, quat_from_angle_axis(rot_noise_angle, rot_noise_axis) ) - self.noisy_fingertip_quat[:, ::3].zero_() + # Zero z and w in XYZW format to project the downward-facing EE orientation onto yaw. + self.noisy_fingertip_quat[:, 2:4].zero_() self.noisy_fingertip_quat = self.noisy_fingertip_quat * self.flip_quats.unsqueeze(-1) # Repeat finite differencing with noisy fingertip positions.