Skip to content

Commit 4a2b760

Browse files
authored
Fix polygons not clearing (#72)
* Add behavior tree to navigate to start before starting fields navigation * snake case * comments * rviz visualization for demo * Update rviz_config.rviz * Linting and add to other demo * Fix polygons not clearing, credit to tonynajjar --------- Co-authored-by: Marc Morcos <[email protected]>
1 parent bb0a0b6 commit 4a2b760

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

Lines changed: 1 addition & 0 deletions
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)