Repository navigation
Fix PhysX scene data joint name collisions - #7358
Conversation
There was a problem hiding this comment.
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 existingNonebehavior. 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 SummaryThis 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.
Confidence Score: 5/5The 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
Reviews (1): Last reviewed commit: "Fix PhysX scene data joint name collisio..." | Re-trigger Greptile |
|
Backported to |
# 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)
Description
Fix repeated
Failed to find rigid bodywarnings 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 underRobot/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.0atbb0c8e1using:Related to #5935 and #6041.
Type of change
Release backport
developTesting
isaaclab_physxchangelog compilation dry-run passed.omni.physics.tensorsrequires Kit startup. Full Kit startup was not run because the isolated environment requested interactive NVIDIA EULA acceptance.Screenshots
Not applicable.
Checklist
pre-commitchecks withuv run isaaclab -fsource/<pkg>/changelog.d/for every touched packageCONTRIBUTORS.mdor my name already exists there