Skip to content

Commit

Permalink
planner - implemented early return in selectRelevant (when all ob…
Browse files Browse the repository at this point in the history
…jects are neglected)
  • Loading branch information
rayvburn committed Sep 20, 2023
1 parent ec8146f commit ca2693e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions include/hubero_local_planner/hubero_planner.h
Original file line number Diff line number Diff line change
Expand Up @@ -360,6 +360,11 @@ class HuberoPlanner {
return std::move(objects);
}

// some type of objects is completely neglected
if (max_object_num == 0) {
return std::vector<T>();
}

// pair with scalar metric and object
std::vector<std::pair<double, T>> objects_sort;
// save metrics for each object
Expand Down

0 comments on commit ca2693e

Please sign in to comment.