Skip to content

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

ros1 PRs that target the ROS1 version of move base flex

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants