Skip to content

Commit

Permalink
remove Hopper-v4's old render API func (Farama-Foundation#588)
Browse files Browse the repository at this point in the history
  • Loading branch information
Kallinteris-Andreas authored Jul 6, 2023
1 parent 9806437 commit 7989988
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions gymnasium/envs/mujoco/hopper_v4.py
Original file line number Diff line number Diff line change
Expand Up @@ -296,11 +296,3 @@ def reset_model(self):

observation = self._get_obs()
return observation

def viewer_setup(self):
assert self.viewer is not None
for key, value in DEFAULT_CAMERA_CONFIG.items():
if isinstance(value, np.ndarray):
getattr(self.viewer.cam, key)[:] = value
else:
setattr(self.viewer.cam, key, value)

0 comments on commit 7989988

Please sign in to comment.