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(route_handler): planning route with goal lanelet in candidate_lanelets #6802

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

sebekx
Copy link
Contributor

@sebekx sebekx commented Apr 12, 2024

Description

There is and issue with route_handler in situation when goal lanelet is in candidate lanelet list.

getLaneletSequenceUpTo function starts from the goal lanelet and iteratively check candidate lanenelet from current lanelet. But when there is goal lanelet in candidate lanelet search is stopped to prevent looping.
However in following situation:
image

We would to set goal on lanelet 4, but function 'getLaneletSequenceUpTo' going backward and for lanelet 3 it has 2 candidate lanelet 4 and 2. 4 is goal lanelet so processing is stopped.

Condition that protects against looping could be rewritten to remove goal lanelet from candidate_lanelets instead braking processing to support such cases.

Tests performed

Verified that after applying changes i was able to set goal in such case:
Screenshot from 2024-04-10 15-17-45

Effects on system behavior

Fix issue with generating lanelet segments by mission_planner in specific case.
Not applicable.

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.

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.

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 12, 2024
…elets

Signed-off-by: Sebastian Zęderowski <szederowski@autonomous-systems.pl>
@sebekx sebekx force-pushed the fix-route-handler branch from 2bcde1e to a60cb5c Compare April 12, 2024 08:08
@takayuki5168 takayuki5168 added the run:build-and-test-differential Mark to enable build-and-test-differential workflow. (used-by-ci) label Apr 12, 2024
Copy link

stale bot commented Jun 16, 2024

This pull request has been automatically marked as stale because it has not had recent activity.

@stale stale bot added the status:stale Inactive or outdated issues. (auto-assigned) label Jun 16, 2024
@stale stale bot removed the status:stale Inactive or outdated issues. (auto-assigned) label Dec 17, 2024
@mitsudome-r
Copy link
Member

@mitsudome-r will take a look and see if this modification is still necessary.

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.

3 participants