abaisero / gym-gridverse

Gridworld domains in the gym interface
MIT License
22 stars 5 forks source link

Added a basic gym state wrapper #2

Closed DavidSlayback closed 3 years ago

DavidSlayback commented 3 years ago

1) Added GymStateObservationWrapper, a wrapper to replace observations with state. This wrapper leaves the underling environment untouched, so render and properties still work properly

2) Updated the scripts to add a state representation to the environments. Additionally updated the gym script; gym.make will throw a standard error if the provided id isn't a balid gym ID, not an UnregisteredEnv

3) Updated .gitignore to ignore PyCharm .idea directory

DavidSlayback commented 3 years ago

Sorry for the delay, I've been running some experiments in other environments. I updated the request with your suggestions and commented on why I changed the Error type for the make_env function.