From 59debb50b15aa9e8e0593e90afcd3d4aa84e9d5e Mon Sep 17 00:00:00 2001 From: Google DeepMind Date: Fri, 7 Nov 2025 08:21:34 -0800 Subject: [PATCH] Add `SLEEP` to `EnableBit` enum. This change exposes the `mjENBL_SLEEP` flag from MuJoCo's `mjtEnableBit` in MJX's `EnableBit` type. PiperOrigin-RevId: 829446801 Change-Id: Ia95b31a3488ecba0431646c889e10a5ae5fb60e8 --- mjx/mujoco/mjx/_src/types.py | 1 + 1 file changed, 1 insertion(+) diff --git a/mjx/mujoco/mjx/_src/types.py b/mjx/mujoco/mjx/_src/types.py index ea7d869f..3560e32f 100644 --- a/mjx/mujoco/mjx/_src/types.py +++ b/mjx/mujoco/mjx/_src/types.py @@ -92,6 +92,7 @@ class EnableBit(enum.IntFlag): # unsupported: OVERRIDE, ENERGY, FWDINV, ISLAND # required by the C implementation only, ignored otherwise: MULTICCD MULTICCD = mujoco.mjtEnableBit.mjENBL_MULTICCD + SLEEP = mujoco.mjtEnableBit.mjENBL_SLEEP class JointType(enum.IntEnum):