From b9df2190f1e933cfc75e610a20f373308fc72226 Mon Sep 17 00:00:00 2001 From: Erwin Coumans Date: Fri, 20 May 2022 11:16:19 -0700 Subject: OpenAI Gym API change: add mode argument to render method --- .../gym/pybullet_envs/examples/enjoy_TF_AntBulletEnv_v0_2017may.py | 2 +- .../pybullet_envs/examples/enjoy_TF_HalfCheetahBulletEnv_v0_2017may.py | 2 +- .../gym/pybullet_envs/examples/enjoy_TF_HumanoidBulletEnv_v0_2017may.py | 2 +- .../examples/enjoy_TF_HumanoidFlagrunHarderBulletEnv_v1_2017jul.py | 2 +- .../examples/enjoy_TF_InvertedDoublePendulumBulletEnv_v0_2017may.py | 2 +- .../examples/enjoy_TF_InvertedPendulumBulletEnv_v0_2017may.py | 2 +- .../examples/enjoy_TF_InvertedPendulumSwingupBulletEnv_v0_2017may.py | 2 +- .../gym/pybullet_envs/examples/enjoy_TF_Walker2DBulletEnv_v0_2017may.py | 2 +- 8 files changed, 8 insertions(+), 8 deletions(-) (limited to 'examples') diff --git a/examples/pybullet/gym/pybullet_envs/examples/enjoy_TF_AntBulletEnv_v0_2017may.py b/examples/pybullet/gym/pybullet_envs/examples/enjoy_TF_AntBulletEnv_v0_2017may.py index 29f5db65d..671cf0e8e 100644 --- a/examples/pybullet/gym/pybullet_envs/examples/enjoy_TF_AntBulletEnv_v0_2017may.py +++ b/examples/pybullet/gym/pybullet_envs/examples/enjoy_TF_AntBulletEnv_v0_2017may.py @@ -54,7 +54,7 @@ def main(): frame += 1 distance = 5 yaw = 0 - still_open = env.render("human") + still_open = env.render(mode="human") if still_open == False: return if not done: continue diff --git a/examples/pybullet/gym/pybullet_envs/examples/enjoy_TF_HalfCheetahBulletEnv_v0_2017may.py b/examples/pybullet/gym/pybullet_envs/examples/enjoy_TF_HalfCheetahBulletEnv_v0_2017may.py index b95ff2e31..be1971677 100644 --- a/examples/pybullet/gym/pybullet_envs/examples/enjoy_TF_HalfCheetahBulletEnv_v0_2017may.py +++ b/examples/pybullet/gym/pybullet_envs/examples/enjoy_TF_HalfCheetahBulletEnv_v0_2017may.py @@ -49,7 +49,7 @@ def main(): obs, r, done, _ = env.step(a) score += r frame += 1 - still_open = env.render("human") + still_open = env.render(mode="human") if still_open == False: return if not done: continue diff --git a/examples/pybullet/gym/pybullet_envs/examples/enjoy_TF_HumanoidBulletEnv_v0_2017may.py b/examples/pybullet/gym/pybullet_envs/examples/enjoy_TF_HumanoidBulletEnv_v0_2017may.py index 18b902d5a..9b04c44a2 100644 --- a/examples/pybullet/gym/pybullet_envs/examples/enjoy_TF_HumanoidBulletEnv_v0_2017may.py +++ b/examples/pybullet/gym/pybullet_envs/examples/enjoy_TF_HumanoidBulletEnv_v0_2017may.py @@ -48,7 +48,7 @@ def main(): obs, r, done, _ = env.step(a) score += r frame += 1 - still_open = env.render("human") + still_open = env.render(mode="human") if still_open == False: return continue diff --git a/examples/pybullet/gym/pybullet_envs/examples/enjoy_TF_HumanoidFlagrunHarderBulletEnv_v1_2017jul.py b/examples/pybullet/gym/pybullet_envs/examples/enjoy_TF_HumanoidFlagrunHarderBulletEnv_v1_2017jul.py index cfbbbfd73..cad0ca566 100644 --- a/examples/pybullet/gym/pybullet_envs/examples/enjoy_TF_HumanoidFlagrunHarderBulletEnv_v1_2017jul.py +++ b/examples/pybullet/gym/pybullet_envs/examples/enjoy_TF_HumanoidFlagrunHarderBulletEnv_v1_2017jul.py @@ -53,7 +53,7 @@ def demo_run(): score += r frame += 1 - still_open = env.render("human") + still_open = env.render(mode="human") if still_open == False: return diff --git a/examples/pybullet/gym/pybullet_envs/examples/enjoy_TF_InvertedDoublePendulumBulletEnv_v0_2017may.py b/examples/pybullet/gym/pybullet_envs/examples/enjoy_TF_InvertedDoublePendulumBulletEnv_v0_2017may.py index fbd35164d..e0227fe1d 100644 --- a/examples/pybullet/gym/pybullet_envs/examples/enjoy_TF_InvertedDoublePendulumBulletEnv_v0_2017may.py +++ b/examples/pybullet/gym/pybullet_envs/examples/enjoy_TF_InvertedDoublePendulumBulletEnv_v0_2017may.py @@ -48,7 +48,7 @@ def main(): obs, r, done, _ = env.step(a) score += r frame += 1 - still_open = env.render("human") + still_open = env.render(mode="human") if still_open == False: return if not done: continue diff --git a/examples/pybullet/gym/pybullet_envs/examples/enjoy_TF_InvertedPendulumBulletEnv_v0_2017may.py b/examples/pybullet/gym/pybullet_envs/examples/enjoy_TF_InvertedPendulumBulletEnv_v0_2017may.py index e4e84dd93..82ed97329 100644 --- a/examples/pybullet/gym/pybullet_envs/examples/enjoy_TF_InvertedPendulumBulletEnv_v0_2017may.py +++ b/examples/pybullet/gym/pybullet_envs/examples/enjoy_TF_InvertedPendulumBulletEnv_v0_2017may.py @@ -48,7 +48,7 @@ def main(): obs, r, done, _ = env.step(a) score += r frame += 1 - still_open = env.render("human") + still_open = env.render(mode="human") if still_open == False: return if not done: continue diff --git a/examples/pybullet/gym/pybullet_envs/examples/enjoy_TF_InvertedPendulumSwingupBulletEnv_v0_2017may.py b/examples/pybullet/gym/pybullet_envs/examples/enjoy_TF_InvertedPendulumSwingupBulletEnv_v0_2017may.py index 8c1ccd08d..fc612f393 100644 --- a/examples/pybullet/gym/pybullet_envs/examples/enjoy_TF_InvertedPendulumSwingupBulletEnv_v0_2017may.py +++ b/examples/pybullet/gym/pybullet_envs/examples/enjoy_TF_InvertedPendulumSwingupBulletEnv_v0_2017may.py @@ -48,7 +48,7 @@ def main(): obs, r, done, _ = env.step(a) score += r frame += 1 - still_open = env.render("human") + still_open = env.render(mode="human") if still_open == False: return if not done: continue diff --git a/examples/pybullet/gym/pybullet_envs/examples/enjoy_TF_Walker2DBulletEnv_v0_2017may.py b/examples/pybullet/gym/pybullet_envs/examples/enjoy_TF_Walker2DBulletEnv_v0_2017may.py index b88e19f51..de71b9770 100644 --- a/examples/pybullet/gym/pybullet_envs/examples/enjoy_TF_Walker2DBulletEnv_v0_2017may.py +++ b/examples/pybullet/gym/pybullet_envs/examples/enjoy_TF_Walker2DBulletEnv_v0_2017may.py @@ -50,7 +50,7 @@ def main(): score += r frame += 1 - still_open = env.render("human") + still_open = env.render(mode="human") if still_open == False: return if not done: continue -- cgit v1.2.1