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 7dc5688 commit 56c244e
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -839,6 +839,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 56c244e

Please sign in to comment.