I was trying to reproduce this tutorial from python without using UI.
I did run setup_python_env.sh and also enable omni.isaac.dr inside IsaacSim as noted in there in the link.
Then I’ve got this error as trying to acquire the Dr interface as in this example: ISAAC/ISAAC_SIM_2020_1/_build/linux-x86_64/release/exts/omni.isaac.tests/omni/isaac/tests/domain_randomizer/test_domain_randomizer.py
from omni.isaac.dr import _dr
dr = _dr.acquire_dr_interface()
RuntimeError: Failed to acquire interface: omni::isaac::dr::DomainRandomizer (pluginName: nullptr)
../../../include/carb/extras/ThreadLocal.h(83): set(): Assertion (res == 0) failed.
Trace/breakpoint trap (core dumped)
So what might I have missed there? (since the statements run just fine inside the Script Editor)
Besides, as directed in the tutorial, there is a required step that we have to enable the Domain Randomizerplugin under Extension or omni.isaac.dr under Window->Extension Managermenu.
How do we do that using script?
I actually made use of OmniKitHelper as in here: ISAAC/ISAAC_SIM_2020_1/_build/linux-x86_64/release/exts/omni.isaac.samples/omni/isaac/samples/scripts/syntheticdata/omni_dl_examples/helpers/omnikit.py
but it does not seem to already enable dr plugin though.
which is passed to omniverse-kit as running it by OmniKitHelper._start_app().
So I guessed a similar one should be added for omni.isaac.dr but I’m not sure how, specifically about the number 0 there in the argument.
Oops, sorry I forgot IsaacSim is not part of Isaac SDK.
Yeah, it looks like the error is gone. I could see 2020.2 omniverse-kit version now could enable extensions from a whole folder, using f'--/app/extensions/folders2/{i}="<ext_folder>"'.
Besides, by the comment there, it would be great to enable these directly from .json file in upcoming versions.
Thanks!