Skip to content

Commit b6d0ba2

Browse files
authored
Fix bug where polygon wasn't clearing when a new coverage plan was requested (#84)
1 parent 73fc308 commit b6d0ba2

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

opennav_coverage_bt/src/compute_complete_coverage_path.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ void ComputeCoveragePathAction::on_tick()
4646
// Convert from vector of Polygons to coverage sp. message
4747
std::vector<geometry_msgs::msg::Polygon> polys;
4848
getInput("polygons", polys);
49+
goal_.polygons.clear();
4950
goal_.polygons.resize(polys.size());
5051
for (unsigned int i = 0; i != polys.size(); i++) {
5152
for (unsigned int j = 0; j != polys[i].points.size(); j++) {

0 commit comments

Comments
 (0)