Include reference to the State API in the mujoco-py migration guide.

PiperOrigin-RevId: 809349546
Change-Id: I4d48223962e6b89e3844c779e9499932c7b72945
This commit is contained in:
Tom Erez
2025-09-20 01:19:16 -07:00
committed by Copybara-Service
parent 0e1104768a
commit 0141c6b8b7
+2 -2
View File
@@ -1072,8 +1072,8 @@ non-exhaustive list of specific mujoco-py features:
``sim.get_state()``, ``sim.set_state(state)``, ``sim.get_flattened_state()``, ``sim.set_state_from_flattened(state)``
The MuJoCo library’s computation is deterministic given a specific input, as explained in the :ref:`Programming
section <Simulation>`. mujoco-py implements methods for getting and setting some of the relevant fields (and
similarly ``dm_control.Physics`` offers methods that correspond to the flattened case). ``mujoco`` do not offer such
abstraction, and the user is expected to get/set the values of the relevant fields explicitly.
similarly ``dm_control.Physics`` offers methods that correspond to the flattened case). This functionality is
described in the :ref:`state <geState>` section.
``sim.model.get_joint_qvel_addr(joint_name)``
This is a convenience method in mujoco-py that returns a list of contiguous indices corresponding to this joint. The