Skip to content

mujoco_mojo.mjcf

The mujoco_mojo.mjcf subpackage provides the complete Python object model for the MuJoCo XML schema. It mirrors the official XML structure closely, so the best reference is the upstream documentation:

MuJoCo XML Reference

All mjcf types are re-exported from the top-level mujoco_mojo namespace, so you rarely need to import directly from mujoco_mojo.mjcf.

Python
1
2
3
import mujoco_mojo as mojo

body = mojo.Body(name=mojo.BodyName("my_body"))