Skip to content

Fix PhysX scene data joint name collisions - #7358

Merged
kellyguo11 merged 1 commit into
isaac-sim:developfrom
ooctipus:codex/fix-physx-joint-wildcards
Aug 26, 2026
Merged

kellyguo11 merged 1 commit into
isaac-sim:developfrom
ooctipus:codex/fix-physx-joint-wildcards

Conversation

@ooctipus

Copy link
Copy Markdown
Collaborator

Description

Fix repeated Failed to find rigid body warnings when a PhysX simulation is synchronized to a Newton visualizer and rigid-body prims share leaf names with USD joint prims.

PhysxSceneDataBackend.get_rigid_body_view() previously skipped joint prims before collecting non-rigid name collisions. This allowed same-named rigid bodies, such as the Ant leg and foot bodies, to be compressed into PhysX wildcard expressions that could also resolve the corresponding prims under Robot/joints.

Joint prims are now excluded from the rigid-body candidates while still participating in collision detection. Same-named bodies therefore use exact paths, while bodies without collisions retain wildcard compaction.

The regression test covers both ordinary joints and joints with RigidBodyAPI, and verifies that an unrelated body still uses a wildcard.

Reported with Isaac Sim 6.1.0-rc9 and Isaac Lab release/3.0.0 at bb0c8e1 using:

uv run --extra isaacsim,all,rlinf,mimic,teleop,tetrahedralization,video,leapp \
  python scripts/environments/zero_agent.py --task Isaac-Ant --num_envs 128 \
  presets=physx --visualizer newton

Related to #5935 and #6041.

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

Testing

  • Relevant pre-commit formatting, lint, spelling, license, and RST hooks passed.
  • isaaclab_physx changelog compilation dry-run passed.
  • A direct red/green path-selection check confirmed that the baseline emits the unsafe wildcard and the patch emits the exact collision path for both joint variants while preserving safe wildcard compaction.
  • The focused pytest module was collected but skipped locally because omni.physics.tensors requires Kit startup. Full Kit startup was not run because the isolated environment requested interactive NVIDIA EULA acceptance.

Screenshots

Not applicable.

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 (not applicable; no public API or workflow changed)
  • 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

@ooctipus
ooctipus requested a review from a team August 26, 2026 10:01
@github-actions github-actions Bot added bug Something isn't working isaac-lab Related to Isaac Lab team labels Aug 26, 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

Reviewed the PhysX scene-data rigid-body path-selection change. Joint prims remain excluded from rigid-body candidates but now contribute leaf names to collision detection, causing same-named bodies to use exact paths while unrelated bodies retain wildcard compaction.

  • Design and architecture: The change minimally relocates joint exclusion into the rigid-body candidate condition, allowing joints to reach the existing non-rigid collision branch. Collision names are collected before compaction, so traversal order does not affect path selection. Existing caching and invalidation behavior remains unchanged.
  • API: get_rigid_body_view() retains its signature, return type, and existing None behavior. No public symbols or workflows change, and the package includes an appropriately scoped, past-tense changelog fragment.
  • Implementation: The parametrized regression test covers joints both with and without RigidBodyAPI, verifies exact-path selection for the colliding body, and confirms wildcard compaction remains for an unrelated body. The intended tradeoff is that joint-name collisions expand affected bodies into per-environment exact paths, increasing the submitted path list with environment count; this follows the existing collision-handling design.

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 Aug 26, 2026

Copy link
Copy Markdown
Contributor

Greptile Summary

This PR fixes PhysX scene-data rigid-body selection when rigid bodies share leaf names with USD joints, preventing unsafe wildcard expressions from resolving joint prims during Newton visualization.

  • Keeps joints out of rigid-body candidates while including their names in collision detection.
  • Uses exact paths for colliding rigid bodies and preserves wildcard compaction for unrelated bodies.
  • Adds parameterized regression coverage for ordinary joints and joints carrying RigidBodyAPI, plus a changelog fragment.

Confidence Score: 5/5

The PR appears safe to merge with no actionable correctness, security, or quality issues identified.

The traversal retains all rigid bodies, excludes joints from rigid-body candidates, and consistently switches same-named bodies to exact paths while tests cover both relevant joint schema variants and unaffected wildcard compaction.

Important Files Changed

Filename Overview
source/isaaclab_physx/isaaclab_physx/physics/physx_manager.py Joint prims now participate in leaf-name collision detection without being passed to PhysX rigid-body views.
source/isaaclab_physx/test/sim/test_physx_scene_data_backend.py Regression coverage verifies exact paths for both joint variants and retained wildcard compaction for an unrelated body.
source/isaaclab_physx/changelog.d/fix-scene-data-joint-name-collisions.rst Documents the corrected rigid-body view resolution behavior.

Reviews (1): Last reviewed commit: "Fix PhysX scene data joint name collisio..." | Re-trigger Greptile

@kellyguo11
kellyguo11 merged commit 1aa0a09 into isaac-sim:develop Aug 26, 2026
47 of 49 checks passed
@isaaclab-bot

isaaclab-bot Bot commented Aug 26, 2026

Copy link
Copy Markdown
Contributor

Backported to release/3.0.0 as 3c8bad3.

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

Fix repeated `Failed to find rigid body` warnings when a PhysX
simulation is synchronized to a Newton visualizer and rigid-body prims
share leaf names with USD joint prims.

`PhysxSceneDataBackend.get_rigid_body_view()` previously skipped joint
prims before collecting non-rigid name collisions. This allowed
same-named rigid bodies, such as the Ant leg and foot bodies, to be
compressed into PhysX wildcard expressions that could also resolve the
corresponding prims under `Robot/joints`.

Joint prims are now excluded from the rigid-body candidates while still
participating in collision detection. Same-named bodies therefore use
exact paths, while bodies without collisions retain wildcard compaction.

The regression test covers both ordinary joints and joints with
`RigidBodyAPI`, and verifies that an unrelated body still uses a
wildcard.

Reported with Isaac Sim 6.1.0-rc9 and Isaac Lab `release/3.0.0` at
`bb0c8e1` using:

```bash
uv run --extra isaacsim,all,rlinf,mimic,teleop,tetrahedralization,video,leapp \
  python scripts/environments/zero_agent.py --task Isaac-Ant --num_envs 128 \
  presets=physx --visualizer newton
```

Related to #5935 and #6041.

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

## Testing

- Relevant pre-commit formatting, lint, spelling, license, and RST hooks
passed.
- `isaaclab_physx` changelog compilation dry-run passed.
- A direct red/green path-selection check confirmed that the baseline
emits the unsafe wildcard and the patch emits the exact collision path
for both joint variants while preserving safe wildcard compaction.
- The focused pytest module was collected but skipped locally because
`omni.physics.tensors` requires Kit startup. Full Kit startup was not
run because the isolated environment requested interactive NVIDIA EULA
acceptance.

## Screenshots

Not applicable.

## 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
`uv run isaaclab -f`
- [ ] I have made corresponding changes to the documentation (not
applicable; no public API or workflow changed)
- [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 1aa0a09)
@ooctipus
ooctipus deleted the codex/fix-physx-joint-wildcards branch October 14, 2026 14:28
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.

2 participants