example.py
This commit is contained in:
parent
efa7415164
commit
96d1f93bda
13
example.py
Normal file
13
example.py
Normal 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()
|
Loading…
Reference in New Issue
Block a user