Table of Contents

Enum MjtState

Namespace
Gym.MuJoCo
Assembly
Gym.Environments.dll

MuJoCo's state elements (mujoco.mjtState), bit flags of a state signature, and its usual unions: FullPhysics (Gymnasium's get_state default) and Integration (its reset check's).

[Flags]
[PyName("mjtState")]
public enum MjtState
Extension Methods

Fields

[PyName("mjSTATE_TIME")] Time = 1

The simulation time (mjSTATE_TIME).

[PyName("mjSTATE_QPOS")] Qpos = 2

The positions (mjSTATE_QPOS).

[PyName("mjSTATE_QVEL")] Qvel = 4

The velocities (mjSTATE_QVEL).

[PyName("mjSTATE_ACT")] Act = 8

The actuator activations (mjSTATE_ACT), none in the bundled models.

[PyName("mjSTATE_HISTORY")] History = 16

The delay buffers (mjSTATE_HISTORY), none in the bundled models.

[PyName("mjSTATE_WARMSTART")] Warmstart = 32

The solver's warm start (mjSTATE_WARMSTART), the last step's acceleration.

[PyName("mjSTATE_CTRL")] Ctrl = 64

The controls (mjSTATE_CTRL).

[PyName("mjSTATE_QFRC_APPLIED")] QfrcApplied = 128

The applied joint forces (mjSTATE_QFRC_APPLIED), always zero here.

[PyName("mjSTATE_XFRC_APPLIED")] XfrcApplied = 256

The applied body forces (mjSTATE_XFRC_APPLIED), always zero here.

[PyName("mjSTATE_EQ_ACTIVE")] EqActive = 512

The equality constraints' flags (mjSTATE_EQ_ACTIVE), none in the bundled models.

[PyName("mjSTATE_MOCAP_POS")] MocapPos = 1024

The mocap bodies' positions (mjSTATE_MOCAP_POS), none in the bundled models.

[PyName("mjSTATE_MOCAP_QUAT")] MocapQuat = 2048

The mocap bodies' orientations (mjSTATE_MOCAP_QUAT), none in the bundled models.

[PyName("mjSTATE_USERDATA")] Userdata = 4096

The user data (mjSTATE_USERDATA), none in the bundled models.

[PyName("mjSTATE_PLUGIN")] Plugin = 8192

The plugins' state (mjSTATE_PLUGIN), none in the bundled models.

[PyName("mjSTATE_PLASTIC")] Plastic = 16384

The plastic deformations (mjSTATE_PLASTIC), none in the bundled models.

[PyName("mjSTATE_USER")] User = Ctrl | QfrcApplied | XfrcApplied | EqActive | MocapPos | MocapQuat | Userdata

The user inputs (mjSTATE_USER): controls, applied forces, equality flags, mocap, user data.

[PyName("mjSTATE_PHYSICS")] Physics = Qpos | Qvel | Act | History | Plastic

The physical state (mjSTATE_PHYSICS): positions, velocities, activations, history, plasticity.

[PyName("mjSTATE_FULLPHYSICS")] FullPhysics = Time | Plugin | Physics

The full physical state (mjSTATE_FULLPHYSICS): time, Physics, plugins.

[PyName("mjSTATE_INTEGRATION")] Integration = Warmstart | User | FullPhysics

Everything a step reads (mjSTATE_INTEGRATION): FullPhysics, User, the warm start.