Closed samuelmyoussef closed 7 months ago
Just one thing, does every scene have a StateInitializer (if you add it in simulate.py)?
For the moment, it's only the CartPole scene so I put it inside an exception handler with try
except
in simulate.py
, so if it doesn't find it in the scene it will just print an error and continue normally.
Added a
StateInitializer
class to theCartPole
environment to randomly initialize the simulation state at the beginning of each episode.