Files
chenlin c32df70326
Checks / Layout, translation and Colab checks (push) Has been cancelled
Checks / Ruff (push) Has been cancelled
Checks / Framework tests (native backend, CPU) (push) Has been cancelled
Checks / Portable Rust controller (push) Has been cancelled
release: v0.1 generic robot training and application platform
2026-11-05 11:05:01 +08:00

15 lines
541 B
Python

"""Simulation backends.
Only `resolve` (backend/device resolution) is exported here. `native_sim` and
`model_slim` are parts used by the native path and are imported from their own
modules on demand -- re-exporting them here would make `import mjrl.backend` pull
in mujoco and torch.
There is no separate backend protocol: the seam is mjlab's `Simulation` class
being replaceable. See section 3 of docs/DESIGN.md.
"""
from .resolve import BackendUnavailable, Resolution, resolve
__all__ = ["Resolution", "resolve", "BackendUnavailable"]