Skip to content

Commit b0f885e

Browse files
yuvaltassacopybara-github
authored andcommitted
Minor edits to the Programming/Simulation docs page.
PiperOrigin-RevId: 713952376 Change-Id: I5b7230a001bd49954d401846f40cd122ee4e748c
1 parent 00010f5 commit b0f885e

File tree

1 file changed

+11
-4
lines changed

1 file changed

+11
-4
lines changed

doc/programming/simulation.rst

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -556,6 +556,13 @@ or termination of the iterative solver.
556556
Model changes
557557
~~~~~~~~~~~~~
558558

559+
.. admonition:: Model editing framework
560+
:class: tip
561+
562+
The discussion below regarding mjModel changes at runtime was written before the 3.2.0 introduction of the
563+
:doc:`Model Editing<modeledit>` framework. It is still valid, but the new framework is the safe and recommended way
564+
to modify models.
565+
559566
The MuJoCo model contained in mjModel is supposed to represent constant physical properties of the system, and in
560567
theory should not change after compilation. Of course in practice things are not that simple. It is often desirable to
561568
change the physics options in ``mjModel.opt``, so as to experiment with different aspects of the physics or to create
@@ -590,8 +597,8 @@ asking a "decompiler" to make corresponding changes to the C code -- it is just
590597

591598
.. _siLayout:
592599

593-
Data layout and buffer allocation
594-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
600+
Data layout
601+
~~~~~~~~~~~
595602

596603
All matrices in MuJoCo are in **row-major** format. For example, the linear memory array (a0, a1, ... a5) represents the
597604
2-by-3 matrix
@@ -712,8 +719,8 @@ and :ref:`mj_stackAllocByte` is provided for allocation of arbitrary number of b
712719

713720
.. _siError:
714721

715-
Errors, warnings, memory allocation
716-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
722+
Errors and warnings
723+
~~~~~~~~~~~~~~~~~~~
717724

718725
When a terminal error occurs, MuJoCo calls the function :ref:`mju_error` internally. Here is what mju_error does:
719726

0 commit comments

Comments
 (0)