Repository navigation
Fix action clipping for RMPFlow and non-holonomic action terms - #9040
Conversation
Resolve ActionTermCfg.clip against each term's action names instead of joint names, matching the task-space terms fixed in isaac-sim#8715.
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
[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
SummaryThe PR fixes clipping for RMPFlow and non-holonomic actions by matching bounds to action components instead of robot joints.
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.
|
run-ci |
Description
Follow-up to #8715 for the two action terms it didn't cover.
RMPFlowActionandNonHolonomicActionstill resolvedActionTermCfg.clipkeys against joint names and then indexed the action vector with those joint indices:RMPFlowActionhas a task-space action (6-D relative, 7-D absolute pose). With a 7-joint arm in relative mode,clip={".*": ...}raisedIndexError: index 6 is out of bounds for dimension 0 with size 6; with fewer joints, joint ranges were applied to pose components.NonHolonomicActionhas a 2-D action (forward velocity, turning rate) but matched the keys against its three dummy base joints.Both terms now expose
action_namesand resolveclipagainst them, as #8715 did for DiffIK and OSC:pos_x,pos_y,pos_z, thenrot_x,rot_y,rot_z(relative) orquat_x,quat_y,quat_z,quat_w(absolute). It reuses_resolve_task_space_clip, so keys that match nothing or a quaternion component raise.lin_vel_x,ang_vel_z. Unmatched keys raise through the strict name resolver.No task in the repo sets
clipon 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
clipkeys that name joints on these two terms now raise aValueError; use the action names listed above (recorded as Breaking in the changelog, with a major bump)Checklist
pre-commitchecks withuv run isaaclab --formatsource/<pkg>/changelog.d/for every touched package (do not editCHANGELOG.rstor bump package versions — CI handles that)CONTRIBUTORS.mdor my name already exists thereTesting: 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
mainthe RMPFlow cases fail (joint-name keys hitIndexError: 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 insource/isaaclab/test/envs/mdp/test_actions.pypass. The non-holonomic change has no test coverage here.