example.py

This commit is contained in:
Vien Ngo 2020-08-28 16:00:47 +02:00
parent efa7415164
commit 96d1f93bda

13
example.py Normal file
View File

@ -0,0 +1,13 @@
import gym
if __name__ == "__main__":
env = gym.make('reacher:ReacherALREnv-v0')
#env = gym.make('Hopper-v2')
env.reset()
for i in range(10000):
action = env.action_space.sample()
obs = env.step(action)
print("step",i)
env.render()