Cannot import custom USD

Currently I’m importing USD file in Isaac Sim, and I’m Getting this bug:
2025-01-18 09:04:00 [47,831ms] [Warning] [omni.usd] Warning: in _ReportErrors at line 2890 of /builds/omniverse/usd-ci/USD/pxr/usd/usd/stage.cpp – In </World/shelf>: Unresolved reference prim path @/home/ubuntu/isaac/robot_models/shelf.usd@ introduced by @anon:0x568cf809fab0:World0.usd@</World/shelf> (computing expanded prim index for </World/shelf> on stage @anon:0x568cf809fab0:World0.usd@ <0x568cf57609c0>)
The import is working perfectly when used in the GUI and when used through the Python API it shows nothing.
I have read some articles and tried to use abspath but it didn’t work.

model_prim = prims.create_prim(
    prim_path=f"/World/{name}",
    position=np.array(position),
    orientation=np.array(orientation),
    usd_path=os.path.abspath(usd_path),
    )

This is my usd file:
shelf.zip (3.0 KB)

Isaac Sim Version

4.2.0

Operating System

Ubuntu 22.04

Please try using the function add_reference_to_stage() and see if the information in Import / Load a usd file containing a skeleton is helpful.

i tried using that but got the same bug. Any ideas?

Please provide your script and detailed steps so we can reproduce the issue.

I’ve resolved my problem. It’s because the .usd file doesn’t have its defaultPrim. However does there exitsts any method of adding it by editing the .usd file without having to open Isaac Sim?

Please refer to Set the Default Prim on a Stage — Omniverse Developer Guide to set the default prim programmatically.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.