Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(start_planner, goal_planner): remove inappropriate reference value #5618

Merged
merged 1 commit into from
Nov 17, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@
if (thread_safe_data_.get_goal_candidates().empty()) {
goal_searcher_->setPlannerData(planner_data_);
goal_searcher_->setReferenceGoal(
calcRefinedGoal(planner_data_->route_handler->getOriginalGoalPose()));

Check warning on line 267 in planning/behavior_path_planner/src/scene_module/goal_planner/goal_planner_module.cpp

View check run for this annotation

Codecov / codecov/patch

planning/behavior_path_planner/src/scene_module/goal_planner/goal_planner_module.cpp#L267

Added line #L267 was not covered by tests
thread_safe_data_.set_goal_candidates(generateGoalCandidates());
}

Expand Down Expand Up @@ -312,7 +312,7 @@
resetPathCandidate();
resetPathReference();
debug_marker_.markers.clear();
prev_data_.reset();

Check warning on line 315 in planning/behavior_path_planner/src/scene_module/goal_planner/goal_planner_module.cpp

View check run for this annotation

Codecov / codecov/patch

planning/behavior_path_planner/src/scene_module/goal_planner/goal_planner_module.cpp#L315

Added line #L315 was not covered by tests
last_approval_data_.reset();
}

Expand Down Expand Up @@ -522,7 +522,7 @@
return false;
}

bool GoalPlannerModule::canReturnToLaneParking()

Check warning on line 525 in planning/behavior_path_planner/src/scene_module/goal_planner/goal_planner_module.cpp

View check run for this annotation

Codecov / codecov/patch

planning/behavior_path_planner/src/scene_module/goal_planner/goal_planner_module.cpp#L525

Added line #L525 was not covered by tests
{
// return only before starting free space parking
if (!isStopped()) {
Expand Down Expand Up @@ -551,25 +551,25 @@
const bool is_close_to_path =
std::abs(motion_utils::calcLateralOffset(path.points, current_point)) < th_distance;
if (!is_close_to_path) {
return false;

Check warning on line 554 in planning/behavior_path_planner/src/scene_module/goal_planner/goal_planner_module.cpp

View check run for this annotation

Codecov / codecov/patch

planning/behavior_path_planner/src/scene_module/goal_planner/goal_planner_module.cpp#L554

Added line #L554 was not covered by tests
}

return true;
}

GoalCandidates GoalPlannerModule::generateGoalCandidates() const

Check warning on line 560 in planning/behavior_path_planner/src/scene_module/goal_planner/goal_planner_module.cpp

View check run for this annotation

Codecov / codecov/patch

planning/behavior_path_planner/src/scene_module/goal_planner/goal_planner_module.cpp#L560

Added line #L560 was not covered by tests
{
// calculate goal candidates
const auto & route_handler = planner_data_->route_handler;
if (goal_planner_utils::isAllowedGoalModification(route_handler)) {
return goal_searcher_->search();

Check warning on line 565 in planning/behavior_path_planner/src/scene_module/goal_planner/goal_planner_module.cpp

View check run for this annotation

Codecov / codecov/patch

planning/behavior_path_planner/src/scene_module/goal_planner/goal_planner_module.cpp#L565

Added line #L565 was not covered by tests
}

// NOTE:
// currently since pull over is performed only when isAllowedGoalModification is true,
// never be in the following process.
GoalCandidate goal_candidate{};
goal_candidate.goal_pose = route_handler->getOriginalGoalPose();

Check warning on line 572 in planning/behavior_path_planner/src/scene_module/goal_planner/goal_planner_module.cpp

View check run for this annotation

Codecov / codecov/patch

planning/behavior_path_planner/src/scene_module/goal_planner/goal_planner_module.cpp#L571-L572

Added lines #L571 - L572 were not covered by tests
goal_candidate.distance_from_original_goal = 0.0;
GoalCandidates goal_candidates{};
goal_candidates.push_back(goal_candidate);
Expand Down Expand Up @@ -608,7 +608,7 @@

if (parameters_->use_object_recognition) {
// Create a map of PullOverPath pointer to largest collision check margin
auto calcLargestMargin = [&](const PullOverPath & pull_over_path) {

Check warning on line 611 in planning/behavior_path_planner/src/scene_module/goal_planner/goal_planner_module.cpp

View check run for this annotation

Codecov / codecov/patch

planning/behavior_path_planner/src/scene_module/goal_planner/goal_planner_module.cpp#L611

Added line #L611 was not covered by tests
// check has safe goal
const auto goal_candidate_it = std::find_if(
goal_candidates.begin(), goal_candidates.end(),
Expand All @@ -619,17 +619,17 @@
return 0.0;
}
// calc largest margin
std::vector<double> scale_factors{3.0, 2.0, 1.0};

Check warning on line 622 in planning/behavior_path_planner/src/scene_module/goal_planner/goal_planner_module.cpp

View check run for this annotation

Codecov / codecov/patch

planning/behavior_path_planner/src/scene_module/goal_planner/goal_planner_module.cpp#L622

Added line #L622 was not covered by tests
const double margin = parameters_->object_recognition_collision_check_margin;
const auto resampled_path =
utils::resamplePathWithSpline(pull_over_path.getParkingPath(), 0.5);
for (const auto & scale_factor : scale_factors) {
if (!checkObjectsCollision(resampled_path, margin * scale_factor)) {
return margin * scale_factor;

Check warning on line 628 in planning/behavior_path_planner/src/scene_module/goal_planner/goal_planner_module.cpp

View check run for this annotation

Codecov / codecov/patch

planning/behavior_path_planner/src/scene_module/goal_planner/goal_planner_module.cpp#L628

Added line #L628 was not covered by tests
}
}
return 0.0;
};

Check warning on line 632 in planning/behavior_path_planner/src/scene_module/goal_planner/goal_planner_module.cpp

View check run for this annotation

Codecov / codecov/patch

planning/behavior_path_planner/src/scene_module/goal_planner/goal_planner_module.cpp#L632

Added line #L632 was not covered by tests

// Create a map of PullOverPath pointer to largest collision check margin
std::map<size_t, double> path_id_to_margin_map;
Expand All @@ -638,13 +638,13 @@
}

// sorts in descending order so the item with larger margin comes first
std::stable_sort(

Check warning on line 641 in planning/behavior_path_planner/src/scene_module/goal_planner/goal_planner_module.cpp

View check run for this annotation

Codecov / codecov/patch

planning/behavior_path_planner/src/scene_module/goal_planner/goal_planner_module.cpp#L641

Added line #L641 was not covered by tests
sorted_pull_over_path_candidates.begin(), sorted_pull_over_path_candidates.end(),
[&path_id_to_margin_map](const PullOverPath & a, const PullOverPath & b) {

Check warning on line 643 in planning/behavior_path_planner/src/scene_module/goal_planner/goal_planner_module.cpp

View check run for this annotation

Codecov / codecov/patch

planning/behavior_path_planner/src/scene_module/goal_planner/goal_planner_module.cpp#L643

Added line #L643 was not covered by tests
if (std::abs(path_id_to_margin_map[a.id] - path_id_to_margin_map[b.id]) < 0.01) {
return false;
}
return path_id_to_margin_map[a.id] > path_id_to_margin_map[b.id];

Check warning on line 647 in planning/behavior_path_planner/src/scene_module/goal_planner/goal_planner_module.cpp

View check run for this annotation

Codecov / codecov/patch

planning/behavior_path_planner/src/scene_module/goal_planner/goal_planner_module.cpp#L647

Added line #L647 was not covered by tests
});
}

Expand All @@ -663,7 +663,7 @@
return sorted_pull_over_path_candidates;
}

std::optional<std::pair<PullOverPath, GoalCandidate>> GoalPlannerModule::selectPullOverPath(

Check warning on line 666 in planning/behavior_path_planner/src/scene_module/goal_planner/goal_planner_module.cpp

View check run for this annotation

Codecov / codecov/patch

planning/behavior_path_planner/src/scene_module/goal_planner/goal_planner_module.cpp#L666

Added line #L666 was not covered by tests
const std::vector<PullOverPath> & pull_over_path_candidates,
const GoalCandidates & goal_candidates, const double collision_check_margin) const
{
Expand All @@ -683,19 +683,19 @@
}

const auto resampled_path = utils::resamplePathWithSpline(pull_over_path.getParkingPath(), 0.5);
if (

Check warning on line 686 in planning/behavior_path_planner/src/scene_module/goal_planner/goal_planner_module.cpp

View check run for this annotation

Codecov / codecov/patch

planning/behavior_path_planner/src/scene_module/goal_planner/goal_planner_module.cpp#L686

Added line #L686 was not covered by tests
parameters_->use_object_recognition &&
checkObjectsCollision(resampled_path, collision_check_margin, true /*update_debug_data*/)) {
continue;

Check warning on line 689 in planning/behavior_path_planner/src/scene_module/goal_planner/goal_planner_module.cpp

View check run for this annotation

Codecov / codecov/patch

planning/behavior_path_planner/src/scene_module/goal_planner/goal_planner_module.cpp#L689

Added line #L689 was not covered by tests
}

if (

Check warning on line 692 in planning/behavior_path_planner/src/scene_module/goal_planner/goal_planner_module.cpp

View check run for this annotation

Codecov / codecov/patch

planning/behavior_path_planner/src/scene_module/goal_planner/goal_planner_module.cpp#L692

Added line #L692 was not covered by tests
parameters_->use_occupancy_grid_for_path_collision_check &&
checkOccupancyGridCollision(resampled_path)) {
continue;
}

return std::make_pair(pull_over_path, *goal_candidate_it);

Check warning on line 698 in planning/behavior_path_planner/src/scene_module/goal_planner/goal_planner_module.cpp

View check run for this annotation

Codecov / codecov/patch

planning/behavior_path_planner/src/scene_module/goal_planner/goal_planner_module.cpp#L698

Added line #L698 was not covered by tests
}

return {};
Expand Down Expand Up @@ -937,11 +937,11 @@
// select safe path from lane parking pull over path candidates
// and set it to thread_safe_data_

thread_safe_data_.clearPullOverPath();

Check warning on line 940 in planning/behavior_path_planner/src/scene_module/goal_planner/goal_planner_module.cpp

View check run for this annotation

Codecov / codecov/patch

planning/behavior_path_planner/src/scene_module/goal_planner/goal_planner_module.cpp#L940

Added line #L940 was not covered by tests

// update goal candidates
goal_searcher_->setPlannerData(planner_data_);
auto goal_candidates = thread_safe_data_.get_goal_candidates();

Check warning on line 944 in planning/behavior_path_planner/src/scene_module/goal_planner/goal_planner_module.cpp

View check run for this annotation

Codecov / codecov/patch

planning/behavior_path_planner/src/scene_module/goal_planner/goal_planner_module.cpp#L944

Added line #L944 was not covered by tests
goal_searcher_->update(goal_candidates);

// update pull over path candidates
Expand Down Expand Up @@ -1016,7 +1016,7 @@
setStopReason(StopReason::GOAL_PLANNER, thread_safe_data_.get_pull_over_path()->getFullPath());
}

void GoalPlannerModule::updatePreviousData(const BehaviorModuleOutput & output)

Check warning on line 1019 in planning/behavior_path_planner/src/scene_module/goal_planner/goal_planner_module.cpp

View check run for this annotation

Codecov / codecov/patch

planning/behavior_path_planner/src/scene_module/goal_planner/goal_planner_module.cpp#L1019

Added line #L1019 was not covered by tests
{
if (prev_data_.found_path || !prev_data_.stop_path) {
prev_data_.stop_path = output.path;
Expand Down Expand Up @@ -1098,9 +1098,9 @@
const double pull_over_velocity = parameters_->pull_over_velocity;

const lanelet::ConstLanelets current_lanes = utils::getExtendedCurrentLanes(
planner_data_, parameters_->backward_goal_search_length,

Check warning on line 1101 in planning/behavior_path_planner/src/scene_module/goal_planner/goal_planner_module.cpp

View check run for this annotation

Codecov / codecov/patch

planning/behavior_path_planner/src/scene_module/goal_planner/goal_planner_module.cpp#L1101

Added line #L1101 was not covered by tests
parameters_->forward_goal_search_length,
/*forward_only_in_route*/ false);

Check warning on line 1103 in planning/behavior_path_planner/src/scene_module/goal_planner/goal_planner_module.cpp

View check run for this annotation

Codecov / codecov/patch

planning/behavior_path_planner/src/scene_module/goal_planner/goal_planner_module.cpp#L1103

Added line #L1103 was not covered by tests

if (current_lanes.empty()) {
return PathWithLaneId{};
Expand Down Expand Up @@ -1189,9 +1189,9 @@

// generate stop reference path
const lanelet::ConstLanelets current_lanes = utils::getExtendedCurrentLanes(
planner_data_, parameters_->backward_goal_search_length,

Check warning on line 1192 in planning/behavior_path_planner/src/scene_module/goal_planner/goal_planner_module.cpp

View check run for this annotation

Codecov / codecov/patch

planning/behavior_path_planner/src/scene_module/goal_planner/goal_planner_module.cpp#L1192

Added line #L1192 was not covered by tests
parameters_->forward_goal_search_length,
/*forward_only_in_route*/ false);

Check warning on line 1194 in planning/behavior_path_planner/src/scene_module/goal_planner/goal_planner_module.cpp

View check run for this annotation

Codecov / codecov/patch

planning/behavior_path_planner/src/scene_module/goal_planner/goal_planner_module.cpp#L1194

Added line #L1194 was not covered by tests

const auto s_current = lanelet::utils::getArcCoordinates(current_lanes, current_pose).length;
const double s_start = std::max(0.0, s_current - common_parameters.backward_path_length);
Expand Down Expand Up @@ -1268,7 +1268,7 @@
return false;
}

if (

Check warning on line 1271 in planning/behavior_path_planner/src/scene_module/goal_planner/goal_planner_module.cpp

View check run for this annotation

Codecov / codecov/patch

planning/behavior_path_planner/src/scene_module/goal_planner/goal_planner_module.cpp#L1271

Added line #L1271 was not covered by tests
parameters_->use_object_recognition &&
checkObjectsCollision(
thread_safe_data_.get_pull_over_path()->getCurrentPath(),
Expand All @@ -1276,10 +1276,10 @@
return true;
}

if (

Check warning on line 1279 in planning/behavior_path_planner/src/scene_module/goal_planner/goal_planner_module.cpp

View check run for this annotation

Codecov / codecov/patch

planning/behavior_path_planner/src/scene_module/goal_planner/goal_planner_module.cpp#L1279

Added line #L1279 was not covered by tests
parameters_->use_occupancy_grid_for_path_collision_check &&
checkOccupancyGridCollision(thread_safe_data_.get_pull_over_path()->getCurrentPath())) {
return true;

Check warning on line 1282 in planning/behavior_path_planner/src/scene_module/goal_planner/goal_planner_module.cpp

View check run for this annotation

Codecov / codecov/patch

planning/behavior_path_planner/src/scene_module/goal_planner/goal_planner_module.cpp#L1282

Added line #L1282 was not covered by tests
}

return false;
Expand Down Expand Up @@ -1374,16 +1374,16 @@
return turn_signal;
}

bool GoalPlannerModule::checkOccupancyGridCollision(const PathWithLaneId & path) const

Check warning on line 1377 in planning/behavior_path_planner/src/scene_module/goal_planner/goal_planner_module.cpp

View check run for this annotation

Codecov / codecov/patch

planning/behavior_path_planner/src/scene_module/goal_planner/goal_planner_module.cpp#L1377

Added line #L1377 was not covered by tests
{
if (!occupancy_grid_map_) {
return false;
}
const bool check_out_of_range = false;
return occupancy_grid_map_->hasObstacleOnPath(path, check_out_of_range);

Check warning on line 1383 in planning/behavior_path_planner/src/scene_module/goal_planner/goal_planner_module.cpp

View check run for this annotation

Codecov / codecov/patch

planning/behavior_path_planner/src/scene_module/goal_planner/goal_planner_module.cpp#L1383

Added line #L1383 was not covered by tests
}

bool GoalPlannerModule::checkObjectsCollision(

Check warning on line 1386 in planning/behavior_path_planner/src/scene_module/goal_planner/goal_planner_module.cpp

View check run for this annotation

Codecov / codecov/patch

planning/behavior_path_planner/src/scene_module/goal_planner/goal_planner_module.cpp#L1386

Added line #L1386 was not covered by tests
const PathWithLaneId & path, const double collision_check_margin,
const bool update_debug_data) const
{
Expand Down Expand Up @@ -1442,8 +1442,8 @@
tier4_autoware_utils::calcOffsetPose(p.point.pose, 0.0, extra_lateral_margin / 2.0, 0.0);
const auto ego_polygon = tier4_autoware_utils::toFootprint(
lateral_offset_pose,
planner_data_->parameters.base_link2front + collision_check_margin + extra_stopping_margin,
planner_data_->parameters.base_link2rear + collision_check_margin,

Check warning on line 1446 in planning/behavior_path_planner/src/scene_module/goal_planner/goal_planner_module.cpp

View check run for this annotation

Codecov / codecov/patch

planning/behavior_path_planner/src/scene_module/goal_planner/goal_planner_module.cpp#L1445-L1446

Added lines #L1445 - L1446 were not covered by tests
planner_data_->parameters.vehicle_width + collision_check_margin * 2.0 +
std::abs(extra_lateral_margin));
ego_polygons_expanded.push_back(ego_polygon);
Expand Down Expand Up @@ -1524,7 +1524,7 @@
path.points, current_pose.position, ego_idx, pose.position, target_idx);
}

void GoalPlannerModule::deceleratePath(PullOverPath & pull_over_path) const

Check warning on line 1527 in planning/behavior_path_planner/src/scene_module/goal_planner/goal_planner_module.cpp

View check run for this annotation

Codecov / codecov/patch

planning/behavior_path_planner/src/scene_module/goal_planner/goal_planner_module.cpp#L1527

Added line #L1527 was not covered by tests
{
// decelerate before the search area start
const auto closest_goal_candidate =
Expand All @@ -1534,7 +1534,7 @@
-approximate_pull_over_distance_);
auto & first_path = pull_over_path.partial_paths.front();
if (decel_pose) {
decelerateBeforeSearchStart(*decel_pose, first_path);

Check warning on line 1537 in planning/behavior_path_planner/src/scene_module/goal_planner/goal_planner_module.cpp

View check run for this annotation

Codecov / codecov/patch

planning/behavior_path_planner/src/scene_module/goal_planner/goal_planner_module.cpp#L1537

Added line #L1537 was not covered by tests
return;
}

Expand All @@ -1543,11 +1543,11 @@
planner_data_, parameters_->maximum_deceleration, parameters_->maximum_jerk,
parameters_->pull_over_velocity);
for (auto & p : first_path.points) {
const double distance_from_ego = calcSignedArcLengthFromEgo(first_path, p.point.pose);

Check warning on line 1546 in planning/behavior_path_planner/src/scene_module/goal_planner/goal_planner_module.cpp

View check run for this annotation

Codecov / codecov/patch

planning/behavior_path_planner/src/scene_module/goal_planner/goal_planner_module.cpp#L1546

Added line #L1546 was not covered by tests
if (min_decel_distance && distance_from_ego < *min_decel_distance) {
continue;

Check warning on line 1548 in planning/behavior_path_planner/src/scene_module/goal_planner/goal_planner_module.cpp

View check run for this annotation

Codecov / codecov/patch

planning/behavior_path_planner/src/scene_module/goal_planner/goal_planner_module.cpp#L1548

Added line #L1548 was not covered by tests
}
p.point.longitudinal_velocity_mps = std::min(

Check warning on line 1550 in planning/behavior_path_planner/src/scene_module/goal_planner/goal_planner_module.cpp

View check run for this annotation

Codecov / codecov/patch

planning/behavior_path_planner/src/scene_module/goal_planner/goal_planner_module.cpp#L1550

Added line #L1550 was not covered by tests
p.point.longitudinal_velocity_mps, static_cast<float>(parameters_->pull_over_velocity));
}
}
Expand Down Expand Up @@ -1726,7 +1726,7 @@
const auto & dynamic_object = planner_data_->dynamic_object;
const auto & route_handler = planner_data_->route_handler;
const lanelet::ConstLanelets current_lanes = utils::getExtendedCurrentLanes(
planner_data_, parameters_->backward_goal_search_length,

Check warning on line 1729 in planning/behavior_path_planner/src/scene_module/goal_planner/goal_planner_module.cpp

View check run for this annotation

Codecov / codecov/patch

planning/behavior_path_planner/src/scene_module/goal_planner/goal_planner_module.cpp#L1729

Added line #L1729 was not covered by tests
parameters_->forward_goal_search_length,
/*forward_only_in_route*/ false);
const auto pull_over_lanes = goal_planner_utils::getPullOverLanes(
Expand All @@ -1751,12 +1751,12 @@
ego_seg_idx, is_object_front, limit_to_max_velocity);

// filtering objects with velocity, position and class
const auto & filtered_objects = utils::path_safety_checker::filterObjects(
const auto filtered_objects = utils::path_safety_checker::filterObjects(
dynamic_object, route_handler, pull_over_lanes, current_pose.position,
objects_filtering_params_);

// filtering objects based on the current position's lane
const auto & target_objects_on_lane = utils::path_safety_checker::createTargetObjectsOnLane(
const auto target_objects_on_lane = utils::path_safety_checker::createTargetObjectsOnLane(
pull_over_lanes, route_handler, filtered_objects, objects_filtering_params_);

const double hysteresis_factor =
Expand Down Expand Up @@ -1856,7 +1856,7 @@
"map", rclcpp::Clock{RCL_ROS_TIME}.now(), "detection_polygons", 0, Marker::LINE_LIST,
tier4_autoware_utils::createMarkerScale(0.01, 0.0, 0.0),
tier4_autoware_utils::createMarkerColor(0.0, 0.0, 1.0, 0.999));
const double ego_z = planner_data_->self_odometry->pose.pose.position.z;

Check warning on line 1859 in planning/behavior_path_planner/src/scene_module/goal_planner/goal_planner_module.cpp

View check run for this annotation

Codecov / codecov/patch

planning/behavior_path_planner/src/scene_module/goal_planner/goal_planner_module.cpp#L1859

Added line #L1859 was not covered by tests
for (const auto & ego_polygon : debug_data_.ego_polygons_expanded) {
for (size_t ep_idx = 0; ep_idx < ego_polygon.outer().size(); ++ep_idx) {
const auto & current_point = ego_polygon.outer().at(ep_idx);
Expand Down Expand Up @@ -1956,7 +1956,7 @@
bool GoalPlannerModule::checkOriginalGoalIsInShoulder() const
{
const auto & route_handler = planner_data_->route_handler;
const Pose & goal_pose = route_handler->getOriginalGoalPose();
const Pose goal_pose = route_handler->getOriginalGoalPose();

Check warning on line 1959 in planning/behavior_path_planner/src/scene_module/goal_planner/goal_planner_module.cpp

View check run for this annotation

Codecov / codecov/patch

planning/behavior_path_planner/src/scene_module/goal_planner/goal_planner_module.cpp#L1959

Added line #L1959 was not covered by tests

const lanelet::ConstLanelets pull_over_lanes = goal_planner_utils::getPullOverLanes(
*(route_handler), left_side_parking_, parameters_->backward_goal_search_length,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -228,12 +228,12 @@
return true;
}

bool StartPlannerModule::canTransitSuccessState()

Check warning on line 231 in planning/behavior_path_planner/src/scene_module/start_planner/start_planner_module.cpp

View check run for this annotation

Codecov / codecov/patch

planning/behavior_path_planner/src/scene_module/start_planner/start_planner_module.cpp#L231

Added line #L231 was not covered by tests
{
return hasFinishedPullOut();

Check warning on line 233 in planning/behavior_path_planner/src/scene_module/start_planner/start_planner_module.cpp

View check run for this annotation

Codecov / codecov/patch

planning/behavior_path_planner/src/scene_module/start_planner/start_planner_module.cpp#L233

Added line #L233 was not covered by tests
}

bool StartPlannerModule::canTransitIdleToRunningState()

Check warning on line 236 in planning/behavior_path_planner/src/scene_module/start_planner/start_planner_module.cpp

View check run for this annotation

Codecov / codecov/patch

planning/behavior_path_planner/src/scene_module/start_planner/start_planner_module.cpp#L236

Added line #L236 was not covered by tests
{
return isActivated() && !isWaitingApproval();
}
Expand Down Expand Up @@ -742,7 +742,7 @@

PathWithLaneId StartPlannerModule::calcBackwardPathFromStartPose() const
{
const Pose & start_pose = planner_data_->route_handler->getOriginalStartPose();
const Pose start_pose = planner_data_->route_handler->getOriginalStartPose();

Check warning on line 745 in planning/behavior_path_planner/src/scene_module/start_planner/start_planner_module.cpp

View check run for this annotation

Codecov / codecov/patch

planning/behavior_path_planner/src/scene_module/start_planner/start_planner_module.cpp#L745

Added line #L745 was not covered by tests
const auto pull_out_lanes = start_planner_utils::getPullOutLanes(
planner_data_, planner_data_->parameters.backward_path_length + parameters_->max_back_distance);

Expand Down Expand Up @@ -770,7 +770,7 @@
const PathWithLaneId & back_path_from_start_pose) const
{
std::vector<Pose> pull_out_start_pose_candidates{};
const auto & start_pose = planner_data_->route_handler->getOriginalStartPose();
const auto start_pose = planner_data_->route_handler->getOriginalStartPose();
const auto local_vehicle_footprint = createVehicleFootprint(vehicle_info_);
const auto pull_out_lanes = start_planner_utils::getPullOutLanes(
planner_data_, planner_data_->parameters.backward_path_length + parameters_->max_back_distance);
Expand Down Expand Up @@ -1074,11 +1074,11 @@
is_object_front, limit_to_max_velocity);

// filtering objects with velocity, position and class
const auto & filtered_objects = utils::path_safety_checker::filterObjects(
const auto filtered_objects = utils::path_safety_checker::filterObjects(
dynamic_object, route_handler, current_lanes, current_pose.position, objects_filtering_params_);

// filtering objects based on the current position's lane
const auto & target_objects_on_lane = utils::path_safety_checker::createTargetObjectsOnLane(
const auto target_objects_on_lane = utils::path_safety_checker::createTargetObjectsOnLane(
current_lanes, route_handler, filtered_objects, objects_filtering_params_);

const double hysteresis_factor =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@
{
const double & vehicle_width = planner_data->parameters.vehicle_width;
const auto & route_handler = planner_data->route_handler;
const auto & start_pose = planner_data->route_handler->getOriginalStartPose();
const auto start_pose = planner_data->route_handler->getOriginalStartPose();

Check warning on line 92 in planning/behavior_path_planner/src/utils/start_planner/util.cpp

View check run for this annotation

Codecov / codecov/patch

planning/behavior_path_planner/src/utils/start_planner/util.cpp#L92

Added line #L92 was not covered by tests

lanelet::ConstLanelet current_shoulder_lane;
lanelet::ConstLanelets shoulder_lanes;
Expand Down
Loading