Skip to content

Commit dbbc52e

Browse files
authored
Merge pull request #1301 from tier4/cp-lane-change-terminal-only
fix(lane_change): cherry-pick disable terminal path
2 parents 8d6d830 + 67cb9a6 commit dbbc52e

File tree

2 files changed

+6
-7
lines changed

2 files changed

+6
-7
lines changed

planning/behavior_path_lane_change_module/src/interface.cpp

+1-2
Original file line numberDiff line numberDiff line change
@@ -129,8 +129,7 @@ BehaviorModuleOutput LaneChangeInterface::planWaitingApproval()
129129
{
130130
*prev_approved_path_ = getPreviousModuleOutput().path;
131131

132-
BehaviorModuleOutput out;
133-
out = module_type_->getTerminalLaneChangePath();
132+
BehaviorModuleOutput out = getPreviousModuleOutput();
134133
module_type_->insertStopPoint(module_type_->getLaneChangeStatus().current_lanes, out.path);
135134
out.turn_signal_info =
136135
getCurrentTurnSignalInfo(out.path, getPreviousModuleOutput().turn_signal_info);

planning/behavior_path_lane_change_module/src/scene.cpp

+5-5
Original file line numberDiff line numberDiff line change
@@ -1888,11 +1888,11 @@ bool NormalLaneChange::calcAbortPath()
18881888

18891889
PathWithLaneId reference_lane_segment = prev_module_path_;
18901890
{
1891-
const auto terminal_path =
1892-
calcTerminalLaneChangePath(reference_lanelets, selected_path.info.target_lanes);
1893-
if (terminal_path) {
1894-
reference_lane_segment = terminal_path->path;
1895-
}
1891+
// const auto terminal_path =
1892+
// calcTerminalLaneChangePath(reference_lanelets, selected_path.info.target_lanes);
1893+
// if (terminal_path) {
1894+
// reference_lane_segment = terminal_path->path;
1895+
// }
18961896
const auto return_pose = shifted_path.path.points.at(abort_return_idx).point.pose;
18971897
const auto seg_idx = motion_utils::findFirstNearestSegmentIndexWithSoftConstraints(
18981898
reference_lane_segment.points, return_pose, common_param.ego_nearest_dist_threshold,

0 commit comments

Comments
 (0)