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"))
Info: Implemented MJCF Tags
  • mujoco
    • option
      • option/⁠flag
    • compiler
      • compiler/⁠lengthrange
    • size
    • statistic
    • asset
      • asset/⁠mesh
      • asset/⁠hfield
      • asset/⁠skin
        • skin/⁠bone
      • asset/⁠texture
      • asset/⁠material
        • material/⁠layer
      • asset/⁠model
    • worldbody
      • worldbody/⁠geom
        • geom/⁠plugin
      • worldbody/⁠site
      • worldbody/⁠camera
      • worldbody/⁠light
      • worldbody/⁠flexcomp
        • flexcomp/⁠contact
        • flexcomp/⁠edge
        • flexcomp/⁠elasticity
        • flexcomp/⁠pin
        • flexcomp/⁠plugin
      • worldbody/⁠plugin
      • worldbody/⁠attach
      • worldbody/⁠frame
        • frame/⁠inertial
        • frame/⁠joint
        • frame/⁠freejoint
        • frame/⁠geom
        • frame/⁠site
        • frame/⁠camera
        • frame/⁠light
        • frame/⁠flexcomp
        • frame/⁠plugin
        • frame/⁠attach
        • frame/⁠frame
        • frame/⁠body
      • worldbody/⁠body
        • body/⁠inertial
        • body/⁠joint
        • body/⁠freejoint
        • body/⁠geom
        • body/⁠site
        • body/⁠camera
        • body/⁠light
        • body/⁠flexcomp
        • body/⁠plugin
        • body/⁠attach
        • body/⁠frame
        • body/⁠body
    • deformable
      • deformable/⁠flex
        • flex/⁠contact
        • flex/⁠edge
        • flex/⁠elasticity
      • deformable/⁠skin
    • contact
      • contact/⁠pair
      • contact/⁠exclude
    • equality
      • equality/⁠connect
      • equality/⁠weld
      • equality/⁠joint
      • equality/⁠tendon
      • equality/⁠flex
      • equality/⁠flexstrain
    • tendon
      • tendon/⁠spatial
        • spatial/⁠site
        • spatial/⁠geom
        • spatial/⁠pulley
      • tendon/⁠fixed
        • fixed/⁠joint
    • actuator
      • actuator/⁠general
      • actuator/⁠motor
      • actuator/⁠position
      • actuator/⁠velocity
      • actuator/⁠intvelocity
      • actuator/⁠damper
      • actuator/⁠cylinder
      • actuator/⁠muscle
      • actuator/⁠adhesion
      • actuator/⁠dcmotor
      • actuator/⁠pid
      • actuator/⁠orientation
      • actuator/⁠plugin
    • sensor
      • sensor/⁠touch
      • sensor/⁠accelerometer
      • sensor/⁠velocimeter
      • sensor/⁠gyro
      • sensor/⁠force
      • sensor/⁠torque
      • sensor/⁠magnetometer
      • sensor/⁠rangefinder
      • sensor/⁠camprojection
      • sensor/⁠jointpos
      • sensor/⁠jointvel
      • sensor/⁠tendonpos
      • sensor/⁠tendonvel
      • sensor/⁠actuatorpos
      • sensor/⁠actuatorvel
      • sensor/⁠actuatorfrc
      • sensor/⁠jointactuatorfrc
      • sensor/⁠tendonactuatorfrc
      • sensor/⁠ballquat
      • sensor/⁠ballangvel
      • sensor/⁠jointlimitpos
      • sensor/⁠jointlimitvel
      • sensor/⁠jointlimitfrc
      • sensor/⁠tendonlimitpos
      • sensor/⁠tendonlimitvel
      • sensor/⁠tendonlimitfrc
      • sensor/⁠framepos
      • sensor/⁠framequat
      • sensor/⁠framexaxis
      • sensor/⁠frameyaxis
      • sensor/⁠framezaxis
      • sensor/⁠framelinvel
      • sensor/⁠frameangvel
      • sensor/⁠framelinacc
      • sensor/⁠frameangacc
      • sensor/⁠subtreecom
      • sensor/⁠subtreelinvel
      • sensor/⁠subtreeangmom
      • sensor/⁠insidesite
      • sensor/⁠distance
      • sensor/⁠normal
      • sensor/⁠fromto
      • sensor/⁠contact
      • sensor/⁠tactile
      • sensor/⁠e_potential
      • sensor/⁠e_kinetic
      • sensor/⁠clock
      • sensor/⁠user
      • sensor/⁠plugin
    • keyframe
      • keyframe/⁠key
    • visual
      • visual/⁠global
      • visual/⁠quality
      • visual/⁠headlight
      • visual/⁠map
      • visual/⁠scale
      • visual/⁠rgba
    • extension
      • extension/⁠plugin
        • plugin/⁠instance
          • instance/⁠config
  • Not implemented
    • custom
      • custom/⁠numeric
      • custom/⁠text
      • custom/⁠tuple
        • tuple/⁠element
    • default
    • replicate