From 9a706d9cfd4f1fa65d3e848d78c75f78b24e8b2c Mon Sep 17 00:00:00 2001 From: Erwin Coumans Date: Wed, 23 May 2018 00:24:03 +1000 Subject: [PATCH] PyBullet: fix Gym envs --- examples/pybullet/gym/pybullet_envs/scene_stadium.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/pybullet/gym/pybullet_envs/scene_stadium.py b/examples/pybullet/gym/pybullet_envs/scene_stadium.py index 8aef2552c..c105983db 100644 --- a/examples/pybullet/gym/pybullet_envs/scene_stadium.py +++ b/examples/pybullet/gym/pybullet_envs/scene_stadium.py @@ -17,7 +17,7 @@ class StadiumScene(Scene): def episode_restart(self, bullet_client): self._p = bullet_client - Scene.episode_restart(self) # contains cpp_world.clean_everything() + Scene.episode_restart(self, bullet_client) # contains cpp_world.clean_everything() if (self.stadiumLoaded==0): self.stadiumLoaded=1