[077a87]: / examples / legacy / sim_Prosthetics_randomrun.py

Download this file

10 lines (8 with data), 313 Bytes

1
2
3
4
5
6
7
8
9
from osim.env import ProstheticsEnv
env = ProstheticsEnv(seed=5)
env.change_model(model='3D', prosthetic=True, difficulty=2, seed=11)
observation = env.reset()
for i in range(300):
observation, reward, done, info = env.step(env.action_space.sample(), project = False)
if done:
env.reset(seed=10)