Add mujoco.MjSpec.to_zip()

PiperOrigin-RevId: 719003836
Change-Id: I310ac96b0080b3313c325cee76d3bf7f81fa9df0
This commit is contained in:
Alessio Quaglino
2025-01-23 14:00:07 -08:00
committed by Copybara-Service
parent 3d174a4034
commit 2546fcefa0
2 changed files with 27 additions and 0 deletions
+3
View File
@@ -15,7 +15,9 @@
"""Tests for mjSpec bindings."""
import inspect
import os
import textwrap
import zipfile
from absl.testing import absltest
from etils import epath
@@ -735,6 +737,7 @@ class SpecsTest(absltest.TestCase):
v -1 -1 -1
v 1 -1 -1"""
spec = mujoco.MjSpec()
spec.modelname = 'test'
mesh = spec.add_mesh()
mesh.name = 'cube'
mesh.file = 'cube.obj'