Create list_dependencies sample to list all dependencies for an MCJF file.
PiperOrigin-RevId: 814816067 Change-Id: Idc6232e5d1ef1ff0318aeacd0e3d4b4a5a303485
This commit is contained in:
committed by
Copybara-Service
parent
6ae9cc8061
commit
e4704cd28b
@@ -127,6 +127,17 @@ the required size. XML saving automatically compiles the spec before saving.
|
||||
|
||||
Save spec to XML file, return 0 on success, -1 otherwise. XML saving requires that the spec first be compiled.
|
||||
|
||||
.. _mju_getXMLDependencies:
|
||||
|
||||
`mju_getXMLDependencies <#mju_getXMLDependencies>`__
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
.. mujoco-include:: mju_getXMLDependencies
|
||||
|
||||
Given MJCF filename, fills dependencies with a list of all other asset files it depends on.
|
||||
|
||||
The search is recursive, and the list includes the filename itself.
|
||||
|
||||
.. _Mainsimulation:
|
||||
|
||||
Main simulation
|
||||
|
||||
Reference in New Issue
Block a user