Closed briankim13 closed 5 years ago
That is because it is wrapped by the TimeLimit
wrapper when you call gym.make
.
https://github.com/openai/gym/blob/master/gym/wrappers/time_limit.py
You can unwrap it if you do not want done=True
by accessing env.env
.
>>> import gym
>>> env = gym.make('Pendulum-v0')
>>> env
<TimeLimit<PendulumEnv<Pendulum-v0>>>
>>> env = env.env
>>> env
<gym.envs.classic_control.pendulum.PendulumEnv object at 0x1038974a8>
Thanks @muupan, that's correct. If you use the underlying enviroment directly there will be no timelimit but the gym.make
version has a timelimit.
Hello all,
I found pendulum environment returns true for done after 200 steps. Maybe documentation should be changed (it says it will return false all the time)?
But I don't understand why I get done=True.... Below is the code from pendulum.py for me. I shouldn't get True at all