I have a USD stage with python scripting (behavior script) attached to a prim. The behavior script does some prim movement when certain objects collide on the stage. Now I would like to load that stage in an Isaac Sim standalone python script.
Starting from the omni.isaac.kit/load_stage.py example, first, the python scripting in the USD was not executed. Then I figured out, that I probably have to enable the scripting extension. So I added the following lines to the load_stage.py right after initializing the SimulationApp:
from omni.isaac.core.utils.extensions import enable_extension
enable_extension("omni.kit.scripting")
Now, when I run load_stage.py, I get the following error:
[5.261s] [ext: omni.kit.scripting-104.2.2] startup
2023-08-09 12:08:50 [5,254ms] [Warning] [omni.ext.plugin] [ext: omni.kit.scripting-104.2.2] '/home/clemens/.local/share/ov/pkg/isaac_sim-2022.2.1/extscache/omni.kit.scripting-104.2.2+104.2.lx64.r.cp37/bin' in '[[native.plugin]]' was not found.
2023-08-09 12:08:50 [5,264ms] [Warning] [omni.isaac.core.utils.nucleus] /persistent/app/omniverse/mountedDrives setting not found
2023-08-09 12:08:50 [5,292ms] [Error] [carb.events.python] AttributeError: 'ScriptManager' object has no attribute '_usd_listener'
At:
/home/clemens/.local/share/ov/pkg/isaac_sim-2022.2.1/extscache/omni.kit.scripting-104.2.2+104.2.lx64.r.cp37/omni/kit/scripting/scripts/script_manager.py(101): _on_stage_detach
/home/clemens/.local/share/ov/pkg/isaac_sim-2022.2.1/extscache/omni.kit.scripting-104.2.2+104.2.lx64.r.cp37/omni/kit/scripting/scripts/script_manager.py(90): _on_stage_event
standalone_examples/api/omni.isaac.kit/load_stage.py(53): <module>
Any idea what I am doing wrong?