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(behavior_path_planner): update root lanele if it is not in route lanelet #4360

Merged
merged 3 commits into from
Jul 24, 2023

Conversation

kosuke55
Copy link
Contributor

@kosuke55 kosuke55 commented Jul 21, 2023

Description

Update root_lanelet_ if it is not in route lanelet.

Rerouging with modified goal update route_laneles, but if following lanes of previous root_lalet contains new root_lanelet_, that is not updated. This is happen when the previos root_lanelet is before new root lanelets.

  // check ego is in next lane
  const auto next_lanelets = route_handler->getRoutingGraphPtr()->following(root_lanelet_.get());
  for (const auto & next : next_lanelets) {
    if (next.id() == root_lanelet.id()) {
      return;
    }
  }

In a result root_lanelet is not in route_lanels and this causes empty lanelet sequence in

    const auto lanelet_sequence = route_handler->getLaneletSequence(
      root_lanelet_.get(), pose, backward_length, std::numeric_limits<double>::max());

https://github.com/autowarefoundation/autoware.universe/blob/main/planning/behavior_path_planner/include/behavior_path_planner/planner_manager.hpp#L281-L282

and generate empty reference path. In result a module (e.g. avoidance) uses the null previous output and dies.

Related links

Tests performed

psim

tier4 interanl scenario test

https://evaluation.tier4.jp/evaluation/reports/0e24127b-f63f-56af-88af-880fddcce8c9?project_id=prd_jt
1568/1588

compare
https://evaluation.tier4.jp/evaluation/reports/tables/new?catalog_id=cb497016-2e2f-4ce0-9ac8-68d77a27a55d&filter=&job_id=0e24127b-f63f-56af-88af-880fddcce8c9&project_id=prd_jt&table_config=date%2Chide&target_ids=769105c1-379c-5291-96ef-a1906180cb37

Notes for reviewers

none

Interface changes

none

Effects on system behavior

Pre-review checklist for the PR author

The PR author must check the checkboxes below when creating the PR.

In-review checklist for the PR reviewers

The PR reviewers must check the checkboxes below before approval.

  • The PR follows the pull request guidelines.
  • The PR has been properly tested.
  • The PR has been reviewed by the code owners.

Post-review checklist for the PR author

The PR author must check the checkboxes below before merging.

  • There are no open discussions or they are tracked via tickets.
  • The PR is ready for merge.

After all checkboxes are checked, anyone who has write access can merge the PR.

…lanelet

Signed-off-by: kosuke55 <kosuke.tnp@gmail.com>
Copy link
Contributor

@shmpwk shmpwk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@kosuke55 kosuke55 added the run:build-and-test-differential Mark to enable build-and-test-differential workflow. (used-by-ci) label Jul 23, 2023
@codecov
Copy link

codecov bot commented Jul 23, 2023

Codecov Report

Patch coverage: 40.00% and project coverage change: +0.30 🎉

Comparison is base (01cea10) 15.05% compared to head (841b6b4) 15.36%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #4360      +/-   ##
==========================================
+ Coverage   15.05%   15.36%   +0.30%     
==========================================
  Files        1508     1508              
  Lines      103794   105531    +1737     
  Branches    31715    33001    +1286     
==========================================
+ Hits        15626    16213     +587     
- Misses      71137    71944     +807     
- Partials    17031    17374     +343     
Flag Coverage Δ *Carryforward flag
differential 16.09% <40.00%> (?)
total 15.05% <ø> (+<0.01%) ⬆️ Carriedforward from c42c82a

*This pull request uses carry forward flags. Click here to find out more.

Impacted Files Coverage Δ
...ning/behavior_path_planner/src/planner_manager.cpp 19.78% <0.00%> (-0.15%) ⬇️
planning/route_handler/src/route_handler.cpp 24.80% <100.00%> (+0.16%) ⬆️

... and 7 files with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

Co-authored-by: Zulfaqar Azmi <93502286+zulfaqar-azmi-t4@users.noreply.github.com>
Copy link
Contributor

@zulfaqar-azmi-t4 zulfaqar-azmi-t4 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@kosuke55 kosuke55 merged commit cf26759 into main Jul 24, 2023
@kosuke55 kosuke55 deleted the fix/root_lanelet branch July 24, 2023 04:44
kminoda pushed a commit to kminoda/autoware.universe that referenced this pull request Jul 24, 2023
…lanelet (autowarefoundation#4360)

* fix(behavior_path_planner): update root lanele if it is not in route lanelet

Signed-off-by: kosuke55 <kosuke.tnp@gmail.com>

* Update planning/behavior_path_planner/src/planner_manager.cpp

Co-authored-by: Zulfaqar Azmi <93502286+zulfaqar-azmi-t4@users.noreply.github.com>

---------

Signed-off-by: kosuke55 <kosuke.tnp@gmail.com>
Co-authored-by: Zulfaqar Azmi <93502286+zulfaqar-azmi-t4@users.noreply.github.com>
kosuke55 added a commit to tier4/autoware.universe that referenced this pull request Aug 22, 2023
…lanelet (autowarefoundation#4360)

* fix(behavior_path_planner): update root lanele if it is not in route lanelet

Signed-off-by: kosuke55 <kosuke.tnp@gmail.com>

* Update planning/behavior_path_planner/src/planner_manager.cpp

Co-authored-by: Zulfaqar Azmi <93502286+zulfaqar-azmi-t4@users.noreply.github.com>

---------

Signed-off-by: kosuke55 <kosuke.tnp@gmail.com>
Co-authored-by: Zulfaqar Azmi <93502286+zulfaqar-azmi-t4@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component:planning Route planning, decision-making, and navigation. (auto-assigned) run:build-and-test-differential Mark to enable build-and-test-differential workflow. (used-by-ci)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants