Skip to content

Commit b4a91ed

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 3fd7d65 commit b4a91ed

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
@@ -1202,6 +1202,9 @@ bool StartPlannerModule::isSafePath() const
12021202
// TODO(Sugahara): should safety check for backward path
12031203

12041204
const auto pull_out_path = getCurrentPath();
1205+
if (pull_out_path.points.empty()) {
1206+
return false;
1207+
}
12051208
const auto & current_pose = planner_data_->self_odometry->pose.pose;
12061209
const double current_velocity = std::hypot(
12071210
planner_data_->self_odometry->twist.twist.linear.x,

0 commit comments

Comments
 (0)