URDF parsing no longer strips filepaths by default.

This default forces users to use the `spec.assets` dictionary or to do other filepath gymnastics when loading URDF. Instead we encourage users to just modify file paths directly if necessary.

PiperOrigin-RevId: 899009853
Change-Id: I4bb84606a95b65be79ccc77ccbe78062d6de8773
This commit is contained in:
Sam Haves
2026-04-13 08:21:13 -07:00
committed by Copybara-Service
parent f55aeb04fa
commit 7ae07d8157
3 changed files with 11 additions and 2 deletions
+10
View File
@@ -52,6 +52,16 @@ General
- The :ref:`mjtWarning` enum value ``mjWARN_VGEOMFULL`` is removed. Exhaustion of visual geoms is now handled
internally by the :ref:`mjvScene`.
- URDF parsing no longer hardcodes :ref:`strippath<compiler-strippath>` to "true". The setting is now respected and
the default is "false". Setting this is attribute is now the responsibility of the user.
**Migration:** Set :ref:`strippath<compiler-strippath>` to "true" in MJCF or programmatically using
.. code-block:: python
spec = mujoco.MjSpec.from_file("path/to/model.urdf")
spec.compiler.strippath = True
Bug fixes
^^^^^^^^^