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
[x] Bug fix (non-breaking change which fixes an issue)
Checklist:
[x] I have run the pre-commit checks with pre-commit run --all-files (see CONTRIBUTING.md instructions to set it up)
[x] I have commented my code, particularly in hard-to-understand areas
[x] I have made corresponding changes to the documentation
[x] My changes generate no new warnings
[x] I have added tests that prove my fix is effective or that my feature works
[x] New and existing unit tests pass locally with my changes
Description
Changes the
observation
method ofRGBImgObsWrapper
such that the agent field-of-view (FOV) highlight is rendered only when the underlying environment has this enabled with thehighlight
bool. (default True). Previously the FOV highlighting was hardcoded to always be enabled, regardless of whathighlight
was.Fixes #382, #326
Type of change
Checklist:
pre-commit
checks withpre-commit run --all-files
(seeCONTRIBUTING.md
instructions to set it up)