Comments (4)
I agree that if there is a text-based format, it should mirror the format from the __str__
method. We may want to change the symbols used to represent the agent though, as they are non-ASCII and hard to type on a keyboard.
For creating envs with parameters, the way to do this is to import them directly, eg: from minigrid.envs import TextFileEnv(file_name)
.
I'm going to ask the obvious question though: do you personally have a need for this feature? Would you make use of it. Because it's not that hard to create environments just by writing code, so unless you actually have a legitimate use for this, I would say YAGNI?
from minigrid.
I agree that if there is a text-based format, it should mirror the format from the
__str__
method. We may want to change the symbols used to represent the agent though, as they are non-ASCII and hard to type on a keyboard.For creating envs with parameters, the way to do this is to import them directly, eg:
from minigrid.envs import TextFileEnv(file_name)
.I'm going to ask the obvious question though: do you personally have a need for this feature? Would you make use of it. Because it's not that hard to create environments just by writing code, so unless you actually have a legitimate use for this, I would say YAGNI?
Thanks it seems like we do need this feature.
from minigrid.
One thing we should do for this feature is have some round-trip testing. Grid to text, then parse the text back into a grid, and make sure the two versions are identical. I would implement all of the __str__
and parsing functionality into the grid class. That will also require us to treat agents as world objects, in order to parse the agent position as well.
from minigrid.
Closing for now.
from minigrid.
Related Issues (20)
- [Proposal] No-death wrapper / argument HOT 6
- [Proposal] Decouple agent implementation and rendering from grid HOT 2
- [Question] Place objects in random locations HOT 2
- [Question] DoorKey Locked Door Location Question HOT 3
- [Bug Report] RGBImgObsWrapper hardcodes `highlight` parameter HOT 3
- [Bug Report] self.fig.canvas.set_window_title(title) API deprecated HOT 1
- [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
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.