Skip to content

Commit

Permalink
Merge pull request #591 from ARISE-Initiative/mjviewer-reset
Browse files Browse the repository at this point in the history
terminate mjviewer on resets
  • Loading branch information
kevin-thankyou-lin authored Dec 16, 2024
2 parents a344ae6 + dd12ffa commit 8f64e15
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions robosuite/environments/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -263,6 +263,10 @@ def reset(self):
# TODO(yukez): investigate black screen of death
# Use hard reset if requested

# always terminate mjviewer
if self.renderer == "mjviewer":
self._destroy_viewer()

if self.hard_reset and not self.deterministic_reset:
if self.renderer == "mujoco":
self._destroy_viewer()
Expand Down

0 comments on commit 8f64e15

Please sign in to comment.