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_velocity_planner): fix getNearestLaneId() #1564

Closed
wants to merge 2 commits into from

Conversation

rej55
Copy link
Contributor

@rej55 rej55 commented Aug 10, 2022

Signed-off-by: Fumiya Watanabe [email protected]

Description

Before this change, if the ego vehicle runs out from the lane, the behavior planning module is re-launched.
To fix this behavior, I fixed the logic to get nearest lane id as following:

  • Find nearest lane id from lane ids included in the original path

Related links

Tests performed

Tested in planning_simulator

rtc-2022-08-10_19.39.54.mp4

Notes for reviewers

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.

@codecov
Copy link

codecov bot commented Aug 10, 2022

Codecov Report

Merging #1564 (b26c888) into main (f8b090b) will decrease coverage by 0.00%.
The diff coverage is 0.00%.

@@            Coverage Diff             @@
##             main    #1564      +/-   ##
==========================================
- Coverage   10.73%   10.73%   -0.01%     
==========================================
  Files        1115     1115              
  Lines       78831    78851      +20     
  Branches    18561    18577      +16     
==========================================
  Hits         8464     8464              
- Misses      61507    61527      +20     
  Partials     8860     8860              
Flag Coverage Δ *Carryforward flag
differential 4.70% <0.00%> (?)
total 10.72% <0.00%> (ø) Carriedforward from 04df798

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

Impacted Files Coverage Δ
...behavior_velocity_planner/src/utilization/util.cpp 17.82% <0.00%> (-1.50%) ⬇️

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

}
lanelet::ConstLanelets lanes;
for (const auto & point : path.points) {
lanes.push_back(lanelet_map->laneletLayer.get(point.lane_ids.at(0)));
Copy link
Contributor

Choose a reason for hiding this comment

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

lane_ids.front() do not necessarily contain all lane_ids, so all ids in lane_ids need to be pushed back.

@rej55
Copy link
Contributor Author

rej55 commented Aug 16, 2022

Close this PR because this change is included in #1594

@rej55 rej55 closed this Aug 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants