Farama-Foundation / Minigrid

Simple and easily configurable grid world environments for reinforcement learning
https://minigrid.farama.org/
Other
2.13k stars 610 forks source link

Dynamically determine `highlighting` in `RGBImgObsWrapper` #388

Closed thesofakillers closed 1 year ago

thesofakillers commented 1 year ago

Description

Changes the observation method of RGBImgObsWrapper such that the agent field-of-view (FOV) highlight is rendered only when the underlying environment has this enabled with the highlight bool. (default True). Previously the FOV highlighting was hardcoded to always be enabled, regardless of what highlight was.

Fixes #382, #326

Type of change

Checklist: