Skip to content

Commit

Permalink
Fix bug with inflation artifacts being left behind
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex Henning committed Jun 2, 2016
1 parent 1369395 commit 9ee8580
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions costmap_2d/plugins/inflation_layer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -150,10 +150,10 @@ void InflationLayer::updateBounds(double robot_x, double robot_y, double robot_y
last_min_y_ = *min_y;
last_max_x_ = *max_x;
last_max_y_ = *max_y;
*min_x = std::min(tmp_min_x, *min_x);
*min_y = std::min(tmp_min_y, *min_y);
*max_x = std::max(tmp_max_x, *max_x);
*max_y = std::max(tmp_max_y, *max_y);
*min_x = std::min(tmp_min_x, *min_x) + inflation_radius_;
*min_y = std::min(tmp_min_y, *min_y) + inflation_radius_;
*max_x = std::max(tmp_max_x, *max_x) + inflation_radius_;
*max_y = std::max(tmp_max_y, *max_y) + inflation_radius_;
}
}

Expand Down

0 comments on commit 9ee8580

Please sign in to comment.