Skip to content

Commit 984e240

Browse files
beyzanurkayabeyza
authored andcommitted
fix(behavior_path_start_planner_module): check if pull_out_path is empty (autowarefoundation#6318)
check pull_out_path is empty Signed-off-by: beyza <bnk@leodrive.ai> Co-authored-by: beyza <bnk@leodrive.ai>
1 parent 50641ce commit 984e240

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

planning/behavior_path_start_planner_module/src/start_planner_module.cpp

+3
Original file line numberDiff line numberDiff line change
@@ -1156,6 +1156,9 @@ bool StartPlannerModule::isSafePath() const
11561156
// TODO(Sugahara): should safety check for backward path
11571157

11581158
const auto pull_out_path = getCurrentPath();
1159+
if (pull_out_path.points.empty()) {
1160+
return false;
1161+
}
11591162
const auto & current_pose = planner_data_->self_odometry->pose.pose;
11601163
const double current_velocity = std::hypot(
11611164
planner_data_->self_odometry->twist.twist.linear.x,

0 commit comments

Comments
 (0)