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

Clarification on grid and obstacle tags in map configuration #7

Open
sheviarivas opened this issue Dec 28, 2024 · 0 comments
Open

Clarification on grid and obstacle tags in map configuration #7

sheviarivas opened this issue Dec 28, 2024 · 0 comments

Comments

@sheviarivas
Copy link

Hello! What's the correct use of tags obstacles and grid? I've read the README file, but there are things that I don't quite understand

  1. About the tag grid: if a cell is marked by a number different than 0, the expected behaviour would be that an agent can never be in that cell?

  2. About the tag obstacle: can agents go through obstacles?

  3. It's there a functional difference between marking a cell as untraversable cell, and defining a square-shaped obstacle that occupies the same cell?

  4. Also, if a cell is marked as untraversable, should it have obstacles surround it?
    for example:

   <map>
        <width>2</width>
        <height>2</height>
        <cellsize>1</cellsize>
        <grid>
            <row>0 0</row>
            <row>1 1</row>
        </grid>
  </map>

Should the obstacles look like this?

  <obstacles number="1" >
        <obstacle>
            <vertex xr="0" yr="0"/>
            <vertex xr="2" yr="0"/>
            <vertex xr="2" yr="1"/>
            <vertex xr="0" yr="1"/>
        </obstacle>
  </obstacles>
  1. For the previous map configuration, is this setup valid this too?
  <obstacles number="2" >
        <obstacle>
            <vertex xr="0" yr="0"/>
            <vertex xr="1" yr="0"/>
            <vertex xr="1" yr="1"/>
            <vertex xr="1" yr="0"/>
        </obstacle>
        <obstacle>
            <vertex xr="1" yr="0"/>
            <vertex xr="2" yr="0"/>
            <vertex xr="2" yr="1"/>
            <vertex xr="1" yr="1"/>
        </obstacle>
  </obstacles>

Thank you very much for your time. Best regards

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

No branches or pull requests

1 participant