Skip to content

Change to use supercover #322

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

Open
wants to merge 7 commits into
base: master
Choose a base branch
from

Conversation

renan028
Copy link
Contributor

Description

As discussed here: #317 (comment)

Bresenham line drawing misses grid squares that the ray passes through. The supercover algorithm gets all the squares and it is the preferred algorithm to use when we search for possible collisions .
Great description in Realtime Collision Detection "7.4.2 Uniform Grid Intersection Test".

image

In this PR, we are replacing getLineCells (Bresenham) by supercover, which is a more conservative approach.

Note that we needed to change some tests because the resolution of the map is 1.0 and the robot size is 1.0 x 1.0, thus diagonals should cover all cells around with new supercover.

Copy link
Collaborator

@corot corot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 because

  • supercover result is more predictable and intuitive
  • matches find_valid_pose behavior

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

Successfully merging this pull request may close these issues.

3 participants