Repository navigation
Fix XYZW quaternion zeroing slice in ForgeEnv (noisy_fingertip_quat[:, 2:4].zero_())
#9349
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -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. |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -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_() | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The slice fixes the quaternion observation, but it does not restore yaw velocity. With noise disabled and a downward-facing gripper, |
||
| self.noisy_fingertip_quat = self.noisy_fingertip_quat * self.flip_quats.unsqueeze(-1) | ||
|
|
||
| # Repeat finite differencing with noisy fingertip positions. | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🟡 Warning · Implementation — Add the package changelog fragment
This isaaclab_tasks behavior fix has no required changelog fragment, leaving the correction out of the package changelog. Add a bug-fix fragment under source/isaaclab_tasks/changelog.d/.