Skip to content

Commit 7b13db6

Browse files
add empty polygon and point checks
Signed-off-by: Daniel Sanchez <danielsanchezaran@gmail.com>
1 parent 4971240 commit 7b13db6

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

planning/behavior_path_start_planner_module/src/shift_pull_out.cpp

+4-4
Original file line numberDiff line numberDiff line change
@@ -99,10 +99,6 @@ std::optional<PullOutPath> ShiftPullOut::plan(const Pose & start_pose, const Pos
9999
continue;
100100
}
101101

102-
if (isPullOutPathCollided(pull_out_path, parameters_.shift_collision_check_distance_from_end)) {
103-
continue;
104-
}
105-
106102
// crop backward path
107103
// removes points which are out of lanes up to the start pose.
108104
// this ensures that the backward_path stays within the drivable area when starting from a
@@ -118,6 +114,10 @@ std::optional<PullOutPath> ShiftPullOut::plan(const Pose & start_pose, const Pos
118114
shift_path.points = cropped_path.points;
119115
shift_path.header = planner_data_->route_handler->getRouteHeader();
120116

117+
if (isPullOutPathCollided(pull_out_path, parameters_.shift_collision_check_distance_from_end)) {
118+
continue;
119+
}
120+
121121
return pull_out_path;
122122
}
123123

0 commit comments

Comments
 (0)