Repository navigation
[Task Clean-up][Assets] Drop the Newton 1.5 tendon-adapter shim - #7468
Conversation
…ive PhysX tendons (#7161) # Description The Shadow Hand shipped as two assets, one per engine, with the PhysX tendons synthesised at spawn — a per-environment patch that never completed scene construction at 4096 envs. One asset now serves both, its `Physics` USD variant selecting the engine, with the four tendons authored natively. `set_fixed_tendon_position_target_index` / `_mask` on `BaseArticulation` let a task command a tendon without naming a backend. The spawn-time tendon writers are not used here: the asset carries its four tendons natively and runtime control goes through the tensor API. Their namespace fix and per-instance selection live in #7527. Both engines now spawn the hand at the asset's own pose. PhysX previously overrode `init_state` with an identity rotation, so its hand sat differently from Newton's; removing that override leaves one placement for both. The cube starts 98 mm from the fingertips instead of 132 mm, which is a task change, not a rendering one — **existing PhysX checkpoints are not comparable across this PR.** The two engines' variants are aligned to 0.00 mm on palm, ffdistal, thdistal, forearm and wrist. > [!NOTE] > **No dependency change — this runs on the pinned Newton 1.5.1 and `uv.lock` is untouched.** > [newton#4017](newton-physics/newton#4017) makes `ArticulationView` > generic over custom frequencies, but it was deliberately not backported to the 1.5 patch series, > so it arrives with 1.6. `mjc_view_compat.py` back-fills that surface on 1.5, which keeps the > tendon adapter written once against the 1.6 API instead of carrying two code paths. It is deleted by > **#7468**, which is held until the pinned Newton reaches 1.6. Fixes # (issue) ## Type of change - Bug fix (non-breaking change which fixes an issue) - New feature (non-breaking change which adds functionality) ## Release backport - [x] <!-- backport-active-release --> Backport this pull request to the active release branch after it merges into `develop` ## Validation Trained at each task's default environment count and iteration budget on Newton 1.5.1, through the compatibility shim: | task | success (mean last 20) | |---|---| | `Isaac-Shadow-Reorient` | 0.9617 | | `Isaac-Shadow-Reorient-Direct` | 0.9704 | | `Isaac-Shadow-Handover-Direct` | 1.0000 | | `Isaac-Shadow-Handover` | 0.8729 | On PhysX, the handover tasks completed ten of ten seeds at their default 2048 environments with no non-finite values. This PR redefines `success_rate` to test distance at episode end rather than latching on first contact, so these are not comparable with values recorded under the previous definition. Training budgets cut to the measured plateau: reorient 10000 → 3000, handover 5000 → 3500. Re-run at the shipping configuration on the current head, one arm per engine, task defaults: | task | engine | iters | success | |---|---|---|---| | `Isaac-Reorient-Cube-Shadow` | `newton_mjwarp` | 3000 | 0.9665 | | `Isaac-Reorient-Cube-Shadow` | `isaacsim_physx` | 3000 | 0.9083 | Suites across every touched package, all green: `isaaclab_physx` articulation 171, `isaaclab_newton` articulation 198, `isaaclab_ov` articulation 87 (cpu) + 84 (cuda), newton tendon control and reorient utils 21. The two fixed-tendon mask fixes each fail on the parent commit and pass on this one. ### Asset warnings measured against nvbug 6701561 That bug reports the Shadow Hand emitting 183 `material:binding` "outside the scope of the reference" warnings and 1225 `Failed to find rigid body ... /joints/robot0_forearm` warnings, one per environment. Running its own repro on `develop` reproduces both exactly; on this branch the rigid-body warnings are gone and the binding warnings drop to 90: | | `develop` | this PR | |---|---|---| | `outside the scope of the reference` | 183 (visual bindings) | 90 (physics bindings) | | `Failed to find rigid body .../robot0_forearm` | 1225 | 0 | The remaining 90 are a converter defect in the new asset, not a regression: the prototypes in `instances.usda` bind a stage-absolute physics material that USD cannot remap on reference, so it discards them. They are redundant — `base.usda` binds the same material at composed scope, and all 32 colliders resolve to it either way — so they are cosmetic. Removed from the published asset separately; that edit does not touch this PR. ## Rendering references The unified asset renders the hand in its own materials, so every baseline it feeds moved with it: the `isaaclab_visualizers` goldens, the `isaaclab_tasks` rendering goldens for `shadow_hand` and `registered_tasks/Isaac-Reorient-Cube-Shadow-Camera-Direct`, and that task's golden USD stage. Pixel references were taken from the rendering suites' own `comparison-images` artifacts rather than regenerated locally: they do not reproduce across GPU models, and a local L40 leaves the shaded outputs about nine percent different from the L40S the runners use while every geometric output matches exactly. ## Checklist - [x] I have read and understood the [contribution guidelines](https://isaac-sim.github.io/IsaacLab/main/source/refs/contributing.html) - [x] I have run the [`pre-commit` checks](https://pre-commit.com/) with `./isaaclab.sh --format` - [x] I have made corresponding changes to the documentation - [x] My changes generate no new warnings - [x] I have added tests that prove my fix is effective or that my feature works - [x] I have added a changelog fragment under `source/<pkg>/changelog.d/` for every touched package - [x] I have added my name to the `CONTRIBUTORS.md` or my name already exists there
…ive PhysX tendons (#7161) # Description The Shadow Hand shipped as two assets, one per engine, with the PhysX tendons synthesised at spawn — a per-environment patch that never completed scene construction at 4096 envs. One asset now serves both, its `Physics` USD variant selecting the engine, with the four tendons authored natively. `set_fixed_tendon_position_target_index` / `_mask` on `BaseArticulation` let a task command a tendon without naming a backend. The spawn-time tendon writers are not used here: the asset carries its four tendons natively and runtime control goes through the tensor API. Their namespace fix and per-instance selection live in #7527. Both engines now spawn the hand at the asset's own pose. PhysX previously overrode `init_state` with an identity rotation, so its hand sat differently from Newton's; removing that override leaves one placement for both. The cube starts 98 mm from the fingertips instead of 132 mm, which is a task change, not a rendering one — **existing PhysX checkpoints are not comparable across this PR.** The two engines' variants are aligned to 0.00 mm on palm, ffdistal, thdistal, forearm and wrist. > [!NOTE] > **No dependency change — this runs on the pinned Newton 1.5.1 and `uv.lock` is untouched.** > [newton#4017](newton-physics/newton#4017) makes `ArticulationView` > generic over custom frequencies, but it was deliberately not backported to the 1.5 patch series, > so it arrives with 1.6. `mjc_view_compat.py` back-fills that surface on 1.5, which keeps the > tendon adapter written once against the 1.6 API instead of carrying two code paths. It is deleted by > **#7468**, which is held until the pinned Newton reaches 1.6. Fixes # (issue) ## Type of change - Bug fix (non-breaking change which fixes an issue) - New feature (non-breaking change which adds functionality) ## Release backport - [x] <!-- backport-active-release --> Backport this pull request to the active release branch after it merges into `develop` ## Validation Trained at each task's default environment count and iteration budget on Newton 1.5.1, through the compatibility shim: | task | success (mean last 20) | |---|---| | `Isaac-Shadow-Reorient` | 0.9617 | | `Isaac-Shadow-Reorient-Direct` | 0.9704 | | `Isaac-Shadow-Handover-Direct` | 1.0000 | | `Isaac-Shadow-Handover` | 0.8729 | On PhysX, the handover tasks completed ten of ten seeds at their default 2048 environments with no non-finite values. This PR redefines `success_rate` to test distance at episode end rather than latching on first contact, so these are not comparable with values recorded under the previous definition. Training budgets cut to the measured plateau: reorient 10000 → 3000, handover 5000 → 3500. Re-run at the shipping configuration on the current head, one arm per engine, task defaults: | task | engine | iters | success | |---|---|---|---| | `Isaac-Reorient-Cube-Shadow` | `newton_mjwarp` | 3000 | 0.9665 | | `Isaac-Reorient-Cube-Shadow` | `isaacsim_physx` | 3000 | 0.9083 | Suites across every touched package, all green: `isaaclab_physx` articulation 171, `isaaclab_newton` articulation 198, `isaaclab_ov` articulation 87 (cpu) + 84 (cuda), newton tendon control and reorient utils 21. The two fixed-tendon mask fixes each fail on the parent commit and pass on this one. ### Asset warnings measured against nvbug 6701561 That bug reports the Shadow Hand emitting 183 `material:binding` "outside the scope of the reference" warnings and 1225 `Failed to find rigid body ... /joints/robot0_forearm` warnings, one per environment. Running its own repro on `develop` reproduces both exactly; on this branch the rigid-body warnings are gone and the binding warnings drop to 90: | | `develop` | this PR | |---|---|---| | `outside the scope of the reference` | 183 (visual bindings) | 90 (physics bindings) | | `Failed to find rigid body .../robot0_forearm` | 1225 | 0 | The remaining 90 are a converter defect in the new asset, not a regression: the prototypes in `instances.usda` bind a stage-absolute physics material that USD cannot remap on reference, so it discards them. They are redundant — `base.usda` binds the same material at composed scope, and all 32 colliders resolve to it either way — so they are cosmetic. Removed from the published asset separately; that edit does not touch this PR. ## Rendering references The unified asset renders the hand in its own materials, so every baseline it feeds moved with it: the `isaaclab_visualizers` goldens, the `isaaclab_tasks` rendering goldens for `shadow_hand` and `registered_tasks/Isaac-Reorient-Cube-Shadow-Camera-Direct`, and that task's golden USD stage. Pixel references were taken from the rendering suites' own `comparison-images` artifacts rather than regenerated locally: they do not reproduce across GPU models, and a local L40 leaves the shaded outputs about nine percent different from the L40S the runners use while every geometric output matches exactly. ## Checklist - [x] I have read and understood the [contribution guidelines](https://isaac-sim.github.io/IsaacLab/main/source/refs/contributing.html) - [x] I have run the [`pre-commit` checks](https://pre-commit.com/) with `./isaaclab.sh --format` - [x] I have made corresponding changes to the documentation - [x] My changes generate no new warnings - [x] I have added tests that prove my fix is effective or that my feature works - [x] I have added a changelog fragment under `source/<pkg>/changelog.d/` for every touched package - [x] I have added my name to the `CONTRIBUTORS.md` or my name already exists there (cherry picked from commit e0d2fe0)
Newton 1.6.0rc1 provides the ``mujoco:actuator`` custom-frequency API that the shim backfilled (newton-physics/newton#4017): ``custom_frequency_counts`` and ``custom_frequency_labels`` on the articulation view, and ``custom_frequency_articulation`` on the model. The pin moved to 1.6.0rc1 in isaac-sim#7445, so ``ensure_newton_custom_frequency_api`` already returned both arguments unchanged. The adapter now reads the view and model directly. Removes the shim and its tests; no other module referenced them.
71bfd16 to
8790f3c
Compare
|
run-ci |
There was a problem hiding this comment.
Isaac Lab Review Bot
The PR removes the private Newton 1.5 custom-frequency compatibility shim and updates the MuJoCo tendon adapter to use the native Newton articulation view and model directly. The changed call path remains coherent with the Newton 1.6 API expected by the adapter.
- Design and architecture: Removing the compatibility seam is consistent with its documented lifecycle: on Newton 1.6 the shim returned the original view and model unchanged. The adapter’s ownership and data-flow boundaries are therefore preserved while eliminating obsolete wrapping logic.
- API: The removed module and helper are underscore-private, and the supplied changes show no public export or interface migration requirement. The package changelog records the removal and explains that no user migration is needed.
- Implementation: The updated create() path passes articulation.root_view and the original model directly to resolve_fixed_tendon_actuator_columns(), then retains the same view for command allocation and attribute writes. The principal compatibility tradeoff is intentional: Newton 1.5 environments no longer receive the back-filled custom-frequency API.
No blocking issues. No inline issue met the actionable-evidence threshold; the assessment above records the review feedback.
Automated review; human maintainers own approval decisions.
Greptile SummaryThis PR removes the obsolete Newton 1.5 MuJoCo tendon compatibility layer after the repository moved to Newton 1.6.0rc1.
Confidence Score: 5/5The PR appears safe to merge because supported installations guarantee the required Newton API and no stale references to the deleted private shim remain. The changed call path uses the same view and model objects that the compatibility function already returned unchanged under the pinned Newton version, while existing integration coverage exercises native tendon control across cloned environments. Important Files Changed
Reviews (1): Last reviewed commit: "Drop the Newton 1.5 tendon-adapter shim" | Re-trigger Greptile |
Description
Removes the Newton 1.5 compatibility shim for the MuJoCo tendon adapter. The shim back-filled the
mujoco:actuatorcustom-frequency surface that newton#4017adds, so the adapter could be written once against the 1.6 API while the repository was still pinned
to 1.5. That pin moved to
newton[sim]==1.6.0rc1in #7445, so the shim now returns both of itsarguments unchanged on every call — dead code on the hot path of every Newton Shadow Hand run.
The adapter now reads the API directly off the articulation view and model. Verified present in
newton 1.6.0rc1:ArticulationView.custom_frequency_countsnewton/_src/utils/selection.py:1023ArticulationView.custom_frequency_labelsnewton/_src/utils/selection.py:1024ArticulationView.tendon_countnewton/_src/utils/selection.py:1107Model.custom_frequency_articulationnewton/_src/sim/builder.py:2351resolve_fixed_tendon_actuator_columns()already consumed exactly these, so the only change at thecall site is dropping the wrapper:
Deletes
physics/_mjwarp_view_compat.py(284 lines) andtest/physics/test_mjwarp_view_compat.py(134 lines). Nothing else in the repository referenced the module,
ensure_newton_custom_frequency_api,or
actuator_owner_rows.Type of change
Validation
test_mjwarp_tendon_control.py— 10 passed, unchanged from before the removal. The adapter'sown coverage is untouched by this PR; only the shim's own tests are deleted along with the shim.
Checklist
pre-commitchecks with./isaaclab.sh --formatsource/<pkg>/changelog.d/for every touched packageCONTRIBUTORS.mdor my name already exists there