You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The gym observation space is also defined from observation_keys. So whats the intended design for adding something to the observation space like an occupancy map?
The current solution looks like (is this the intended design?):
Thanks for opening the issue. You seem to want to extend NLE with a new observation and a new task. I will ignore the latter as there are couple of examples you can check in nle/env/tasks.py, and just address the observation.
If you wish to add a new observation you need to first ask what are you trying to observe. Is this a new piece of state that carries new internal information out of NetHack? Or is this a new observation derived from existing state that has already been exposed by the NLE.
If the former, I suggest looking at the recent commit that added the misc observation to NLE. Here is the commit and PR.
If the latter, then I suggest writing a wrapper (or simply a new task) that wraps around that intercepts the step and reset functions to add more observations. I'm sure there are examples of this elsewhere online since you would just need to follow the gym API.
If this answers doesn't answer your question feel free to reopen the issue.
( Finally on a personal note @dmadeka - I want to thank you for you contributions, you are very close to merging your contribution to NLE (PR #202 )! All you need to do is pass the linting tests! )
Right now, the
observation_keys
argument is compared againstOBSERVATION_DESC
(https://github.com/facebookresearch/nle/blob/master/nle/nethack/nethack.py#L145) which is pinned against theset_buffers
in (https://github.com/facebookresearch/nle/blob/master/win/rl/pynethack.cc#L126)The gym observation space is also defined from
observation_keys
. So whats the intended design for adding something to the observation space like an occupancy map?The current solution looks like (is this the intended design?):
The text was updated successfully, but these errors were encountered: