Skip to content

Commit

Permalink
Merge pull request #236 from violasox/rendering-fix
Browse files Browse the repository at this point in the history
Fix rendering bug by setting frame height and width
  • Loading branch information
Kallinteris-Andreas authored Oct 13, 2024
2 parents b696af9 + 709acbd commit 6076f05
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion gymnasium_robotics/envs/robot_env.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit 6076f05

Please sign in to comment.