From 661c3e01dc5ec73b63a32e44eee6c6b53ea48f56 Mon Sep 17 00:00:00 2001 From: Alessandro Croci <57228872+xela-95@users.noreply.github.com> Date: Wed, 8 Jan 2025 14:21:24 +0100 Subject: [PATCH 1/2] Update simulation.rst Add missing backticks to `mjData.mocap_quat` in simulation.rst --- doc/programming/simulation.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/programming/simulation.rst b/doc/programming/simulation.rst index d892ea03..da93d588 100644 --- a/doc/programming/simulation.rst +++ b/doc/programming/simulation.rst @@ -267,7 +267,7 @@ control laws obtained from trajectory optimizers would normally be indexed by `` The reason for the "official" caveat above is because user callbacks may store additional state variables that change over time and affect the callback outputs; indeed the field ``mjData.userdata`` exists mostly for that purpose. Other state-like quantities that are part of mjData and are treated as inputs by forward dynamics are ``mjData.mocap_pos`` and -mjData.mocap_quat. These quantities are unusual in that they are meant to change at each time step (normally driven by a +``mjData.mocap_quat``. These quantities are unusual in that they are meant to change at each time step (normally driven by a motion capture device), however this change is implemented by the user, while the simulator treats them as constants. In that sense they are no different from all the constants in mjModel, or the function callback pointers set by the user: such constants affect the computation, but are not part of the state vector of a dynamical system. From 7a6bf06706dabc219bf417a9ddcf89d8cbaeede2 Mon Sep 17 00:00:00 2001 From: Alessandro Croci <57228872+xela-95@users.noreply.github.com> Date: Wed, 8 Jan 2025 14:27:46 +0100 Subject: [PATCH 2/2] Update simulation.rst Add missing backticks to `mjData.xfrc_applied` --- doc/programming/simulation.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/programming/simulation.rst b/doc/programming/simulation.rst index da93d588..05bf4d67 100644 --- a/doc/programming/simulation.rst +++ b/doc/programming/simulation.rst @@ -286,7 +286,7 @@ Next we turn to the controls and applied forces. The control vector in MuJoCo is u = (mjData.ctrl, mjData.qfrc_applied, mjData.xfrc_applied) These quantities specify control signals (``mjData.ctrl``) for the actuators defined in the model, or directly apply -forces and torques specified in joint space (``mjData.qfrc_applied``) or in Cartesian space (mjData.xfrc_applied). +forces and torques specified in joint space (``mjData.qfrc_applied``) or in Cartesian space (``mjData.xfrc_applied``). Finally, calling mj_forward which corresponds to the abstract dynamics function ``f(t,x,u)`` computes the time-derivative of the state vector. The corresponding fields of mjData are