[Question] Spawn USD File in orbit #1112
Replies: 3 comments
-
The prim path you are setting is |
Beta Was this translation helpful? Give feedback.
-
Thanks for your response. I deleted * and put [Error] [omni.physicsschema.plugin] Rigid Body of (/World/Origin2/Valve/round_valve/body/body) missing xformstack reset when child of rigid body (/World/Origin2/Valve/round_valve/body) in hierarchy. Simulation of multiple RigidBodyAPI's in a hierarchy will cause unpredicted results. Please fix the hierarchy or use XformStack reset. In this case, how can I handle the hierarchy of the multiple bodies? `
` This is the entire code about the function of 'design_scene'. |
Beta Was this translation helpful? Give feedback.
-
Hi @nowionlyseedaylight, you should make sure that your USD has the default prim attribute at the correct location. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Question
I'm working on the custom code in the same position with source/standalone/demos/arms.py, since I'm also working on the task with franka panda arm robot. I have constructed my own usd file externally, and I was to import this usd file in 'arms.py'.
this is the codes for importing table USD, but this one is built in isaac nucleus. So I put the local file directory in the variable 'usd_path.'
# -- Valve
valve_cfg = sim_utils.UsdFileCfg(
usd_path="/home/vision/Downloads/valves/round_valve/round_valve_1.usd", scale=(1.0, 1.0, 1.0))
valve_cfg.func("/World/Origin2/Valve*", valve_cfg, translation=(0.0, 0.0, 1.03))
`
2024-03-14 08:27:54 [12,068ms] [Error] [main]
Error in 'pxrInternal_v0_22__pxrReserved__::UsdStage::_IsValidPathForCreatingPrim' at line 3340 in file /buildAgent/work/ac88d7d902b57417/USD/pxr/usd/usd/stage.cpp : 'Path must be an absolute path: <>'
2024-03-14 08:27:54 [12,068ms] [Error] [main] Traceback (most recent call last):
File "/home/vision/orbit/source/standalone/demos/valve_try.py", line 169, in
main()
File "/home/vision/orbit/source/standalone/demos/valve_try.py", line 156, in main
scene_entities, scene_origins = design_scene()
File "/home/vision/orbit/source/standalone/demos/valve_try.py", line 91, in design_scene
valve_cfg.func("/World/Origin2/Valve*", valve_cfg, translation=(0.0, 0.0, 1.03))
File "/home/vision/orbit/source/extensions/omni.isaac.orbit/omni/isaac/orbit/sim/utils.py", line 246, in wrapper
prim = func(prim_paths[0], cfg, *args, **kwargs)
File "/home/vision/orbit/source/extensions/omni.isaac.orbit/omni/isaac/orbit/sim/spawners/from_files/from_files.py", line 61, in spawn_from_usd
return spawn_from_usd_file(prim_path, cfg.usd_path, cfg, translation, orientation)
File "/home/vision/orbit/source/extensions/omni.isaac.orbit/omni/isaac/orbit/sim/spawners/from_files/from_files.py", line 231, in spawn_from_usd_file
prim_utils.create_prim(
File "/home/vision/.local/share/ov/pkg/isaac_sim-2023.1.0-hotfix.1/exts/omni.isaac.core/omni/isaac/core/utils/prims.py", line 406, in create_prim
prim = define_prim(prim_path=prim_path, prim_type=prim_type)
File "/home/vision/.local/share/ov/pkg/isaac_sim-2023.1.0-hotfix.1/exts/omni.isaac.core/omni/isaac/core/utils/prims.py", line 105, in define_prim
return get_current_stage(fabric=fabric).DefinePrim(prim_path, prim_type)
pxr.Tf.ErrorException:
Error in 'pxrInternal_v0_22__pxrReserved::UsdStage::_IsValidPathForCreatingPrim' at line 3340 in file /buildAgent/work/ac88d7d902b57417/USD/pxr/usd/usd/stage.cpp : 'Path must be an absolute path: <>'
`
I keep getting this kind of error.
Also, I tadded my custom usd.file in Isaac Assets (Beta) to import this, but everytime I open the isaacSIM nucleus via python interpreter, this updated Isaac Assets isn't being directly implemented. I guess it because it works from different root folder.
I really want to know if there are other solutions to import my usd file in this demo file.
Thank you.
Beta Was this translation helpful? Give feedback.
All reactions