Skip to content

[Bug] PhysX create_rigid_body_view fails to match bodies under Geometry/ scope from v3.0 URDF converter #5126

Closed

Description

@dolevfr

Description

The IsaacLab 3.0 URDF converter (on the develop branch targeting Isaac Sim 6.0) produces USD files with rigid bodies nested under a Geometry/ scope:

# v3.0 URDF converter output (nested hierarchy):
/robot/Geometry/base_link
/robot/Geometry/base_link/torso_yaw_link
/robot/Geometry/base_link/torso_yaw_link/torso_pitch_link
...

# v2.x URDF converter output (flat siblings):
/robot/base_link
/robot/torso_yaw_link
/robot/torso_pitch_link
...

The Geometry/ scope is created by the urdf_usd_converter.Converter in step 1 of the pipeline, even with layer_structure=False. It persists regardless of whether the asset transformer (step 6) runs.

Impact

physx.SimulationView.create_rigid_body_view(pattern) fails to match any rigid bodies when the pattern uses flat body names (e.g., (base_link|torso_yaw_link|...)), because the actual prim paths are nested under Geometry/base_link/....

This directly breaks isaaclab_physx.sensors.ContactSensor._initialize_impl() at line ~294, which uses sim_utils.find_matching_prims() + a flat (body1|body2|...) regex pattern for create_rigid_body_view and create_rigid_contact_view.

create_articulation_view works correctly — it takes the articulation root path and traverses the entire articulation internally. The issue is specific to create_rigid_body_view and create_rigid_contact_view which require explicit per-body path pattern matching.

Steps to Reproduce

  1. Use the develop branch of IsaacLab with Isaac Sim 6.0
  2. Convert any URDF robot (e.g., a humanoid with 50+ links) using isaaclab.sim.converters.UrdfConverter
  3. Spawn the robot in a scene with activate_contact_sensors=True
  4. Create a ContactSensor pointing at the robot bodies
  5. Observe: "Pattern '...' did not match any rigid bodies" from omni.physx.tensors.plugin

Observed Behavior

[Error] [omni.physx.tensors.plugin] Pattern '/World/envs/env_*/Robot/(base_link|torso_yaw_link|...)' did not match any rigid bodies
[Error] [omni.physx.tensors.plugin] Provided pattern list did not match any rigid bodies

Even using full nested paths in the regex alternation fails:

[Error] [omni.physx.tensors.plugin] Pattern '/World/envs/env_*/Robot/(Geometry/base_link|Geometry/base_link/torso_yaw_link|...)' did not match any rigid bodies

Expected Behavior

create_rigid_body_view should match rigid bodies at their actual prim paths, or the URDF converter should produce prim paths that are compatible with the existing pattern matching in ContactSensor and other consumers.

Key Observations

  • create_articulation_view("/World/envs/env_*/Robot/Geometry/base_link") → works, finds all 53 links
  • ArticulationView.shared_metatype.link_names → returns flat names: ['base_link', 'torso_yaw_link', ...]
  • create_rigid_body_view("/World/envs/env_*/Robot/Geometry/base_link/(base_link|torso_yaw_link|...)") → fails, finds only 4 direct children
  • The v2.x URDF converter produced flat siblings under /robot/ — all existing contact sensor code assumes this flat structure

Environment

  • IsaacLab: develop branch (3.0.0)
  • Isaac Sim: 6.0.0 (pip install)
  • Python: 3.12
  • OS: Ubuntu 24.04, Linux 6.17

Suggested Fix

Either:

  1. The URDF converter should produce a flat prim hierarchy (matching v2.x behavior) that create_rigid_body_view can pattern-match
  2. ContactSensor._initialize_impl() should use ArticulationView.link_paths to get PhysX-resolved body paths instead of constructing them from USD prim names
  3. create_rigid_body_view should support recursive path matching for articulated bodies

Activity

  1. RandomOakForest commented on Apr 2, 2026

    @RandomOakForest
    Collaborator

    Thank you for posting this. The team will review it.

  2. added
    bug
    on Apr 2, 2026
  3. moved this to In progress in Isaac Labon Apr 17, 2026
  4. moved this from In progress to Ready in Isaac Labon May 3, 2026
  5. moved this from Ready to Backlog in Isaac Labon Jun 16, 2026
  6. added 2 commits that reference this issue on Jul 16, 2026
    6b4d15f
    234c8c0
  7. kellyguo11 commented on Aug 4, 2026

    @kellyguo11
    Contributor

    Closing as fixed by #6378 for PhysX and #6384 for OVPhysX. The contact-sensor views are now built from one path expression per body, which supports the nested rigid-body hierarchy produced by the Isaac Sim 6.0 URDF importer. Both fixes include nested-hierarchy regression coverage.

  8. moved this from Backlog to Done in Isaac Labon Aug 4, 2026
  9. added 2 commits that reference this issue on Aug 4, 2026
    47fd826
    6413208
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bug

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions