diff --git a/deformable_gym/envs/mujoco/base_mjenv.py b/deformable_gym/envs/mujoco/base_mjenv.py index 4a22784..dfe0573 100644 --- a/deformable_gym/envs/mujoco/base_mjenv.py +++ b/deformable_gym/envs/mujoco/base_mjenv.py @@ -61,7 +61,7 @@ def __init__( obj_name: str, observable_object_pos: bool = True, max_sim_time: float = 5, - gui: bool = True, + gui: bool = False, init_frame: str | None = None, ): self.scene = AssetManager().create_scene(robot_name, obj_name) diff --git a/deformable_gym/envs/mujoco/grasp_env.py b/deformable_gym/envs/mujoco/grasp_env.py index 047f162..e1b29ae 100644 --- a/deformable_gym/envs/mujoco/grasp_env.py +++ b/deformable_gym/envs/mujoco/grasp_env.py @@ -20,7 +20,7 @@ def __init__( obj_name: str, observable_object_pos: bool = True, max_sim_time: float = 5, - gui: bool = True, + gui: bool = False, init_frame: Optional[str] = None, **kwargs, ): diff --git a/deformable_gym/envs/mujoco/mia_grasp.py b/deformable_gym/envs/mujoco/mia_grasp.py index 448b373..7753eed 100644 --- a/deformable_gym/envs/mujoco/mia_grasp.py +++ b/deformable_gym/envs/mujoco/mia_grasp.py @@ -9,7 +9,7 @@ def __init__( obj_name: str, observable_object_pos: bool = True, max_sim_time: float = 1, - gui: bool = True, + gui: bool = False, init_frame: str | None = None, **kwargs, ): diff --git a/deformable_gym/envs/mujoco/shadow_grasp.py b/deformable_gym/envs/mujoco/shadow_grasp.py index 72e5c53..bcd94a0 100644 --- a/deformable_gym/envs/mujoco/shadow_grasp.py +++ b/deformable_gym/envs/mujoco/shadow_grasp.py @@ -10,7 +10,7 @@ def __init__( obj_name: str, observable_object_pos: bool = True, max_sim_time: float = 1, - gui: bool = True, + gui: bool = False, init_frame: str | None = None, **kwargs, ): diff --git a/examples/mj_mia_example.py b/examples/mj_mia_example.py index 1a5d57d..619f1b3 100644 --- a/examples/mj_mia_example.py +++ b/examples/mj_mia_example.py @@ -7,11 +7,11 @@ episode = 0 n_episodes = 3 observation, info = env.reset() - env.render() + #env.render() while episode < n_episodes: action = env.action_space.sample() observation, reward, terminate, truncated, info = env.step(action) - env.render() + #env.render() if terminate: episode += 1 print(f"Episode {episode} finished with reward {reward}") diff --git a/examples/mj_shadow_example.py b/examples/mj_shadow_example.py index d77fc5f..cc21c92 100644 --- a/examples/mj_shadow_example.py +++ b/examples/mj_shadow_example.py @@ -7,11 +7,9 @@ episode = 0 n_episodes = 3 observation, info = env.reset() - env.render() while episode < n_episodes: action = env.action_space.sample() observation, reward, terminate, truncated, info = env.step(action) - env.render() if terminate: episode += 1 print(f"Episode {episode} finished with reward {reward}")