Skip to content

Commit

Permalink
Merge branch 'feat-embed-smooth-path-as-alpha-quality' of github.com:…
Browse files Browse the repository at this point in the history
…sasakisasaki/autoware.core into feat-embed-smooth-path-as-alpha-quality

Signed-off-by: Junya Sasaki <junya.sasaki@tier4.jp>
  • Loading branch information
sasakisasaki committed Feb 28, 2025
2 parents 19185eb + 808fb5d commit fc90ae4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions planning/autoware_path_generator/src/utils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -503,7 +503,7 @@ lanelet::ConstLanelets extract_lanelets_from_path(
const auto & path_point = refined_path.points.at(i);
int64_t lane_id = path_point.lane_ids.at(0);
lanelet::ConstLanelet lanelet = planner_data->lanelet_map_ptr->laneletLayer.get(lane_id);
bool is_unique =
const bool is_unique =
std::find(refined_path_lanelets.begin(), refined_path_lanelets.end(), lanelet) ==
refined_path_lanelets.end();
if (is_unique) {
Expand Down Expand Up @@ -540,8 +540,8 @@ bool is_path_valid(
// Extract lanelets from the refined path
const auto lanelets = extract_lanelets_from_path(refined_path, planner_data);

// Check if any point lies outside the extracted lanelets
bool has_points_outside_lanelet = std::any_of(
// std::any_of detects whether any point lies outside lanelets
const bool has_points_outside_lanelet = std::any_of(
refined_path.points.begin(), refined_path.points.end(),
[&lanelets](const auto & refined_path_point) {
return !is_in_lanelets(refined_path_point.point.pose, lanelets);
Expand Down

0 comments on commit fc90ae4

Please sign in to comment.