Skip to content

Commit

Permalink
fix(avoidance): add guard for empty path in updateData (autowarefound…
Browse files Browse the repository at this point in the history
…ation#4633)

Signed-off-by: kosuke55 <kosuke.tnp@gmail.com>
  • Loading branch information
kosuke55 authored and kminoda committed Aug 21, 2023
1 parent 900e8cc commit c418a70
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2460,6 +2460,10 @@ void AvoidanceModule::updateData()

debug_data_ = DebugData();
avoidance_data_ = calcAvoidancePlanningData(debug_data_);
if (avoidance_data_.reference_path.points.empty()) {
// an empty path will kill further processing
return;
}

utils::avoidance::updateRegisteredObject(
registered_objects_, avoidance_data_.target_objects, parameters_);
Expand Down

0 comments on commit c418a70

Please sign in to comment.