Add setting plugin config properties via Python bindings.
PiperOrigin-RevId: 747421357 Change-Id: Ie80f1a889f2f6ec457c1e16193fa0694e07d3fe9
This commit is contained in:
committed by
Copybara-Service
parent
f317bd17c3
commit
ec186430ef
@@ -841,8 +841,9 @@ class SpecsTest(absltest.TestCase):
|
||||
name='instance_name',
|
||||
plugin_name='mujoco.elasticity.cable',
|
||||
active=True,
|
||||
info='info',
|
||||
info='info'
|
||||
)
|
||||
plugin.config = {'twist': '10', 'bend': '1'}
|
||||
|
||||
body = spec.worldbody.add_body()
|
||||
body.plugin = plugin
|
||||
@@ -858,6 +859,7 @@ class SpecsTest(absltest.TestCase):
|
||||
model = spec.compile()
|
||||
self.assertIsNotNone(model)
|
||||
self.assertEqual(model.nplugin, 1)
|
||||
self.assertEqual(model.npluginattr, 7)
|
||||
self.assertEqual(model.body_plugin[1], 0)
|
||||
|
||||
def test_recompile_error(self):
|
||||
|
||||
Reference in New Issue
Block a user