diff options
author | Erwin Coumans <erwincoumans@gmail.com> | 2022-05-20 11:16:19 -0700 |
---|---|---|
committer | Erwin Coumans <erwincoumans@gmail.com> | 2022-05-20 11:16:19 -0700 |
commit | b9df2190f1e933cfc75e610a20f373308fc72226 (patch) | |
tree | 6ad2fe8499710b8701b476d1d2e068ad66907b05 | |
parent | 657f3472239e53fb8f2932181ae8d723344a6f35 (diff) | |
download | bullet3-b9df2190f1e933cfc75e610a20f373308fc72226.tar.gz |
OpenAI Gym API change: add mode argument to render method
8 files changed, 8 insertions, 8 deletions
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 |