Rename old humanoid gym to simple humanoid gym.

This commit is contained in:
Benelot
2017-08-17 00:06:01 +02:00
parent aed57d130e
commit 9f20e40541
5 changed files with 13 additions and 13 deletions

View File

@@ -0,0 +1,21 @@
from envs.bullet.simpleHumanoidGymEnv import SimpleHumanoidGymEnv
print ("hello")
environment = SimpleHumanoidGymEnv(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)