Skip to content

Commit

Permalink
do not decel when searching
Browse files Browse the repository at this point in the history
Signed-off-by: kosuke55 <[email protected]>
  • Loading branch information
kosuke55 committed Nov 13, 2023
1 parent 5b18bf3 commit 0602a72
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -890,6 +890,11 @@ BehaviorModuleOutput GoalPlannerModule::planRunning()

BehaviorModuleOutput GoalPlannerModule::planPullOverAsCandidate()
{
// if pull over path candidates generation is not finished, use previous module output
if (thread_safe_data_.get_pull_over_path_candidates().empty()) {
return getPreviousModuleOutput();
}

BehaviorModuleOutput output{};
const BehaviorModuleOutput pull_over_output = planPullOver();
output.modified_goal = pull_over_output.modified_goal;
Expand Down

0 comments on commit 0602a72

Please sign in to comment.