Skip to main content
Sim wraps MuJoCo physics for a robot, and Scene builds the world around it. Together they’re the engine under every other feature.

Sim

Sim is the simulator handle for a robot. Build it, then run commands.
Methods

Scene

Scene builds a static world by adding primitives. Builder methods return the scene, so they chain. Pass it to Sim or GymAdapter.
Builder methods (all fixed=True, optional rgba):
Cadenza’s forward direction is −X. Positions and sizes are in MuJoCo world units (meters). size is half-extents for boxes/slopes.

fixed vs. dynamic objects

fixed=True (default) welds the object to the world. fixed=False wraps it in a body with a free joint, so it falls under gravity and the robot can shove it.

State & sensing

Sim.get_state() returns a dict the closed-loop helpers and modalities read from:

Demo: build a world and read it back