improve the new pybullet gym environments, follow camera, disable 2D GUI, disable rendering during loading (makes it faster)

disable vsync on Mac
fix setup.py file
This commit is contained in:
Erwin Coumans
2017-08-20 18:11:53 -07:00
parent c4112ec5cc
commit c06ea72a4c
14 changed files with 125 additions and 46 deletions

View File

@@ -24,9 +24,7 @@ class SmallReactivePolicy:
def demo_run():
env = gym.make("InvertedDoublePendulumBulletEnv-v0")
cid = p.connect(p.SHARED_MEMORY) # only show graphics if the browser is already running....
if cid < 0:
cid = p.connect(p.DIRECT)
cid = p.connect(p.GUI)
pi = SmallReactivePolicy(env.observation_space, env.action_space)