Skip to content

Commit

Permalink
calculate longitudinal distance
Browse files Browse the repository at this point in the history
Signed-off-by: kyoichi-sugahara <[email protected]>
  • Loading branch information
kyoichi-sugahara committed Feb 8, 2024
1 parent 485364f commit 098b6fd
Showing 1 changed file with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1004,10 +1004,12 @@ std::vector<Pose> StartPlannerModule::searchPullOutStartPoseCandidates(
continue;
}

if (utils::checkCollisionBetweenFootprintAndObjects(
local_vehicle_footprint, *backed_pose, back_stop_objects_in_pull_out_lanes,
parameters_->back_objects_collision_check_margin)) {
break; // poses behind this has a collision, so break.
if (
utils::calcLongitudinalDistanceFromEgoToObjects(
*backed_pose, planner_data_->parameters.base_link2front,
planner_data_->parameters.base_link2rear,
back_stop_objects_in_pull_out_lanes) < parameters_->back_objects_collision_check_margin) {
break; // poses behind this is too close to back static object, so break.
}

pull_out_start_pose_candidates.push_back(*backed_pose);
Expand Down

0 comments on commit 098b6fd

Please sign in to comment.