Skip to content

Commit 6f7fba7

Browse files
Merge pull request #2336 from xela-95:patch-2
PiperOrigin-RevId: 713991183 Change-Id: I0869a068f463513e89fe2f88bca4b82177cfffa3
2 parents d3a0c28 + 7a6bf06 commit 6f7fba7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

doc/programming/simulation.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,7 @@ control laws obtained from trajectory optimizers would normally be indexed by ``
267267
The reason for the "official" caveat above is because user callbacks may store additional state variables that change
268268
over time and affect the callback outputs; indeed the field ``mjData.userdata`` exists mostly for that purpose. Other
269269
state-like quantities that are part of mjData and are treated as inputs by forward dynamics are ``mjData.mocap_pos`` and
270-
mjData.mocap_quat. These quantities are unusual in that they are meant to change at each time step (normally driven by a
270+
``mjData.mocap_quat``. These quantities are unusual in that they are meant to change at each time step (normally driven by a
271271
motion capture device), however this change is implemented by the user, while the simulator treats them as constants. In
272272
that sense they are no different from all the constants in mjModel, or the function callback pointers set by the user:
273273
such constants affect the computation, but are not part of the state vector of a dynamical system.
@@ -286,7 +286,7 @@ Next we turn to the controls and applied forces. The control vector in MuJoCo is
286286
u = (mjData.ctrl, mjData.qfrc_applied, mjData.xfrc_applied)
287287
288288
These quantities specify control signals (``mjData.ctrl``) for the actuators defined in the model, or directly apply
289-
forces and torques specified in joint space (``mjData.qfrc_applied``) or in Cartesian space (mjData.xfrc_applied).
289+
forces and torques specified in joint space (``mjData.qfrc_applied``) or in Cartesian space (``mjData.xfrc_applied``).
290290

291291
Finally, calling mj_forward which corresponds to the abstract dynamics function ``f(t,x,u)`` computes the
292292
time-derivative of the state vector. The corresponding fields of mjData are

0 commit comments

Comments
 (0)