unisim.backend.mjwarp.dependencies

Lazy dependency boundary for the independent mjwarp backend.

Functions

load_mjwarp_dependencies()

Import optional runtime modules only when a backend instance is built.

mjwarp_dependencies_available()

Return availability without importing CUDA/Warp runtime modules.

Classes

MjwarpDependencies

Modules required by the production mjwarp implementation.

Exceptions

MjwarpDependencyError

Raised with an actionable install command when the optional extra is absent.

exception unisim.backend.mjwarp.dependencies.MjwarpDependencyError[source]

Bases: ImportError

Raised with an actionable install command when the optional extra is absent.

class unisim.backend.mjwarp.dependencies.MjwarpDependencies[source]

Bases: object

Modules required by the production mjwarp implementation.

Parameters:
mujoco: Any
mujoco_warp: Any
warp: Any
__init__(mujoco, mujoco_warp, warp)
Parameters:
unisim.backend.mjwarp.dependencies.mjwarp_dependencies_available()[source]

Return availability without importing CUDA/Warp runtime modules.

Return type:

bool

unisim.backend.mjwarp.dependencies.load_mjwarp_dependencies()[source]

Import optional runtime modules only when a backend instance is built.

Return type:

MjwarpDependencies