Comments (5)
Ok, so these are the environments you want to define.
Some pointers:
- There is a wrapper to enable fully observable environments:
- There is a
RoomGrid
class that makes it easier to define environments that are NxN grids of rooms connected by doors, this may be helpful.
Otherwise, are there specific things you're not sure how to do?
Regarding your environments, things might be a little simpler if you stick to the actions defined by MiniGrid, where the agent rotates left/right instead of directly moving 4-ways, and if you directly use RoomGrid without colored rooms (use colored doors instead). Are you trying to recreate specific existing environments from some published paper?
from minigrid.
Thank you for such a prompt response.
I am trying to create a simple environment with colored rooms and balls where the agent can take the above-mentioned actions. I am actually trying to get the baseline working as of now.
I see that there is a figure "fourroomqa-env.png" that is close to what I am trying to achieve. But I can't seem to be able to find how to get that particular env running.
from minigrid.
I removed FourRoomQA because it wasn't used or maintained, but you can still find the code here if you want to use that as a starting point: https://github.com/maximecb/gym-minigrid/blob/4a8cace595876b9021b48a9bd8b635dd6fa65c80/gym_minigrid/envs/fourroomqa.py
Do note that some methods have been renamed since, eg: _randElem_
=> _rand_elem
from minigrid.
Hi Maxim,
Thank you so much for the code. I tweaked the file to my requirements (room objects and goal condition). I also used the fully observable wrapper as you mentioned.
But I can't seem to get rid of the mask that is rendered for depicting cells visible to the agent.
from minigrid.
The fully observable wrapper produces a grid as an observation. The render method is for human viewing, that doesn't change with the fully observable right now.
from minigrid.
Related Issues (20)
- [Question] Use of 'direction' in observation space? HOT 1
- [Bug Report] Toggling the box will make it disappear HOT 2
- [Bug Report] Error when creating BabyAI environment HOT 2
- [Question] Field of view algorithm explanation
- [Question] What do you mean by "done" action in the action space? HOT 3
- [Bug Report] Spec.to_json() of SimpleCrossing fails
- [Question] Getting total number of unique states HOT 1
- [Question] How to create vectorized envs for minigrid HOT 3
- [Bug Report] Unlock Pickup env is actually just Unlock HOT 4
- [Question] Difference between Minigrid and BabyAI envs HOT 1
- [Question] Is `ActionBonus` wrapper correct ? HOT 1
- [Question] How to build custom environment with custom action space HOT 1
- Python 3.11 support is missing from the README
- [Proposal] Update documentation HOT 3
- [Proposal] Add relevant project
- [Proposal] Discrete observations
- [Bug Report] ViewSizeWrapper ignored with RGBImgPartialObsWrapper HOT 1
- [Question] Get demonstration for 'MiniGrid-MultiRoom-N4-S5-v0' HOT 1
- [Bug Report] Cannot decode obs['image'] because of no implementation of agent in minigrid/core/world_object.py
- Accessing Specific Mission in BabyAI HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from minigrid.