diff --git a/gymnasium_robotics/envs/robot_env.py b/gymnasium_robotics/envs/robot_env.py index a4d1a01d..e482715d 100644 --- a/gymnasium_robotics/envs/robot_env.py +++ b/gymnasium_robotics/envs/robot_env.py @@ -282,7 +282,11 @@ def __init__(self, default_camera_config: Optional[dict] = None, **kwargs): from gymnasium.envs.mujoco.mujoco_rendering import MujocoRenderer self.mujoco_renderer = MujocoRenderer( - self.model, self.data, default_camera_config + self.model, + self.data, + default_camera_config, + width=self.width, + height=self.height, ) def _initialize_simulation(self):