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:
committed by
Copybara-Service
parent
35774706ee
commit
da04688071
@@ -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:
|
||||
|
||||
|
||||
@@ -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:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user