Skip to content

Commit

Permalink
Fix render_array (#558)
Browse files Browse the repository at this point in the history
Environment rendering didn't update mocap values.
  • Loading branch information
haarnoja authored Nov 30, 2024
1 parent e615f42 commit 94cc45d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions brax/io/image.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ def render_array(
def get_image(state: base.State):
d = mujoco.MjData(sys.mj_model)
d.qpos, d.qvel = state.q, state.qd
d.mocap_pos, d.mocap_quat = state.mocap_pos, state.mocap_quat
mujoco.mj_forward(sys.mj_model, d)
renderer.update_scene(d, camera=camera)
return renderer.render()
Expand Down

0 comments on commit 94cc45d

Please sign in to comment.