added the learning algorithm from RL-lab

This commit is contained in:
Jie Tan
2017-03-10 12:29:47 -08:00
parent 923fbe8588
commit 37a809f5d1
4 changed files with 100 additions and 33 deletions

View File

@@ -24,13 +24,8 @@ class CartPoleBulletEnv(gym.Env):
def __init__(self):
# start the bullet physics server
# cmdStartBulletServer=['/Users/jietan/Projects/bullet3/build_cmake_python3/examples/SharedMemory/App_SharedMemoryPhysics_GUI']
# subprocess.Popen(cmdStartBulletServer)
# wait to make sure that the physics server is ready
# time.sleep(1)
# connect to the physics server
# p.connect(p.SHARED_MEMORY)
p.connect(p.GUI)
# p.connect(p.DIRECT)
observation_high = np.array([
np.finfo(np.float32).max,
np.finfo(np.float32).max,