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

Questions about calculating boundaries #7

Open
zhaohongbo02 opened this issue Nov 29, 2023 · 0 comments
Open

Questions about calculating boundaries #7

zhaohongbo02 opened this issue Nov 29, 2023 · 0 comments

Comments

@zhaohongbo02
Copy link

In a grid map, are static obstacle shapes the corresponding grid? Do the coordinates refer to the coordinates of the center of the obstacle, which is also the center of the grid?
By analyzing the code of the Grid class, the grid map is based on the largest rectangle formed by static obstacles as the boundary. However, in details, there are some small problems in the conversion of coordinates and grids. For example,

  • grid_size=100
  • the center coordinates of the leftmost obstacle are [0, 0]
  • the center coordinates of the rightmost obstacle are [1000,0]
    At this time,
  • minx=0, maxx=1000, x_size= (1000 - 0) // 100 = 10,
    so the grid map has 10 horizontal cells, but there are actually 11, which are (0,0), (100,0), ..., (1000, 0).
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