Skip to content

Commit c48af9c

Browse files
authored
Merge pull request #87 from erikfrey/lower_ctrl
Lower ctrl to reasonable in-range domain that produces stable physics.
2 parents 9637a69 + d6fd5e3 commit c48af9c

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

mujoco/mjx/_src/forward_test.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,7 @@ def _load(self, fname: str, is_sparse: bool = True):
4848
mjd = mujoco.MjData(mjm)
4949
mujoco.mj_resetDataKeyframe(mjm, mjd, 1) # reset to stand_on_left_leg
5050
mjd.qvel = np.random.uniform(low=-0.01, high=0.01, size=mjd.qvel.shape)
51-
mjd.ctrl = np.random.normal(scale=10, size=mjd.ctrl.shape)
52-
mjd.act = np.random.normal(scale=10, size=mjd.act.shape)
51+
mjd.ctrl = np.random.normal(scale=1, size=mjd.ctrl.shape)
5352
mujoco.mj_forward(mjm, mjd)
5453
m = mjx.put_model(mjm)
5554
d = mjx.put_data(mjm, mjd)

0 commit comments

Comments
 (0)