Skip to content

Fix action clipping for RMPFlow and non-holonomic action terms - #9040

Merged
AntoineRichard merged 3 commits into
isaac-sim:mainfrom
StafaH:fix/rmpflow-nonholonomic-action-clip
Nov 16, 2026
Merged

AntoineRichard merged 3 commits into
isaac-sim:mainfrom
StafaH:fix/rmpflow-nonholonomic-action-clip

Conversation

@StafaH

@StafaH StafaH commented Nov 16, 2026 •

Copy link
Copy Markdown
Collaborator

Description

Follow-up to #8715 for the two action terms it didn't cover. RMPFlowAction and NonHolonomicAction still resolved ActionTermCfg.clip keys against joint names and then indexed the action vector with those joint indices:

  • RMPFlowAction has a task-space action (6-D relative, 7-D absolute pose). With a 7-joint arm in relative mode, clip={".*": ...} raised IndexError: index 6 is out of bounds for dimension 0 with size 6; with fewer joints, joint ranges were applied to pose components.
  • NonHolonomicAction has a 2-D action (forward velocity, turning rate) but matched the keys against its three dummy base joints.

Both terms now expose action_names and resolve clip against them, as #8715 did for DiffIK and OSC:

  • RMPFlow: pos_x, pos_y, pos_z, then rot_x, rot_y, rot_z (relative) or quat_x, quat_y, quat_z, quat_w (absolute). It reuses _resolve_task_space_clip, so keys that match nothing or a quaternion component raise.
  • Non-holonomic: lin_vel_x, ang_vel_z. Unmatched keys raise through the strict name resolver.

No task in the repo sets clip on either term.

Fixes #1732 (together with #2019 for raw-action clipping in the RL wrappers and #8715 for the other task-space terms).

Type of change

  • Bug fix
  • Breaking change: clip keys that name joints on these two terms now raise a ValueError; use the action names listed above (recorded as Breaking in the changelog, with a major bump)

Checklist

  • I have read and understood the contribution guidelines
  • I have run the pre-commit checks with uv run isaaclab --format
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have validated the changed behavior with focused coverage and applied the test-audit criteria to any test changes
  • I have added a changelog fragment under source/<pkg>/changelog.d/ for every touched package (do not edit CHANGELOG.rst or bump package versions — CI handles that)
  • I have added my name to the CONTRIBUTORS.md or my name already exists there

Testing: the existing DiffIK clip tests are parametrized over RMPFlow: valid keys clip the processed pose actions, joint-name keys raise, and quaternion keys raise. On main the RMPFlow cases fail (joint-name keys hit IndexError: index 6 is out of bounds for dimension 0 with size 6; the other keys don't match any joint name). With this change all 20 tests in source/isaaclab/test/envs/mdp/test_actions.py pass. The non-holonomic change has no test coverage here.

Resolve ActionTermCfg.clip against each term's action names instead of
joint names, matching the task-space terms fixed in isaac-sim#8715.
@StafaH
StafaH requested a review from a team November 16, 2026 05:07
@github-actions github-actions Bot added bug Something isn't working isaac-lab Related to Isaac Lab team labels Nov 16, 2026

@isaaclab-review-bot isaaclab-review-bot Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Isaac Lab Review Bot

Needs attention: Compatibility and deprecation (2), Style consistency (4). Other reviewed categories look good.

  • PR description: The title matches the diff; replace “non-breaking,” distinguish baseline joint-index and unmatched-quaternion failures, and describe added coverage as rejection-only; the initialization changes make no performance claim requiring benchmarks.
  • Design and architecture: Architecture looks good.
  • Scope and over-engineering: No over-engineering issues.
  • API: API changes look good.
  • Compatibility and deprecation: Breaking changes: working dummy-joint and RMPFlow joint-name clip keys now fail construction; retain legacy mappings through targeted warnings, migration documentation, removal guidance, and transition tests.
  • Implementation: Implementation looks good.
  • Style consistency: The new public component descriptions omit velocity, position, and rotation units, leaving clip ranges ambiguous; document [m/s], [rad/s], [m], and [rad] where applicable.
  • Test quality: Test quality looks good.

Significant concerns. Posted 6 inline findings.

Automated review; human maintainers own approval decisions.

@isaaclab-review-bot isaaclab-review-bot Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Isaac Lab Review Bot

Needs attention: Compatibility and deprecation (2), Style consistency (5). Other reviewed categories look good.

  • PR description: The title matches the diff, but remove “non-breaking” and correct the baseline testing claim: relative RMPFlow joint keys cause an index error, while absolute quaternion keys fail name resolution.
  • Design and architecture: Architecture looks good.
  • Scope and over-engineering: No over-engineering issues.
  • API: API changes look good.
  • Compatibility and deprecation: Breaking changes: Previously functional RMPFlow joint-key and non-holonomic dummy-joint clip configurations now fail construction; preserve them through deprecation with targeted warnings, migration and removal guidance, and transition coverage.
  • Implementation: Implementation looks good.
  • Style consistency: The new public component descriptions omit physical units, leaving clip ranges underspecified; document position in metres, relative rotation in radians, and velocities in metres per second and radians per second.
  • Test quality: Test quality looks good.

Significant concerns. Posted 7 inline findings.

Automated review; human maintainers own approval decisions.

@greptile-apps

greptile-apps Bot commented Nov 16, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerView in GreptileConfidence Score: 4/5

[Low impact] The change affects clip settings on two specific action terms.

The PR appears safe to merge; adding successful clipping tests is a non-blocking improvement.

Findings

  1. P2 Clipping success paths lack tests ▶

Summary

The PR fixes clipping for RMPFlow and non-holonomic actions by matching bounds to action components instead of robot joints.

  • RMPFlow clips pose commands by their component names.
  • Non-holonomic clips target forward speed and turning rate by name.

Reviews (1) · Last reviewed commit: "Fix action clipping for RMPFlow and non-..." · Reviewed by Greptile

Mark joint-name clip keys as breaking, document action name units,
qualify API references, and cover RMPFlow clipping in the existing
task-space clip tests.
@StafaH

StafaH commented Nov 16, 2026

Copy link
Copy Markdown
Collaborator Author

run-ci

@isaaclab-bot isaaclab-bot Bot added ci:run-docker Trigger the on-demand Docker and GPU CI workflow and removed ci:run-docker Trigger the on-demand Docker and GPU CI workflow labels Nov 16, 2026
@AntoineRichard
AntoineRichard merged commit 3013b46 into isaac-sim:main Nov 16, 2026
90 of 91 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working isaac-lab Related to Isaac Lab team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Proposal] Incorrect clipping of actions

3 participants