Automatically compile mjSpec in to_xml().

Also, move mj_compile from MjModelWrapper to MjSpec.

PiperOrigin-RevId: 737640210
Change-Id: I93d2a31c33eb359452b0d966a29939183b4c5198
This commit is contained in:
Alessio Quaglino
2025-03-17 09:20:29 -07:00
committed by Copybara-Service
parent 35774706ee
commit da04688071
7 changed files with 54 additions and 61 deletions
+1 -1
View File
@@ -99,7 +99,7 @@ Free last XML model if loaded. Called internally at each load.
.. mujoco-include:: mj_saveXMLString
Save spec to XML string, return 0 on success, -1 on failure. If the length of the output buffer is too small, returns
the required size. XML saving requires that the spec first be compiled.
the required size. XML saving automatically compiles the spec before saving.
.. _mj_saveXML:
+1 -1
View File
@@ -59,7 +59,7 @@ saving mechanisms.
.. _mj_saveXMLString:
Save spec to XML string, return 0 on success, -1 on failure. If the length of the output buffer is too small, returns
the required size. XML saving requires that the spec first be compiled.
the required size. XML saving automatically compiles the spec before saving.
.. _mj_saveXML: