add content_type to model in the XML schema.

PiperOrigin-RevId: 670961443
Change-Id: I98cd6bb61b50029cdd4f5b31e23d268989d136da
This commit is contained in:
Alessio Quaglino
2024-09-04 07:24:48 -07:00
committed by Copybara-Service
parent 9a27fc14c2
commit 0e8c0b80eb
5 changed files with 31 additions and 7 deletions
+5
View File
@@ -1893,6 +1893,11 @@ This element specifies other MJCF models which may be used for :ref:`attachment<
:at:`file`: :at-val:`string, required`
The file from which the sub-model will be loaded. Note that the sub-model must be a valid MJCF model.
.. _asset-model-content_type:
:at:`content_type` :at-val:`string, optional`
The file type to be loaded into a model. Currently only text/xml is supported.
.. _body:
+1 -1
View File
@@ -244,7 +244,7 @@
| :ref:`model | \* | :class: mjcf-attributes |
| <asset-model>` | | |
| | | +-----------------------------------------------------------------+-----------------------------------------------------------------+-----------------------------------------------------------------+-----------------------------------------------------------------+ |
| | | | :ref:`name<asset-model-name>` | :ref:`file<asset-model-file>` | | | |
| | | | :ref:`name<asset-model-name>` | :ref:`file<asset-model-file>` | :ref:`content_type<asset-model-content_type>` | | |
| | | +-----------------------------------------------------------------+-----------------------------------------------------------------+-----------------------------------------------------------------+-----------------------------------------------------------------+ |
+------------------------------------+----+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| mujoco |br| |L| | | .. table:: |