-
Notifications
You must be signed in to change notification settings - Fork 21
Fix rgb_first_person obseravation
#105
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR fixes the rgb_first_person observation function, addressing issue #100. The changes improve the first-person RGB observation by aligning sprites correctly, fixing observation space dimensions, and adding proper view cone handling.
Key changes:
- Fixed observation space dimensions for first-person views to use consistent
(radius * 2 + 1)sizing - Added
get_sprites_first_person()method to properly align agent sprite to north direction - Enhanced view cone calculation with frontier obstacle detection and minigrid opacity support
Reviewed Changes
Copilot reviewed 9 out of 9 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
| tests/test_observations.py | Added test case for rgb_first_person observation with minigrid comparison |
| requirements_test.txt | Added minigrid dependency for testing |
| navix/states.py | Added get_sprites_first_person() method and sprite registry import |
| navix/rendering/registry.py | Changed minimum tile size from 32 to 8 pixels |
| navix/observations.py | Major refactor of rgb_first_person() function with proper view cone and opacity |
| navix/grid.py | Enhanced crop function, added minigrid opacity and grid line utilities, improved view cone |
| navix/environments/environment.py | Fixed observation space dimensions for first-person observations |
| navix/_version.py | Version bump to 0.7.2 |
| .github/workflows/CI.yml | Added test requirements installation to CI |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
Fixes #100
Thanks @fernando-ml for spotting this. Let me know if this fixes it for you.