unisim.backend.isaacgym.dependencies¶
Runtime discovery for the out-of-process IsaacGym (Preview 4) worker.
IsaacGym only supports Python 3.6-3.8 and can never be installed into the
main UniLab environment (Python >= 3.10). Physics therefore runs in a
dedicated conda env created by scripts/tools/setup_isaacgym_env.sh under
$UNISIM_ISAACGYM_HOME (default ~/.cache/unisim/isaacgym):
miniconda3/envs/hsgym/bin/python3.8— the worker interpreter,miniconda3/envs/hsgym/lib— prepended to the worker’sLD_LIBRARY_PATH(condalibstdcxx-ngfixes the GLIBCXX mismatch),miniconda3/envs/hsgym/bin— prepended to the worker’sPATHso the pip-installedninjais reachable for the one-time gymtorch JIT compile,isaacgym/python— appended to the worker’ssys.path.
UNISIM_ISAACGYM_PYTHON overrides the interpreter path explicitly.
The former UNILAB_* names remain accepted as a migration fallback.
Functions
|
Build the worker process environment. |
Return the default IsaacGym install root (including legacy override). |
|
Return True when the worker runtime resolves without raising. |
|
|
Resolve the worker interpreter and IsaacGym package locations. |
Classes
Resolved on-disk locations for the Python 3.8 IsaacGym worker. |
Exceptions
Raised with an actionable setup hint when the worker runtime is absent. |
- exception unisim.backend.isaacgym.dependencies.IsaacGymDependencyError[source]¶
Bases:
OptionalDependencyErrorRaised with an actionable setup hint when the worker runtime is absent.
- class unisim.backend.isaacgym.dependencies.IsaacGymRuntime[source]¶
Bases:
objectResolved on-disk locations for the Python 3.8 IsaacGym worker.
- unisim.backend.isaacgym.dependencies.build_worker_env(runtime)[source]¶
Build the worker process environment.
Prepends the conda env’s
libtoLD_LIBRARY_PATH(thelibstdcxx-ngGLIBCXX fix andlibpython3.8) and itsbintoPATH(the pip-installedninjamust be reachable for the one-time gymtorch JIT compile on a fresh machine).- Parameters:
runtime (
IsaacGymRuntime)- Return type:
- unisim.backend.isaacgym.dependencies.default_isaacgym_home()[source]¶
Return the default IsaacGym install root (including legacy override).
- Return type:
- unisim.backend.isaacgym.dependencies.isaacgym_runtime_available()[source]¶
Return True when the worker runtime resolves without raising.
- Return type:
- unisim.backend.isaacgym.dependencies.resolve_isaacgym_runtime(python_override=None)[source]¶
Resolve the worker interpreter and IsaacGym package locations.
- Raises:
IsaacGymDependencyError – If any required component is missing.
- Parameters:
- Return type: