add humanoid and kuka gym environments (experimental)

This commit is contained in:
erwincoumans
2017-06-14 00:54:41 -07:00
parent a0ded43a69
commit cc34ebab25
9 changed files with 477 additions and 0 deletions

View File

@@ -0,0 +1,21 @@
from envs.bullet.humanoidGymEnv import HumanoidGymEnv
print ("hello")
environment = HumanoidGymEnv(renders=True)
environment._p.setGravity(0,0,0)
motorsIds=[]
for motor in environment._humanoid.motor_names:
motorsIds.append(environment._p.addUserDebugParameter(motor,-1,1,0))
while (True):
action=[]
for motorId in motorsIds:
action.append(environment._p.readUserDebugParameter(motorId))
state, reward, done, info = environment.step(action)
obs = environment.getExtendedObservation()
print("obs")
print(obs)