Skip to content

[Bug Report] Articulation initialization fails to reconstruct correct paths for its rigid bodies on assets with deep hierarchy #237

@ozhanozen

Description

@ozhanozen

Describe the bug

When an Articulation is initialized, _initilize_imp() function tries to construct the body paths by simply combining the root prim path and body names within the articulation tree:

https://github.com/NVIDIA-Omniverse/orbit/blob/477cd6b3f6f37bdf8d7d8a47bf6ea8bb15376c3b/source/extensions/omni.isaac.orbit/omni/isaac/orbit/assets/articulation/articulation.py#L490-L502

However, this leads to incorrect paths for the bodies that are not right under the root prim.

For example, if there is an Xform to group a few bodies together:

robot (defaultPrim)
--- body1
--- body2
--- Xform
-------- body3 
-------- body4

the prim path for body3 is assumed to be on /robot/body3 rather than /robot/Xform/body3.

Eventually, the RigidBodyView is not constructed correctly, and this raises a RuntimeError at the following lines due to the mismatch of the body_names with the physx_body_names:

https://github.com/NVIDIA-Omniverse/orbit/blob/477cd6b3f6f37bdf8d7d8a47bf6ea8bb15376c3b/source/extensions/omni.isaac.orbit/omni/isaac/orbit/assets/articulation/articulation.py#L510-L512

Steps to reproduce

Using any Articulation with a similar hierarchy reproduces the error.

System Info

  • Commit: [939a768]
  • Isaac Sim Version: [2023.1.0-hotfix.1]
  • OS: [Ubuntu 20.04]
  • GPU: [RTX A6000]
  • CUDA: [12.0]
  • GPU Driver: [525.60.11]

Additional context

#200 and #208 are probably related to this.

Checklist

  • I have checked that there is no similar issue in the repo (required)
  • I have checked that the issue is not in running Isaac Sim itself and is related to the repo

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions