Add engine-internal convenience macro for allocating typed arrays, improve error message.
PiperOrigin-RevId: 705126655 Change-Id: I2bd8fada6d33a919d2fb82297f93ac57958355a4
This commit is contained in:
committed by
Copybara-Service
parent
3ca97248a3
commit
2691887500
@@ -1060,7 +1060,7 @@ Euler integrator, semi-implicit in velocity.
|
||||
def test_can_raise_error(self):
|
||||
self.data.pstack = self.data.narena
|
||||
with self.assertRaisesRegex(
|
||||
mujoco.FatalError, r'\Amj_stackAlloc: insufficient memory:'
|
||||
mujoco.FatalError, r'\Amj_stackAlloc: out of memory, stack overflow'
|
||||
):
|
||||
mujoco.mj_forward(self.model, self.data)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user