MuJoCo Warp documentation: Update Batched Model Fields code example.
PiperOrigin-RevId: 851699741 Change-Id: I30d98db7ee6bfe2104408fb0f84e472da649887b
This commit is contained in:
committed by
Copybara-Service
parent
e3ddb126f5
commit
28f14b3258
@@ -352,8 +352,8 @@ It is possible to override the field shape and set the field values after graph
|
|||||||
mjw.step(m, d)
|
mjw.step(m, d)
|
||||||
|
|
||||||
# set batched values
|
# set batched values
|
||||||
dof_damping_batch = wp.array([[0.1], [0.2]], dtype=float)
|
dof_damping = 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
|
wp.copy(m.dof_damping, dof_damping) # m.dof = dof_damping will not update the captured graph
|
||||||
|
|
||||||
.. admonition:: Heterogeneous worlds
|
.. admonition:: Heterogeneous worlds
|
||||||
:class: note
|
:class: note
|
||||||
|
|||||||
Reference in New Issue
Block a user