Handle ctrl special case explicitly in bind().
PiperOrigin-RevId: 714055763 Change-Id: I020008723af4a590926268a2ea615af54e20aa0b
This commit is contained in:
committed by
Copybara-Service
parent
3f32cc2479
commit
da32b0db30
@@ -238,9 +238,11 @@ class SupportTest(parameterized.TestCase):
|
||||
np.testing.assert_array_equal(dx.bind(mx, s.actuators).ctrl, [0, 0, 0])
|
||||
|
||||
# test invalid name
|
||||
with self.assertRaises(ValueError):
|
||||
with self.assertRaises(AttributeError):
|
||||
print(dx.bind(mx, s.geoms).ctrl)
|
||||
with self.assertRaises(AttributeError):
|
||||
print(dx.bind(mx, s.actuators).actuator_ctrl)
|
||||
with self.assertRaises(ValueError):
|
||||
with self.assertRaises(AttributeError):
|
||||
print(dx.bind(mx, s.actuators).set('actuator_ctrl', [1, 2, 3]))
|
||||
|
||||
_CONTACTS = """
|
||||
|
||||
Reference in New Issue
Block a user