Skip to content

Commit

Permalink
fix(autoware_behavior_path_lane_change_module): avoid empty current l…
Browse files Browse the repository at this point in the history
…anes (#1445)

set current_lanes to avoid accessing empty current_lanes

Signed-off-by: Kento Yabuuchi <[email protected]>
  • Loading branch information
KYabuuchi authored Aug 7, 2024
1 parent bc61177 commit c43d7d4
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ std::pair<bool, bool> NormalLaneChange::getSafePath(LaneChangePath & safe_path)
const auto target_lanes = getLaneChangeLanes(current_lanes, direction_);

if (target_lanes.empty()) {
safe_path.info.current_lanes = current_lanes;
return {false, false};
}

Expand Down

0 comments on commit c43d7d4

Please sign in to comment.