Skip to content

Commit ec28132

Browse files
btabacopybara-github
authored andcommitted
Small change.
PiperOrigin-RevId: 718975676 Change-Id: I4124ee2b397a31bbc5f2c6b6d2b37d0330a6fb65
1 parent 76b235c commit ec28132

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

mujoco_playground/_src/mjx_env.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -148,9 +148,9 @@ def init(
148148
if act is not None:
149149
data = data.replace(act=act)
150150
if mocap_pos is not None:
151-
data = data.replace(mocap_pos=mocap_pos.reshape(len(data.mocap_pos), -1))
151+
data = data.replace(mocap_pos=mocap_pos.reshape(model.nmocap, -1))
152152
if mocap_quat is not None:
153-
data = data.replace(mocap_quat=mocap_quat.reshape(len(data.mocap_quat), -1))
153+
data = data.replace(mocap_quat=mocap_quat.reshape(model.nmocap, -1))
154154
data = mjx.forward(model, data)
155155
return data
156156

0 commit comments

Comments
 (0)