Skip to content

Commit

Permalink
fix(behavior_path_planner): reset current route lanelet in manual dri…
Browse files Browse the repository at this point in the history
…ve (autowarefoundation#7505)

Signed-off-by: Maxime CLEMENT <[email protected]>
  • Loading branch information
maxime-clem authored Jun 17, 2024
1 parent a6b5f27 commit 6398f9b
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -417,7 +417,9 @@ void BehaviorPathPlannerNode::run()
const auto controlled_by_autoware_autonomously =
planner_data_->operation_mode->mode == OperationModeState::AUTONOMOUS &&
planner_data_->operation_mode->is_autoware_control_enabled;
if (!controlled_by_autoware_autonomously && !planner_manager_->hasApprovedModules())
if (
!controlled_by_autoware_autonomously &&
!planner_manager_->hasNonAlwaysExecutableApprovedModules())
planner_manager_->resetCurrentRouteLanelet(planner_data_);

// run behavior planner
Expand Down

0 comments on commit 6398f9b

Please sign in to comment.