Repository navigation
[Actuators] Use native Newton path by default - #7713
Conversation
There was a problem hiding this comment.
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
Trueas the default andFalseas 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 |
There was a problem hiding this comment.
🟡 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.
|
|
run-ci |
|
run-ci |
|
run-ci |
|
run-ci |
|
run-ci |
…-fixes # Conflicts: # source/isaaclab_tasks/test/golden_stages/registered_tasks_Isaac-Reorient-Cube-Shadow-Camera-Direct/default_physics-default_renderer-stage.usda
|
run-ci |
# 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]>
…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
Description
This changes
SimulationCfg.use_newton_actuatorstoTrueby default ondevelop. 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=Falseto 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.5dependency update.Type of change
Release backport
developScreenshots
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 -fChecklist
uv run isaaclab -fsource/isaaclab/changelog.d/CONTRIBUTORS.md