summaryrefslogtreecommitdiff
path: root/examples/pybullet/gym/pybullet_envs/examples/enjoy_TF_InvertedDoublePendulumBulletEnv_v0_2017may.py
diff options
context:
space:
mode:
authorErwin Coumans <erwincoumans@gmail.com>2022-05-20 11:16:19 -0700
committerErwin Coumans <erwincoumans@gmail.com>2022-05-20 11:16:19 -0700
commitb9df2190f1e933cfc75e610a20f373308fc72226 (patch)
tree6ad2fe8499710b8701b476d1d2e068ad66907b05 /examples/pybullet/gym/pybullet_envs/examples/enjoy_TF_InvertedDoublePendulumBulletEnv_v0_2017may.py
parent657f3472239e53fb8f2932181ae8d723344a6f35 (diff)
downloadbullet3-b9df2190f1e933cfc75e610a20f373308fc72226.tar.gz
OpenAI Gym API change: add mode argument to render method
Diffstat (limited to 'examples/pybullet/gym/pybullet_envs/examples/enjoy_TF_InvertedDoublePendulumBulletEnv_v0_2017may.py')
-rw-r--r--examples/pybullet/gym/pybullet_envs/examples/enjoy_TF_InvertedDoublePendulumBulletEnv_v0_2017may.py2
1 files changed, 1 insertions, 1 deletions
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