Skip to content

[Task Clean-up][Assets] Drop the Newton 1.5 tendon-adapter shim - #7468

Merged
hujc7 merged 1 commit into
isaac-sim:developfrom
hujc7:jichuanh/shadow-shim-removal
Sep 10, 2026
Merged

hujc7 merged 1 commit into
isaac-sim:developfrom
hujc7:jichuanh/shadow-shim-removal

Conversation

@hujc7

@hujc7 hujc7 commented Sep 1, 2026 •

Copy link
Copy Markdown
Collaborator

Description

Removes the Newton 1.5 compatibility shim for the MuJoCo tendon adapter. The shim back-filled the
mujoco:actuator custom-frequency surface that newton#4017
adds, 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.0rc1 in #7445, so the shim now returns both of its
arguments 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:

Symbol Location
ArticulationView.custom_frequency_counts newton/_src/utils/selection.py:1023
ArticulationView.custom_frequency_labels newton/_src/utils/selection.py:1024
ArticulationView.tendon_count newton/_src/utils/selection.py:1107
Model.custom_frequency_articulation newton/_src/sim/builder.py:2351

resolve_fixed_tendon_actuator_columns() already consumed exactly these, so the only change at the
call site is dropping the wrapper:

-        view, model = ensure_newton_custom_frequency_api(articulation.root_view, model)
+        view = articulation.root_view

Deletes physics/_mjwarp_view_compat.py (284 lines) and test/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

  • Bug fix (non-breaking change which fixes an issue)

Validation

test_mjwarp_tendon_control.py — 10 passed, unchanged from before the removal. The adapter's
own coverage is untouched by this PR; only the shim's own tests are deleted along with the shim.

uv run --frozen --extra test pytest source/isaaclab_newton/test/physics/test_mjwarp_tendon_control.py
10 passed in 5.49s

Checklist

  • I have read and understood the contribution guidelines
  • I have run the pre-commit checks with ./isaaclab.sh --format
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • I have added a changelog fragment under source/<pkg>/changelog.d/ for every touched package
  • I have added my name to the CONTRIBUTORS.md or my name already exists there

@github-actions github-actions Bot added the asset New asset feature or request label Sep 1, 2026
kellyguo11 pushed a commit that referenced this pull request Sep 5, 2026
…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
isaaclab-bot Bot pushed a commit that referenced this pull request Sep 5, 2026
…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.
@hujc7
hujc7 force-pushed the jichuanh/shadow-shim-removal branch from 71bfd16 to 8790f3c Compare September 6, 2026 06:46
@github-actions github-actions Bot added the isaac-lab Related to Isaac Lab team label Sep 6, 2026
@hujc7

hujc7 commented Sep 6, 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 Sep 6, 2026
@hujc7
hujc7 marked this pull request as ready for review September 6, 2026 06:48
@hujc7
hujc7 requested a review from a team September 6, 2026 06:48

@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

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-apps

greptile-apps Bot commented Sep 6, 2026

Copy link
Copy Markdown
Contributor

Greptile Summary

This PR removes the obsolete Newton 1.5 MuJoCo tendon compatibility layer after the repository moved to Newton 1.6.0rc1.

  • Uses the articulation view and model’s native custom-frequency API directly.
  • Deletes the compatibility implementation and its dedicated tests.
  • Adds a changelog fragment documenting the internal cleanup and version requirement.

Confidence Score: 5/5

The 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

Filename Overview
source/isaaclab_newton/isaaclab_newton/physics/mjwarp_tendon_control.py Replaces the now-no-op compatibility wrapper with direct access to the articulation root view.
source/isaaclab_newton/isaaclab_newton/physics/_mjwarp_view_compat.py Deletes the private Newton 1.5 custom-frequency API compatibility implementation.
source/isaaclab_newton/test/physics/test_mjwarp_view_compat.py Removes tests specific to the deleted compatibility implementation.
source/isaaclab_newton/changelog.d/jichuanh-drop-newton15-tendon-shim.minor.rst Documents removal of the internal shim following the Newton 1.6.0rc1 pin.

Reviews (1): Last reviewed commit: "Drop the Newton 1.5 tendon-adapter shim" | Re-trigger Greptile

@hujc7
hujc7 merged commit 56c0fe6 into isaac-sim:develop Sep 10, 2026
54 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

asset New asset feature or request isaac-lab Related to Isaac Lab team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants