Skip to content
Snippets Groups Projects
Commit 4051d348 authored by Malte Roosen's avatar Malte Roosen
Browse files

fix bug when first target is unreachable

parent 738e8af2
No related branches found
No related tags found
No related merge requests found
......@@ -418,6 +418,11 @@ void HomerNavigationNode::performNextMove() {
targetPositionReached();
return;
}
if (m_waypoints.size() == 0) {
ROS_WARN_STREAM(
"No waypoints but trying to perform next move! Skipping.");
return;
}
// if we have accidentaly skipped waypoints, recalculate path
float minDistance = FLT_MAX;
float distance;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment