Giter Site home page Giter Site logo

Comments (7)

semitable avatar semitable commented on May 30, 2024 1

I think you'll have to extract them from self.grid in the warehouse class. Apologies, but I don't have the time capacity to assist with that. The _make_obs function might be a good starting point though:
https://github.com/semitable/robotic-warehouse/blob/master/rware/warehouse.py#L470

from robotic-warehouse.

semitable avatar semitable commented on May 30, 2024

This is a good start to understanding it: https://github.com/semitable/robotic-warehouse/blob/master/rware/warehouse.py#L404

you can even use the "slow" observations (observation type DICT) that you can then probe as a dictionary. See here:
https://github.com/semitable/robotic-warehouse/blob/master/rware/warehouse.py#L163

from robotic-warehouse.

semitable avatar semitable commented on May 30, 2024

related to #17

from robotic-warehouse.

Gigolino2001 avatar Gigolino2001 commented on May 30, 2024

@semitable Thank you for the help.

I still dont get it what the sensor range means. Basically it is the range of the agent. But if the sensor_range is 1 it means that the agent has the informations about the cell above,right,left and above?

Btw how could we extract the positions of the requested shelfs?

from robotic-warehouse.

semitable avatar semitable commented on May 30, 2024

If sensor range is 1, then the agent can see everything inside a 3x3 box centred around it, i.e. the directions you mention plus the diagonal ones.
For a sensor range of 2 it's a 5x5 box centred around it.

You mean the absolute positions? For that you might have to dig into the code as the absolute position of shelves is not provided in the observation vector.

from robotic-warehouse.

Gigolino2001 avatar Gigolino2001 commented on May 30, 2024

If sensor range is 1, then the agent can see everything inside a 3x3 box centred around it, i.e. the directions you mention plus the diagonal ones.

For a sensor range of 2 it's a 5x5 box centred around it.

You mean the absolute positions? For that you might have to dig into the code as the absolute position of shelves is not provided in the observation vector.

Yes, I was asking for the absolute positions. Where can i find them to return them on the observation space?

from robotic-warehouse.

Gigolino2001 avatar Gigolino2001 commented on May 30, 2024

I think you'll have to extract them from self.grid in the warehouse class. Apologies, but I don't have the time capacity to assist with that. The _make_obs function might be a good starting point though: https://github.com/semitable/robotic-warehouse/blob/master/rware/warehouse.py#L470

Thank you! I finally manage to extract the absolute positions of the requested shelfs in the observation space.
Screenshot 2023-05-24 200714

P.S: I have changed the original grid from my initial comment. Here is the actual grid:
Screenshot 2023-05-24 201211

from robotic-warehouse.

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.