Commit eceefd7 2 people authored and committed
1 parent 3ea6caf commit eceefd7 Copy full SHA for eceefd7
File tree 2 files changed +8
-4
lines changed
planning/behavior_path_lane_change_module/src
2 files changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -99,10 +99,6 @@ BehaviorModuleOutput LaneChangeInterface::plan()
99
99
resetPathCandidate ();
100
100
resetPathReference ();
101
101
102
- if (!module_type_->isValidPath ()) {
103
- return {};
104
- }
105
-
106
102
auto output = module_type_->generateOutput ();
107
103
path_reference_ = std::make_shared<PathWithLaneId>(output.reference_path );
108
104
*prev_approved_path_ = getPreviousModuleOutput ().path ;
Original file line number Diff line number Diff line change @@ -197,6 +197,14 @@ BehaviorModuleOutput NormalLaneChange::generateOutput()
197
197
{
198
198
BehaviorModuleOutput output;
199
199
200
+ if (!status_.is_valid_path ) {
201
+ output.path = prev_module_path_;
202
+ output.reference_path = prev_module_reference_path_;
203
+ output.drivable_area_info = prev_drivable_area_info_;
204
+ output.turn_signal_info = prev_turn_signal_info_;
205
+ return output;
206
+ }
207
+
200
208
if (isAbortState () && abort_path_) {
201
209
output.path = abort_path_->path ;
202
210
output.reference_path = prev_module_reference_path_;
You can’t perform that action at this time.
0 commit comments