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(pid_longitudinal_controller): add virtual last point to avoid wrong find wrong nearest_idx #5077

Closed
wants to merge 2 commits into from

Conversation

brkay54
Copy link
Member

@brkay54 brkay54 commented Sep 22, 2023

Description

While tests in the real environment, we realized that if the vehicle can not stop before the stop point and after it past from the stop point, finding the nearest index and target index is not working anymore because it can not find the nearest point because all the points are behind the vehicle. To fix this, this PR adds a virtual last point to avoid weird behaviors while stopping.

Related links

Tests performed

Notes for reviewers

Interface changes

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.

@github-actions github-actions bot added the component:control Vehicle control algorithms and mechanisms. (auto-assigned) label Sep 22, 2023
@brkay54 brkay54 force-pushed the pid/fix-end-point branch 2 times, most recently from c5325a8 to fe1fdab Compare September 26, 2023 22:19
@brkay54 brkay54 self-assigned this Sep 30, 2023
@brkay54 brkay54 force-pushed the pid/fix-end-point branch 5 times, most recently from fb62606 to 8b1fbb0 Compare November 10, 2023 15:41
@brkay54 brkay54 force-pushed the pid/fix-end-point branch 4 times, most recently from 32eb7ea to df05c22 Compare February 5, 2024 22:34
Signed-off-by: Berkay Karaman <brkay54@gmail.com>
…ng find wrong nearest_idx

Signed-off-by: Berkay Karaman <brkay54@gmail.com>
@TakaHoribe
Copy link
Contributor

@brkay54 would you rebase this branch on main for review?

@brkay54
Copy link
Member Author

brkay54 commented Feb 15, 2024

Hi @TakaHoribe -san, I investigated the problem after #6391 merged. I couldn't see the index issue. I am closing the PR.

@brkay54 brkay54 closed this Feb 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component:control Vehicle control algorithms and mechanisms. (auto-assigned)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants