From 28f14b32580e7b43dd024b63d3d0ad9ab5da10f3 Mon Sep 17 00:00:00 2001 From: Taylor Howell Date: Sat, 3 Jan 2026 09:56:24 -0800 Subject: [PATCH] MuJoCo Warp documentation: Update Batched Model Fields code example. PiperOrigin-RevId: 851699741 Change-Id: I30d98db7ee6bfe2104408fb0f84e472da649887b --- doc/mjwarp/index.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/mjwarp/index.rst b/doc/mjwarp/index.rst index 114821c7..c04fe77e 100644 --- a/doc/mjwarp/index.rst +++ b/doc/mjwarp/index.rst @@ -352,8 +352,8 @@ It is possible to override the field shape and set the field values after graph mjw.step(m, d) # set batched values - dof_damping_batch = wp.array([[0.1], [0.2]], dtype=float) - wp.copy(m.dof_damping, dof_damping_batch) # m.dof = dof_damping_batch will not update the captured graph + dof_damping = wp.array([[0.1], [0.2]], dtype=float) + wp.copy(m.dof_damping, dof_damping) # m.dof = dof_damping will not update the captured graph .. admonition:: Heterogeneous worlds :class: note