We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 76b235c commit ec28132Copy full SHA for ec28132
mujoco_playground/_src/mjx_env.py
@@ -148,9 +148,9 @@ def init(
148
if act is not None:
149
data = data.replace(act=act)
150
if mocap_pos is not None:
151
- data = data.replace(mocap_pos=mocap_pos.reshape(len(data.mocap_pos), -1))
+ data = data.replace(mocap_pos=mocap_pos.reshape(model.nmocap, -1))
152
if mocap_quat is not None:
153
- data = data.replace(mocap_quat=mocap_quat.reshape(len(data.mocap_quat), -1))
+ data = data.replace(mocap_quat=mocap_quat.reshape(model.nmocap, -1))
154
data = mjx.forward(model, data)
155
return data
156
0 commit comments