Skip to content

[Tests] Test PhysX joint effort application - #7924

Merged
ooctipus merged 2 commits into
isaac-sim:developfrom
StafaH:fix/physx-joint-effort-targets
Sep 20, 2026
Merged

ooctipus merged 2 commits into
isaac-sim:developfrom
StafaH:fix/physx-joint-effort-targets

Conversation

@StafaH

@StafaH StafaH commented Sep 20, 2026 •

Copy link
Copy Markdown
Collaborator

Description

Extend the existing PhysX effort-limit integration test to verify that a staged joint effort reaches the solver and produces joint motion. The existing test already creates a single-joint articulation for both CPU and CUDA and for configured/USD-authored effort limits. It now neutralizes the implicit PD target, applies +10 N·m, advances one physics step, and verifies the joint accelerates.

Issue #7601 reported that Isaac Sim 6.0.x accepted the effort tensor but silently failed to apply it in the PhysX solver. The Isaac Lab-side staging buffers were already correct, so changing actuator bookkeeping or emulating joint forces with body wrenches would hide the simulator defect and alter articulation semantics. PR #7685 upgraded both develop and release/3.0.0 to Isaac Sim 6.1, where the reported PhysX reproduction now moves correctly. This assertion covers the previously missing observable behavior so a tensor-backend regression cannot pass by updating buffers alone.

The behavioral check reuses all existing simulation contexts and adds only one physics step per existing case. Measured aggregate test-call overhead is approximately 0.05 seconds; it adds no new test cases or simulator setup/teardown cycles.

Fixes #7601

Type of change

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

Release backport

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

Screenshots

Not applicable.

Validation

  • uv run --extra isaacsim python -m pytest source/isaaclab_physx/test/assets/test_articulation.py -k test_setting_effort_limit_writes_to_solver -q --durations=0 (4 passed: CPU/CUDA × configured/USD effort limit)
  • uv run isaaclab -f
  • uv run python tools/changelog/cli.py check <current-upstream-base>
  • Re-ran the issue's constant-effort Cartpole scenario with physics=isaacsim_physx on Isaac Sim 6.1; the cart responds immediately and continues moving under the command.

Checklist

  • I have read and understood the contribution guidelines
  • I have run the pre-commit checks with uv run isaaclab -f
  • Documentation changes are not needed for test-only regression coverage
  • My changes generate no new warnings
  • I have added tests that prove the fix is effective
  • I have added a changelog fragment under source/isaaclab_physx/changelog.d/
  • My name already exists in CONTRIBUTORS.md

@StafaH
StafaH requested a review from a team September 20, 2026 17:48
@github-actions github-actions Bot added bug Something isn't working isaac-lab Related to Isaac Lab team labels Sep 20, 2026
@greptile-apps

greptile-apps Bot commented Sep 20, 2026

Copy link
Copy Markdown
Contributor

RetriggerConfidence Score: 5/5

The PR appears safe to merge; the new regression test exercises the intended native PhysX effort path without changing production behavior.

Summary

This PR adds end-to-end regression coverage ensuring PhysX joint-effort targets produce observable motion rather than merely updating staging buffers.

  • Creates two identically initialized Cartpole articulations with gravity disabled.
  • Applies a positive cart-joint effort to one articulation while leaving the control uncommanded.
  • Verifies motion of the commanded joint and isolation of the control articulation.
  • Adds the corresponding changelog fragment.

Diagram

%%{init: {'theme': 'neutral'}}%%
flowchart LR
    A[Initialize two Cartpoles at rest] --> B[Stage +50 N for Cartpole 0]
    A --> C[Stage 0 N for Cartpole 1]
    B --> D[Write commands to PhysX]
    C --> D
    D --> E[Step simulation four times]
    E --> F{Inspect cart velocities}
    F --> G[Commanded cart velocity > 0.1]
    F --> H[Control cart velocity remains zero]
Loading

Reviews (1) · Last reviewed commit: "Test PhysX joint effort application"

@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

Adds focused end-to-end PhysX regression coverage showing that a staged joint effort moves only the commanded Cartpole articulation, plus a package-local .skip changelog fragment.

  • Design and architecture: The test is colocated with existing PhysX articulation effort tests and exercises the established staging, simulation-step, and observation path. A second identical articulation provides a zero-effort control without changing production architecture or backend boundaries.
  • API: No public APIs, configuration fields, defaults, exports, or return types change. The test uses the existing exported CARTPOLE_CFG and established articulation interfaces.
  • Implementation: The test initializes both articulations at rest, disables gravity, applies effort only to the first cart slider, and checks commanded motion against a stationary control across configured devices. The fixed > 0.1 motion threshold is tied to the current timestep and Cartpole properties, but this is a non-blocking maintenance tradeoff for the targeted regression.

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.

@StafaH StafaH changed the title Test PhysX joint effort application [Tests] Test PhysX joint effort application Sep 20, 2026
@StafaH

StafaH commented Sep 20, 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 20, 2026
@ooctipus
ooctipus merged commit b8e83fd into isaac-sim:develop Sep 20, 2026
53 checks passed
@isaaclab-bot

isaaclab-bot Bot commented Sep 20, 2026

Copy link
Copy Markdown
Contributor

Backported to release/3.0.0 as 892e51d.

isaaclab-bot Bot pushed a commit that referenced this pull request Sep 20, 2026
# Description

Extend the existing PhysX effort-limit integration test to verify that a
staged joint effort reaches the solver and produces joint motion. The
existing test already creates a single-joint articulation for both CPU
and CUDA and for configured/USD-authored effort limits. It now
neutralizes the implicit PD target, applies +10 N·m, advances one
physics step, and verifies the joint accelerates.

Issue #7601 reported that Isaac Sim 6.0.x accepted the effort tensor but
silently failed to apply it in the PhysX solver. The Isaac Lab-side
staging buffers were already correct, so changing actuator bookkeeping
or emulating joint forces with body wrenches would hide the simulator
defect and alter articulation semantics. PR #7685 upgraded both
`develop` and `release/3.0.0` to Isaac Sim 6.1, where the reported PhysX
reproduction now moves correctly. This assertion covers the previously
missing observable behavior so a tensor-backend regression cannot pass
by updating buffers alone.

The behavioral check reuses all existing simulation contexts and adds
only one physics step per existing case. Measured aggregate test-call
overhead is approximately 0.05 seconds; it adds no new test cases or
simulator setup/teardown cycles.

Fixes #7601

## 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`

## Screenshots

Not applicable.

## Validation

- `uv run --extra isaacsim python -m pytest
source/isaaclab_physx/test/assets/test_articulation.py -k
test_setting_effort_limit_writes_to_solver -q --durations=0` (4 passed:
CPU/CUDA × configured/USD effort limit)
- `uv run isaaclab -f`
- `uv run python tools/changelog/cli.py check <current-upstream-base>`
- Re-ran the issue's constant-effort Cartpole scenario with
`physics=isaacsim_physx` on Isaac Sim 6.1; the cart responds immediately
and continues moving under the command.

## Checklist

- [x] I have read and understood the contribution guidelines
- [x] I have run the pre-commit checks with `uv run isaaclab -f`
- [x] Documentation changes are not needed for test-only regression
coverage
- [x] My changes generate no new warnings
- [x] I have added tests that prove the fix is effective
- [x] I have added a changelog fragment under
`source/isaaclab_physx/changelog.d/`
- [x] My name already exists in `CONTRIBUTORS.md`

(cherry picked from commit b8e83fd)
@StafaH
StafaH deleted the fix/physx-joint-effort-targets branch September 21, 2026 02:23
ooctipus added a commit that referenced this pull request Sep 21, 2026
…7530, #7899) (#7926)

## Description

Backports the two changes merged into `develop` since September 19 that
are still missing from `release/3.0.0`:

| Source PR | Change | Source commit |
| --- | --- | --- |
| #7530 | Validate camera outputs against renderer capabilities before
simulator startup | `31d1c53510490c76841e9c35a329574b357d9900` |
| #7899 | Share native resources by construction cfg and centralize
ownership and teardown | `c90c3a1097a0a669a823b880b1c8d0654d7fd267` |

Includes the original regression tests, API documentation, and changelog
fragments. #7530 applied without changes. #7899 required two conflict
resolutions to retain the release branch's OVRTX mapping API,
documentation, and tests. Of its 62 files, 59 match the merged source
exactly; the other three retain those existing release additions.
Release versions, lockfile entries, compiled changelogs, and
documentation routing are preserved.

## Audit

Checked all **33 PRs** merged from September 19, 2026 00:00
America/Los_Angeles through `develop` commit `c90c3a1097` (September 20,
21:29 Pacific), against release base `75e9c8ce12`. **31 are already
backported; the remaining two are included here.** Git first-parent
history and GitHub's merged PR list agree. Automatic changelog/version
compilation remains branch-specific.

<details>
<summary>31 PRs already recorded in release</summary>

| Source PRs | Existing release commit |
| --- | --- |
| #7777, #7608, #7895, #7872, #7831, #7834, #7838, #7840, #7903, #7674 |
[`ff22c52891`](ff22c52)
|
| #7886 |
[`41bfaee5f0`](41bfaee)
|
| #7042 |
[`970d21ef48`](970d21e)
|
| #7905 |
[`f0563d1f9e`](f0563d1)
|
| #7604 |
[`dca7cfe984`](dca7cfe)
|
| #7610, #7603 |
[`5dd2220243`](5dd2220)
|
| #7839 |
[`b8b93bb96e`](b8b93bb)
|
| #6851 |
[`baa025ad90`](baa025a)
|
| #7250 |
[`f86b33e6b1`](f86b33e)
|
| #7910 |
[`24f7b4842b`](24f7b48)
|
| #7810 |
[`9738e096c8`](9738e09)
|
| #7832 |
[`be270ed88b`](be270ed)
|
| #4679 |
[`80157aa22d`](80157aa)
|
| #7914 |
[`01b59b5a22`](01b59b5)
|
| #7502 |
[`db7db61f60`](db7db61)
|
| #7918 |
[`bca9dba8bb`](bca9dba)
|
| #7919 |
[`ef1514c97c`](ef1514c)
|
| #7922 |
[`7d6979a19e`](7d6979a)
|
| #7923 |
[`a1dd560b98`](a1dd560)
|
| #7924 |
[`892e51dc1d`](892e51d)
|
| #7925 |
[`75e9c8ce12`](75e9c8c)
|

</details>

## Validation

**745 tests passed** on the combined backport:

- Core registry, configclass, replication, camera contracts, and task
presets: 158 passed.
- Newton manager/model/reset and coupling suites: 299 passed.
- OVPhysX/OVRTX lifecycle, scene data, bindings, and material contracts:
141 passed on CPU.
- Clone-plan algebra: 83 passed.
- All 8 OV CUDA cases skipped in the CPU run: 8 passed on GPU.
- OVPhysX ray-caster regression: 1 passed.
- Kit simulation-context and PhysX scene-data tests: 54 passed.
- Newton solver reset integration: 1 passed.

The registry-identity and borrowed-config-field regressions both fail
with the pre-backport implementations and pass with this change.
Backport file-scope validation, source-file comparison, `git diff
--check`, and `uv run isaaclab -f` passed.

Local validation used PyTorch 2.12.0/CUDA 13.0, Isaac Sim 6.0.1.0,
Newton 1.6.0rc1, and an RTX 5090. Existing deprecation/runtime warnings
occurred. Full Docker CI is requested separately against the pinned
environment; local checks do not claim a startup or runtime speedup.

## Checklist

- [x] Read the contribution guidelines and ran formatting/changelog
checks.
- [x] Included source tests, documentation, and changelog fragments.
- [x] Verified regression behavior and preserved release-specific
changes.
- [x] Recorded source commit hashes and audited the requested merge
window.

---------

Co-authored-by: Antoine RICHARD <[email protected]>
Co-authored-by: ooctipus <[email protected]>
ooctipus added a commit that referenced this pull request Sep 24, 2026
…ng docs (#7957)

Backports the three changes from the September 20–23 `develop` audit
that are missing from `release/3.0.0`, alongside the existing
cloning-guide backport:

- #7722 (`4cf439dfeb`): reject a second `SimulationContext` construction
instead of silently discarding its configuration. Includes the original
fixture cleanup and regression coverage.
- #7893 (`22fcd71bc4`): validate DelayBuffer lag values before mutating
its live configuration.
- #7947 (`6e9ef17f59`): make `v3.0.0-EA` the default documentation
version in deployment and local multi-version builds.
- #7129 (`354168560f`): clarify that `replicate_physics=False` skips the
active physics context while other declared replication contexts still
run.

**Compatibility:** repeated `SimulationContext(...)` calls now raise.
Retrieve the live context with `SimulationContext.instance()`, or call
`clear_instance()` before constructing a replacement. The original major
changelog fragment includes this migration.

The runtime and test files match current `develop`. The docs-default
backport adapts the release branch's existing redirect template,
validates the target page, and preserves explicit overrides. The
cloning-guide backport preserves the current release APIs; its obsolete
sections were already removed.

## Release audit

Checked all **35 PRs** merged into `develop` from **2026-09-20 16:43:18
UTC** through `cff81e8473` (September 23), against release head
`5d3e0b695e`. **32 are already covered; the remaining three are included
here.** Git history, patch equivalence, GitHub's merged PR list, and
remaining file differences were checked. Branch-specific
version/changelog compilation and existing release-only changes are
preserved.

<details>
<summary>Already covered PRs</summary>

26 have an equivalent patch in release: #7919, #7922, #7923, #7924,
#7925, #6758, #7928, #7902, #7927, #7891, #7931, #7691, #7861, #7929,
#7916, #7939, #4609, #7942, #7940, #7948, #7937, #7955, #7960, #7961,
#7970, #7958.

Six were squash-merged or adapted: #7530 and #7899 in #7926; #7637 in
#7933; #7860 in #7936; #7954 and #7950 in #7964. Their implementation
differences were checked against the current release tree.

</details>

## Validation

- **276 tests passed**: SimulationContext (51, including CPU/CUDA),
headless context construction (15), nine schema/fragment suites (165),
four manager suites (38), and DelayBuffer (7).
- Both backported regressions reproduce with the original release
implementations.
- Docs redirect recipe: local/deployment EA defaults, explicit override,
and missing-target rejection passed with a stubbed Sphinx builder.
- All 22 changed files match the intended backport scope; `uv run
isaaclab -f` and `git diff --check` passed.
- Fresh Sphinx validation (`-b dummy -W --keep-going`): passed without
warnings, excluding static assets as the HTML builder does. Full HTML
documentation CI is running.

Local runtime validation used PyTorch 2.12.0, CUDA 13.0, Isaac Sim
6.0.1.0, and an RTX 5090. Existing runtime/deprecation warnings
occurred; the CI jobs validate the pinned environments.

The previous [docs CI
failure](https://github.com/isaac-sim/IsaacLab/actions/runs/35795116307/job/106972539281)
was an external connection reset fetching the Omniverse intersphinx
inventory, producing one warning under `-W`. That URL returned HTTP 200
when rechecked. This update starts a fresh docs build.

---------

Co-authored-by: hujc <[email protected]>
Co-authored-by: Zihan Xu <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working isaac-lab Related to Isaac Lab team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug][PhysX backend] Joint effort targets silently not applied on isaacsim 6.0.1.0 (Newton backend works)

2 participants