Use procedural model creation in plugin tests.

This will be useful for simplifying the mjSpec API for plugins.

PiperOrigin-RevId: 772505558
Change-Id: I8eb57d7e129e0f6430fb4c610a543e0dc0f3b295
This commit is contained in:
Alessio Quaglino
2025-06-17 09:29:52 -07:00
committed by Copybara-Service
parent d9aae1521a
commit d2501eff68
2 changed files with 29 additions and 24 deletions
+1 -1
View File
@@ -861,7 +861,7 @@ class SpecsTest(absltest.TestCase):
body = spec.worldbody.add_body()
body.plugin = plugin
body.plugin.plugin_name = 'mujoco.elasticity.cable'
body.plugin.name = 'instance_name'
body.plugin.active = True
geom = body.add_geom()