Skip to content
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

implement alternative 2D grid observation space #2

Merged
merged 5 commits into from Oct 15, 2021

Conversation

LukasSchaefer
Copy link
Collaborator

Implemented new observation scheme (set via environment argument) which defines a 2D observation grid centered around the agent.

Naming of environments with keyword -grid combined with -Xs to define to sight of agents. E.g. Foraging-grid-2s-8x8-2p-2f-v2 for agents to observe a 5x5 grid centered around the agent.

Each observed cell contains of 5 values. The first 4 encode the entity (out-of-bounds, empty cell, food, agent) and the last value encodes the level (-1 for OOB/ emtpy and level for food/ agent).

@semitable
Copy link
Owner

As per our discussion, we should put the information in different channels. E.g. one channel for agent levels, one channel for food, and one (0s or 1s) for impassable/out of bounds.

@semitable semitable merged commit 388fb3b into semitable:master Oct 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants