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 9815f5f commit 7794e3d
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -844,6 +844,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 7794e3d

Please sign in to comment.