Add MjSpec.from_zip() constructor.

PiperOrigin-RevId: 736871864
Change-Id: Ib6cc189d5912a57e5c505c744a4a1d6ad61d1c84
This commit is contained in:
Alessio Quaglino
2025-03-14 08:30:11 -07:00
committed by Copybara-Service
parent 1a67aaf1b7
commit f480a9e985
2 changed files with 33 additions and 3 deletions
+4 -1
View File
@@ -758,11 +758,14 @@ class SpecsTest(absltest.TestCase):
xml = """
<mujoco model="test">
<compiler angle="radian"/>
<asset>
<mesh name="cube" file="cube.obj"/>
</asset>
<worldbody>
<geom mesh="cube"/>
<geom type="mesh" mesh="cube"/>
</worldbody>
</mujoco>
"""