Namespace Gym.MuJoCo
Classes
- MjData
A simulation's state and everything computed from it, what
mujoco.MjDatais to Gymnasium's MuJoCo envs, with the engine that advances it: a from-scratch physics core for the eleven envs (the 21 ids that run on MuJoCo 3 and 4), written to step exactly as MuJoCo 4.0.0'smj_stepdoes on win-x64. The same quantities are computed in the same floating-point order, so every array it publishes (state, contacts, constraint rows, solver output) equals MuJoCo's bit for bit. It followed MuJoCo 3.15.0 until the pin moved to 4.0.0 (DR-64), whose RK4, quaternion kernels, capsule pairs, PGS scale and convex collider round differently.
- MjDataBody
One body's quantities in a simulation (
data.body(name), Python's_MjDataBodyViews): what Gymnasium's code reads of it.
- MjModel
A compiled MuJoCo model, what
mujoco.MjModelis to Gymnasium's MuJoCo envs: one of Gymnasium's 14 bundled models as MuJoCo 4.0.0 compiled it, embedded in Gym.Environments (DR-63), so every number is MuJoCo's own and Gym.NET needs no MJCF compiler. It holds what the eleven envs need (HalfCheetah, Hopper, Walker2d, Ant, Humanoid, HumanoidStandup, InvertedPendulum, InvertedDoublePendulum, Reacher, Swimmer, Pusher) and Gymnasium's custom-env test model, point.xml: kinematic trees of hinge and slide joints, each under an optional free root; a ground plane with spheres, capsules, cylinders and point.xml's box (tested against the plane, refused if it would touch); motors on joints; Euler or RK4; pyramidal and frictionless contacts; the dense Newton or PGS solver; inert fixed tendons; sites; and the inertia-box fluid model.
- MjOption
A model's physics options (
mujoco.MjOption,model.opt): what Gymnasium's code reads of them. A handle on the model, so it always reads the model's current values.
- MjStatistic
A model's statistics (
mujoco.MjStatistic,model.stat), as MuJoCo's compiler computed them: what Gymnasium's code reads of them.
- MjVisual
A model's visualization options (
mujoco.MjVisual,model.vis): what Gymnasium's code reads and writes of them.
- MjVisualGlobal
A model's global visualization options (
model.vis.global_): the offscreen buffer's size, which Gymnasium'sMujocoEnvgrows to its render size and never shrinks.
- Mujoco
The
mujocomodule's functions that Gymnasium's MuJoCo envs, itsutilsand its tests call (DR-68), under .NET names, each[PyName]d to Python's: stepping, the forward dynamics, resetting, the post-step forces, kinematics alone, name lookup and the state vector. Each runs Gym.NET's own engine, bit for bit with MuJoCo 4.0.0 on win-x64 for Gymnasium's bundled models (DR-61, DR-64).
Enums
- MjtObj
MuJoCo's element kinds (
mujoco.mjtObj), for MjName2Id(MjModel, MjtObj, string).
- MjtState
MuJoCo's state elements (
mujoco.mjtState), bit flags of a state signature, and its usual unions: FullPhysics (Gymnasium'sget_statedefault) and Integration (its reset check's).