Skip to content

Commit

Permalink
fix boundary point exclusion in convexFillCells (ros-navigation#2161)
Browse files Browse the repository at this point in the history
  • Loading branch information
ChristofDubs authored and ruffsl committed Jul 2, 2021
1 parent 8e645aa commit 084371a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nav2_costmap_2d/src/costmap_2d.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -467,7 +467,7 @@ void Costmap2D::convexFillCells(

MapLocation pt;
// loop though cells in the column
for (unsigned int y = min_pt.y; y < max_pt.y; ++y) {
for (unsigned int y = min_pt.y; y <= max_pt.y; ++y) {
pt.x = x;
pt.y = y;
polygon_cells.push_back(pt);
Expand Down

0 comments on commit 084371a

Please sign in to comment.