mjlab.scene#
Classes
Scene#
- class mjlab.scene.Scene[source]#
-
- write(output_dir: Path, *, zip: bool = False) None[source]#
Write the scene XML and mesh assets to a directory.
Creates
scene.xmland anassets/subdirectory containing mesh files referenced by the scene. When zip is True the directory is compressed into a.ziparchive and the directory is removed. Operates on a copy of the spec to avoid mutation.- Parameters:
output_dir – Destination directory (created if it doesn’t exist).
zip – If True, produce
<output_dir>.zipinstead of a directory.
- property sensor_context: SensorContext | None#
Shared sensing resources, or None if no cameras/raycasts.