Skip to content

[Actuators] Use native Newton path by default - #7713

Merged
kellyguo11 merged 8 commits into
isaac-sim:developfrom
kellyguo11:kellyg/default-newton-actuators
Sep 10, 2026
Merged

kellyguo11 merged 8 commits into
isaac-sim:developfrom
kellyguo11:kellyg/default-newton-actuators

Conversation

@kellyguo11

@kellyguo11 kellyguo11 commented Sep 10, 2026 •

Copy link
Copy Markdown
Contributor

Description

This changes SimulationCfg.use_newton_actuators to True by default on develop. Supported explicit actuator models now use the native Newton actuator path by default: Newton executes them in the solver, while PhysX and OVPhysX use the shared host adapter.

Users can set use_newton_actuators=False to restore the deprecated Isaac Lab actuator execution path. The configuration documentation, actuator guide, focused default test, and changelog fragment are updated together.

This is the actuator-side change split from #7709. That release PR now contains only the Newton release-1.5 dependency update.

Type of change

  • Behavior change (native actuator execution is now the default)
  • Documentation update

Release backport

  • Backport this pull request to the active release branch after it merges into develop

Screenshots

Not applicable.

Validation

  • uv run --extra test python -m pytest source/isaaclab/test/actuators/test_newton_adapter.py (10 passed)
  • uv sync --extra dev && PATH="$PWD/.venv/bin:$PATH" make -C docs current-docs (warning-free)
  • uv run isaaclab -f

Checklist

  • I have read and understood the contribution guidelines
  • I have run the pre-commit checks with uv run isaaclab -f
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added a test that proves the new default and explicit opt-out
  • I have added a changelog fragment under source/isaaclab/changelog.d/
  • My name already exists in CONTRIBUTORS.md

@kellyguo11
kellyguo11 requested a review from a team September 10, 2026 00:42
@github-actions github-actions Bot added documentation Improvements or additions to documentation isaac-lab Related to Isaac Lab team labels Sep 10, 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

The default switch to native Newton actuators is implemented consistently across configuration, tests, and documentation, but the changelog does not clearly identify the resulting compatibility break or its concrete behavioral consequences.

  • Design and architecture: The change is contained to the execution-path default and preserves the deprecated Isaac Lab path through use_newton_actuators=False. The actuator guide consistently describes native execution across Newton, PhysX, and OVPhysX.
  • API: Although the field name and type remain unchanged, configurations that omit it now enter a path that can reject unsupported explicit actuator configs, expose Newton actuator objects through robot.actuators[name], and alter delayed-actuator behavior. These breaking effects need to be clearly marked in the changelog with the existing opt-out as migration guidance.
  • Implementation: The configuration default, docstring, guide, and focused test consistently establish True as the default and False as the opt-out. The changelog fragment is correctly located and written in past tense, but it only states the default flip and omits the documented compatibility impacts required for a breaking-change entry.

Minor fixes needed. Posted 1 actionable finding inline.

Automated review; human maintainers own approval decisions.

Changed
^^^^^^^

* Changed :attr:`~isaaclab.sim.SimulationCfg.use_newton_actuators` to ``True`` by default so

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.

🟡 Warning · Api — Changelog omits breaking impact of default flip

The fragment records only the flag flip, but per this PR's own actuator guide the new default makes unsupported explicit actuator configs raise before authoring, changes robot.actuators[name] to return a Newton Actuator object instead of an Isaac Lab model, and drops DelayedPDActuator delay randomization since min_delay is ignored. Repository rules require breaking changes to be marked clearly; classify this as breaking and list those consequences alongside the existing opt-out guidance.

@greptile-apps

greptile-apps Bot commented Sep 10, 2026

Copy link
Copy Markdown
Contributor

RetriggerConfidence Score: 5/5

The PR appears safe to merge, with the intentional compatibility changes and known native-path limitations documented alongside an explicit opt-out.

Summary

  • Changes SimulationCfg.use_newton_actuators from False to True.
  • Updates the actuator guide and changelog with backend behavior, supported-model constraints, and opt-out guidance.
  • Adds focused coverage for the new default and explicit legacy-path selection.

Reviews (1) · Last reviewed commit: "Use Newton actuators by default"

@kellyguo11

Copy link
Copy Markdown
Contributor 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 10, 2026
@kellyguo11
kellyguo11 requested a review from hujc7 as a code owner September 10, 2026 03:37
@kellyguo11

Copy link
Copy Markdown
Contributor 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 10, 2026
kellyguo11 added a commit that referenced this pull request Sep 10, 2026
Reverts #7709

The corresponding actuator update PR #7713 has many failing tests
@AntoineRichard

Copy link
Copy Markdown
Collaborator

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 10, 2026
@AntoineRichard

Copy link
Copy Markdown
Collaborator

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 10, 2026
@AntoineRichard

Copy link
Copy Markdown
Collaborator

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 10, 2026
…-fixes

# Conflicts:
#	source/isaaclab_tasks/test/golden_stages/registered_tasks_Isaac-Reorient-Cube-Shadow-Camera-Direct/default_physics-default_renderer-stage.usda
@AntoineRichard

Copy link
Copy Markdown
Collaborator

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 10, 2026
@kellyguo11
kellyguo11 merged commit cdb244d into isaac-sim:develop Sep 10, 2026
57 of 58 checks passed
@kellyguo11 kellyguo11 mentioned this pull request Sep 10, 2026
7 tasks done
kellyguo11 added a commit that referenced this pull request Sep 10, 2026
# Description

Backports #7713 to `release/3.0.0`.

This changes `SimulationCfg.use_newton_actuators` to `True` by default.
Supported explicit actuator models use the native Newton actuator path
by default, while users can set `use_newton_actuators=False` to restore
the deprecated Isaac Lab execution path.

The six substantive source commits were cherry-picked in order. A
focused follow-up commit reconciles the actuator golden images with
visualizer/background and Shadow Hand updates already present on the
release branch. No new dependencies are required.

## Type of change

- Breaking change (the default actuator execution path changes; the
legacy path remains available through `use_newton_actuators=False`)
- Documentation update

## Release backport

This pull request is the `release/3.0.0` backport of #7713.

## Screenshots

Not applicable.

## Validation

- `python3 -m uv run --python 3.12 --no-project ... python -m pytest -q
source/isaaclab/test/actuators/test_newton_adapter.py` (10 passed)
- `python3 -m uv run --python 3.12 --no-project ... python -m pytest -q
source/isaaclab_newton/test/physics/test_newton_manager_abstraction.py::test_clear_resets_rigid_body_force_capability`
(1 passed)
- Release-relative pre-commit checks on all 25 changed files, including
changelog and Git LFS pointer validation (passed)
- `git diff --check upstream/release/3.0.0..HEAD` (passed)
- The full documentation build was not repeated because the root
lockfile excludes macOS. The original PR reported a warning-free
documentation build.

## 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
- [x] I have made corresponding changes to the documentation
- [x] My changes generate no new warnings in the checks run locally
- [x] I have added tests that prove the behavior
- [x] I have added a changelog fragment under
`source/<pkg>/changelog.d/` for every touched package
- [x] My name already exists in `CONTRIBUTORS.md`

---------

Co-authored-by: Antoine Richard <[email protected]>
kellyguo11 pushed a commit that referenced this pull request Sep 16, 2026
…7800)

# Description

Fixes the AnymalD / OVPhysX env-step regression introduced when #7713
made the native Newton actuator path the default (perf team repro: 16384
envs, 47 → 256 ms per env step, GPU utilization 65% → 12%; bisected to
`cdb244d1`).

**Root cause.** `PhysxActuatorRuntime._run_native_actuator_kernels`
launches `sync_torque_telemetry` with `data.joint_stiffness`,
`data.joint_damping` and `data.joint_effort_limits` every physics step.
On OVPhysX those are CPU-only bindings whose getters were gated on the
simulation timestamp, so each access was a blocking `TensorBinding.read`
into pinned host staging plus an H2D copy — three host round-trips per
physics step, re-fired every step because `update()` bumps the
timestamp, with cost linear in the environment count (measured 0.35 ms
at 256 envs, 1.07 ms at 1024; extrapolates to ~15 ms per physics step at
16384). PhysX returns cached views and the Isaac Lab actuator path only
reads gains for implicit actuators, which is why only OVPhysX × native
regressed.

The LSTM itself is on the GPU throughout (`DriveNeuralLSTM` reports
`warp_device=cuda:0 torch_device=cuda:0`); the regression is host-side.

**Fix.** Joint properties (gains, limits, armature, friction) and body
mass/inertia are static under stepping, and their `write_*` / `set_*`
setters already update the data buffers in place before pushing to the
wheel. They are now read through the existing
`_read_static_binding_into_buf` gate — once after explicit invalidation
— instead of once per step. Body state buffers (poses, velocities,
accelerations) keep the per-step refresh. Tendon properties are left
unchanged (GPU-resident; separate writers) and can follow in a later PR.

**Measured (laptop RTX 5000 Ada, `isaaclab benchmark runtime`,
`Isaac-Velocity-Flat-AnymalD`, `physics=ovphysx`, 1024 envs, 100
steps):**

| | native actuators, before | native actuators, after | Isaac Lab
actuators |
| --- | --- | --- | --- |
| env step | 22–30 ms (unstable) | **14 ms, std 0** | 14–15 ms |
| actuator step / physics step (median) | 2.0–2.4 ms | **0.94 ms** |
0.75 ms |
| gain/limit getters / physics step | 1.07 ms (3 blocking reads) | 0.01
ms | n/a |

Regression test
`test_static_property_reads_are_not_invalidated_by_simulation_steps`
asserts one binding read across several steps for joint and body
properties, one more after explicit invalidation, per-step refresh for
state buffers, and the joint-ordering gather path. It fails on `develop`
(`assert 3 == 1`) and passes with this change.

Fixes # (perf team regression report; no issue filed yet)

## Type of change

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

## Release backport

- [x] <!-- backport-active-release --> Backport this pull request to the
active release branch after it merges into `develop`

## 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`
- [ ] 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 (do **not** edit
`CHANGELOG.rst` or bump `extension.toml` — CI handles that)
- [x] I have added my name to the `CONTRIBUTORS.md` or my name already
exists there
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation isaac-lab Related to Isaac Lab team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants