Skip to content

Commit

Permalink
fix(lane_change): add empty guard
Browse files Browse the repository at this point in the history
Signed-off-by: Fumiya Watanabe <[email protected]>
  • Loading branch information
rej55 committed Jan 29, 2024
1 parent 48d5355 commit 1dc6ee3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions planning/behavior_path_lane_change_module/src/scene.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1672,6 +1672,10 @@ TurnSignalInfo NormalLaneChange::calcTurnSignalInfo() const

TurnSignalInfo turn_signal_info{};

if (path.path.points.empty()) {
return turn_signal_info;
}

// desired start pose = prepare start pose
turn_signal_info.desired_start_point = std::invoke([&]() {
const auto blinker_start_duration = planner_data_->parameters.turn_signal_search_time;
Expand Down

0 comments on commit 1dc6ee3

Please sign in to comment.