a | b/examples/under-construction/runenv.py | ||
---|---|---|---|
1 | from osim.env.osim import L2RunEnv |
||
2 | import pprint |
||
3 | |||
4 | env = L2RunEnv(visualize=True) |
||
5 | |||
6 | observation = env.reset() |
||
7 | for i in range(200): |
||
8 | observation, reward, done, info = env.step(env.action_space.sample()) |
||
9 | print(len(observation)) |
||
10 | # pprint.pprint(env.get_state_desc()) |
||
11 | if done: |
||
12 | env.reset() |