Skip to content

Commit c4c594e

Browse files
committed
set current_lanes to avoid accessing empty current_lanes
Signed-off-by: Kento Yabuuchi <kento.yabuuchi.2@tier4.jp>
1 parent 0e539d1 commit c4c594e

File tree

1 file changed

+1
-0
lines changed
  • planning/behavior_path_planner/autoware_behavior_path_lane_change_module/src

1 file changed

+1
-0
lines changed

planning/behavior_path_planner/autoware_behavior_path_lane_change_module/src/scene.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@ std::pair<bool, bool> NormalLaneChange::getSafePath(LaneChangePath & safe_path)
8585
const auto target_lanes = getLaneChangeLanes(current_lanes, direction_);
8686

8787
if (target_lanes.empty()) {
88+
safe_path.info.current_lanes = current_lanes;
8889
return {false, false};
8990
}
9091

0 commit comments

Comments
 (0)