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(planner_manager): use LIFO policy in approved modules unregistering #3434

Merged

Conversation

satoshi-ota
Copy link
Contributor

@satoshi-ota satoshi-ota commented Apr 17, 2023

Description

The planner manager doesn't control the order of removing expired modules from approved modules but I'm sure that it is better to define removing policy.

Since the last added module's output path is generated from first added module's output, perhaps the last added module's output changes greatly if it removes the first added module at first. And I think that it is safer to remove modules based on Last In First Out rule.

image

In this PR, I use Last In First Out policy in unregistering logic.

image

On the other hand, when the lane change module finishes with ModuleStatus::SUCCESS, root lanelet and the input of first added module (module A in following fig) will be updated.

image

This also causes large path change, so the manager waits for all module success, only when it removes lane change module.

image

Related links

Tests performed

[LC+Avoidance scenarios] All PASS

Notes for reviewers

Interface changes

Nothing

Effects on system behavior

Improve LC+Avoidance maneuver.

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.

@github-actions github-actions bot added the component:planning Route planning, decision-making, and navigation. (auto-assigned) label Apr 17, 2023
@satoshi-ota satoshi-ota force-pushed the fix/last-in-first-out branch from c3b966c to bb5407c Compare April 17, 2023 01:00
Signed-off-by: satoshi-ota <satoshi.ota928@gmail.com>
@satoshi-ota satoshi-ota force-pushed the fix/last-in-first-out branch from bb5407c to 988a7d0 Compare April 17, 2023 01:05
@codecov
Copy link

codecov bot commented Apr 17, 2023

Codecov Report

Patch and project coverage have no change.

Comparison is base (dbf9876) 13.25% compared to head (988a7d0) 13.25%.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #3434   +/-   ##
=======================================
  Coverage   13.25%   13.25%           
=======================================
  Files        1384     1384           
  Lines       97094    97094           
  Branches    28246    28246           
=======================================
  Hits        12867    12867           
  Misses      70410    70410           
  Partials    13817    13817           
Flag Coverage Δ *Carryforward flag
differential 12.30% <ø> (?)
total 13.25% <ø> (ø) Carriedforward from dbf9876

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

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

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

Copy link
Contributor

@kosuke55 kosuke55 left a comment

Choose a reason for hiding this comment

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

looks good to me

@satoshi-ota satoshi-ota merged commit dfd4bcb into autowarefoundation:main Apr 19, 2023
@satoshi-ota satoshi-ota deleted the fix/last-in-first-out branch April 19, 2023 04:56
satoshi-ota added a commit to satoshi-ota/autoware.universe that referenced this pull request Apr 19, 2023
…ng (autowarefoundation#3434)

Signed-off-by: satoshi-ota <satoshi.ota928@gmail.com>
Mingyu1991 pushed a commit to Mingyu1991/autoware.universe that referenced this pull request Jun 26, 2023
…ng (autowarefoundation#3434)

Signed-off-by: satoshi-ota <satoshi.ota928@gmail.com>
Signed-off-by: Mingyu Li <mingyu.li@tier4.jp>
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)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants