rlpyt: Doesn't work with (non-atari) env
It would be super useful for me to see an example of how to use a custom gym environment. Is there an example of this somewhere?
The problem with built-in atari environment is I’m not sure where rlpyt begins and environment ends.
One thing I find a bit confusing is the info_dict. It’s not clear to me at which point I have to wrap it (or does the env wrapper wrap it automatically)?
Let’s say we had a simple env like:
class DummyEnv(gym.Env):
def __init__(self):
self.action_space = spaces.Discrete(2)
self.observation_space = spaces.Discrete(10)
def reset(self):
return 0
def step(self, action):
obs, rew, done, info = 0, 1, True, {}
return obs, rew, done, info
what are the steps I would need to take to wrap it?
About this issue
- Original URL
- State: open
- Created 4 years ago
- Reactions: 1
- Comments: 22 (5 by maintainers)
I have the same problem with a simple example based on one of the examples in the repo. It’d be good to have more documentation on how to do this (if it works). I’ve tried different other combinations of methods without success such as using
gym_make
directly.