Skip to content

Commit

Permalink
Mujoco is all you need (#100)
Browse files Browse the repository at this point in the history
  • Loading branch information
miterion authored Nov 3, 2023
1 parent 2477928 commit 3864c52
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Pyrado/pyrado/environments/mujoco/quanser_qube.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,10 @@ def _mujoco_step(self, act: np.ndarray) -> dict:
self.data.ctrl[:] = torque

# Call MuJoCo
mujoco.mj_step(self.model, self.data)
try:
mujoco.mj_step(self.model, self.data)
except mujoco.FatalError:
mjsim_crashed = True

qpos = self.data.qpos.copy()
qvel = self.data.qvel.copy()
Expand Down

0 comments on commit 3864c52

Please sign in to comment.