Giter VIP home page Giter VIP logo

Comments (5)

maximecb avatar maximecb commented on July 24, 2024

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.

idigitopia avatar idigitopia commented on July 24, 2024

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.

maximecb avatar maximecb commented on July 24, 2024

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.

idigitopia avatar idigitopia commented on July 24, 2024

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.

maximecb avatar maximecb commented on July 24, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.