[535f03]: / osim / env / utils / rllab.py

Download this file

11 lines (9 with data), 324 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
import numpy as np
from .gym import convert_gym_space, gymify_env
def rllabify_env(env):
env = gymify_env(env)
print(env.action_space)
env.action_space = convert_gym_space(env.action_space)
env.observation_space = convert_gym_space(env.observation_space)
env.horizon = env.timestep_limit
return env