Skip to content

Commit

Permalink
fix boundary point exclusion in convexFillCells (#2161)
Browse files Browse the repository at this point in the history
  • Loading branch information
ChristofDubs authored and SteveMacenski committed Apr 5, 2021
1 parent bfc4f32 commit 6253845
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 @@ -435,7 +435,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 6253845

Please sign in to comment.