Skip to content

Commit a1bcfba

Browse files
committed
fix: expand drivable lanes
Signed-off-by: satoshi-ota <satoshi.ota928@gmail.com>
1 parent bf80dd5 commit a1bcfba

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

planning/behavior_path_sampling_planner_module/src/sampling_planner_module.cpp

+3-2
Original file line numberDiff line numberDiff line change
@@ -379,7 +379,7 @@ BehaviorModuleOutput SamplingPlannerModule::plan()
379379
const auto reference_path_ptr =
380380
std::make_shared<PathWithLaneId>(getPreviousModuleOutput().reference_path);
381381
if (reference_path_ptr->points.empty()) {
382-
return {};
382+
return getPreviousModuleOutput();
383383
}
384384
auto reference_spline = [&]() -> sampler_common::transform::Spline2D {
385385
std::vector<double> x;
@@ -444,7 +444,7 @@ BehaviorModuleOutput SamplingPlannerModule::plan()
444444
RCLCPP_ERROR(
445445
rclcpp::get_logger("behavior_path_planner").get_child("utils"),
446446
"failed to find closest lanelet within route!!!");
447-
return {};
447+
return getPreviousModuleOutput();
448448
}
449449
const auto current_lane_sequence = planner_data_->route_handler->getLaneletSequence(
450450
current_lane, ego_pose, p.backward_path_length, p.forward_path_length);
@@ -630,6 +630,7 @@ BehaviorModuleOutput SamplingPlannerModule::plan()
630630
out.path = (prev_sampling_path_) ? out_path : getPreviousModuleOutput().path;
631631
out.reference_path = getPreviousModuleOutput().reference_path;
632632
out.drivable_area_info = getPreviousModuleOutput().drivable_area_info;
633+
extendOutputDrivableArea(out);
633634
return out;
634635
}
635636

0 commit comments

Comments
 (0)