Add note that XML saving requires that the spec first be compiled. Fixes #1832
PiperOrigin-RevId: 671046666 Change-Id: If5885545d5316537147d293fbe854caa568558b2
This commit is contained in:
committed by
Copybara-Service
parent
79a5bd0915
commit
b502ceef00
@@ -103,7 +103,7 @@ mj_saveXMLString
|
|||||||
|
|
||||||
.. mujoco-include:: mj_saveXMLString
|
.. mujoco-include:: mj_saveXMLString
|
||||||
|
|
||||||
Save spec to XML string, return 1 on success, 0 otherwise.
|
Save spec to XML string, return 1 on success, 0 otherwise. XML saving requires that the spec first be compiled.
|
||||||
|
|
||||||
.. _mj_saveXML:
|
.. _mj_saveXML:
|
||||||
|
|
||||||
@@ -112,7 +112,7 @@ mj_saveXML
|
|||||||
|
|
||||||
.. mujoco-include:: mj_saveXML
|
.. mujoco-include:: mj_saveXML
|
||||||
|
|
||||||
Save spec to XML file, return 1 on success, 0 otherwise.
|
Save spec to XML file, return 1 on success, 0 otherwise. XML saving requires that the spec first be compiled.
|
||||||
|
|
||||||
.. _Mainsimulation:
|
.. _Mainsimulation:
|
||||||
|
|
||||||
|
|||||||
@@ -47,6 +47,14 @@ struct pointers while editing the model programmatically.
|
|||||||
:ref:`mj_recompile` returns 0 if compilation succeed. In the case of failure, the given :ref:`mjModel` and :ref:`mjData`
|
:ref:`mj_recompile` returns 0 if compilation succeed. In the case of failure, the given :ref:`mjModel` and :ref:`mjData`
|
||||||
instances will be deleted; as in :ref:`mj_compile`, the compilation error can be read with :ref:`mjs_getError`.
|
instances will be deleted; as in :ref:`mj_compile`, the compilation error can be read with :ref:`mjs_getError`.
|
||||||
|
|
||||||
|
.. _mj_saveXMLString:
|
||||||
|
|
||||||
|
Save spec to XML string, return 1 on success, 0 otherwise. XML saving requires that the spec first be compiled.
|
||||||
|
|
||||||
|
.. _mj_saveXML:
|
||||||
|
|
||||||
|
Save spec to XML file, return 1 on success, 0 otherwise. XML saving requires that the spec first be compiled.
|
||||||
|
|
||||||
.. _Mainsimulation:
|
.. _Mainsimulation:
|
||||||
|
|
||||||
These are the main entry points to the simulator. Most users will only need to call :ref:`mj_step`, which computes
|
These are the main entry points to the simulator. Most users will only need to call :ref:`mj_step`, which computes
|
||||||
|
|||||||
Reference in New Issue
Block a user