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): consider all the lane ids in path #1630

Merged
merged 4 commits into from
Aug 22, 2022

Conversation

takayuki5168
Copy link
Contributor

@takayuki5168 takayuki5168 commented Aug 19, 2022

Signed-off-by: Takayuki Murooka takayuki5168@gmail.com

Description

With this PR, the path point sometimes has more than 2 lane_ids which cannot be dealt with in some behavior_velocity_planner's module.
#1626

So I fixed behavior_velocity_planner to consider all the lane ids in the path from behavior_path_planner.

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.

Signed-off-by: Takayuki Murooka <takayuki5168@gmail.com>
Signed-off-by: Takayuki Murooka <takayuki5168@gmail.com>
Comment on lines 688 to 690
if (last_itr.base() != path.points.end()) {
const auto & next_lanelet =
lanelet_map_ptr->laneletLayer.get((*last_itr.base()).lane_ids.front());
const auto & next_lanelet = lanelet_map_ptr->laneletLayer.get(lane_id_);
ego_lane_with_next_lane = {assigned_lanelet, next_lanelet};
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Is this change OK? @soblin

Copy link
Contributor

@soblin soblin Aug 19, 2022

Choose a reason for hiding this comment

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

You do not need to change L683-684 because last_itr should still be the last PathWithPointWithLaneId that contains lane_id_ in it. Just FYI, last_itr.base() returns its next element.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Okay, I reverted.
9c99e64

@takayuki5168 takayuki5168 marked this pull request as ready for review August 19, 2022 03:38
@takayuki5168
Copy link
Contributor Author

@taikitanaka3 @soblin Could you review this

@codecov
Copy link

codecov bot commented Aug 19, 2022

Codecov Report

Merging #1630 (40daefb) into main (9f451b4) will decrease coverage by 0.07%.
The diff coverage is 0.00%.

@@            Coverage Diff             @@
##             main    #1630      +/-   ##
==========================================
- Coverage   10.77%   10.69%   -0.08%     
==========================================
  Files        1111     1111              
  Lines       78530    79787    +1257     
  Branches    18554    19374     +820     
==========================================
+ Hits         8464     8537      +73     
- Misses      61206    62301    +1095     
- Partials     8860     8949      +89     
Flag Coverage Δ *Carryforward flag
differential 4.71% <0.00%> (?)
total 10.76% <0.00%> (ø) Carriedforward from 9c99e64

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

Impacted Files Coverage Δ
...city_planner/src/scene_module/blind_spot/scene.cpp 0.00% <0.00%> (ø)
...c/scene_module/intersection/scene_intersection.cpp 0.00% <0.00%> (ø)
...city_planner/include/utilization/arc_lane_util.hpp 28.35% <0.00%> (-12.07%) ⬇️
...ene_module/occlusion_spot/occlusion_spot_utils.cpp 8.33% <0.00%> (-0.33%) ⬇️
...vior_velocity_planner/include/utilization/util.hpp 0.00% <0.00%> (ø)
...ocity_planner/src/scene_module/crosswalk/debug.cpp 0.00% <0.00%> (ø)
...ocity_planner/src/scene_module/run_out/manager.cpp 0.00% <0.00%> (ø)
...ity_planner/src/scene_module/intersection/util.cpp 0.00% <0.00%> (ø)
..._planner/src/scene_module/detection_area/scene.cpp 0.00% <0.00%> (ø)
... and 10 more

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

return true;
}
}
return false;
Copy link
Contributor

Choose a reason for hiding this comment

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

return std::find(p.lane_ids.begin(), p.lane_ids.end(), lane_id_) != p.lane_ids.end() ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

You're right. It's much better. Thanks.
9c99e64

Signed-off-by: Takayuki Murooka <takayuki5168@gmail.com>
Signed-off-by: Takayuki Murooka <takayuki5168@gmail.com>
@takayuki5168 takayuki5168 merged commit ae56406 into autowarefoundation:main Aug 22, 2022
@takayuki5168 takayuki5168 deleted the fix/consider-all-lane-ids branch August 22, 2022 00:50
boyali referenced this pull request in boyali/autoware.universe Sep 28, 2022
…er4#1630)

* fix(behavior_velocity_planner): consider all the lane ids in path

Signed-off-by: Takayuki Murooka <takayuki5168@gmail.com>

* remove obsolete comment

Signed-off-by: Takayuki Murooka <takayuki5168@gmail.com>

* fix

Signed-off-by: Takayuki Murooka <takayuki5168@gmail.com>

* fix

Signed-off-by: Takayuki Murooka <takayuki5168@gmail.com>

Signed-off-by: Takayuki Murooka <takayuki5168@gmail.com>
boyali referenced this pull request in boyali/autoware.universe Oct 3, 2022
…er4#1630)

* fix(behavior_velocity_planner): consider all the lane ids in path

Signed-off-by: Takayuki Murooka <takayuki5168@gmail.com>

* remove obsolete comment

Signed-off-by: Takayuki Murooka <takayuki5168@gmail.com>

* fix

Signed-off-by: Takayuki Murooka <takayuki5168@gmail.com>

* fix

Signed-off-by: Takayuki Murooka <takayuki5168@gmail.com>

Signed-off-by: Takayuki Murooka <takayuki5168@gmail.com>
boyali referenced this pull request in boyali/autoware.universe Oct 3, 2022
…er4#1630)

* fix(behavior_velocity_planner): consider all the lane ids in path

Signed-off-by: Takayuki Murooka <takayuki5168@gmail.com>

* remove obsolete comment

Signed-off-by: Takayuki Murooka <takayuki5168@gmail.com>

* fix

Signed-off-by: Takayuki Murooka <takayuki5168@gmail.com>

* fix

Signed-off-by: Takayuki Murooka <takayuki5168@gmail.com>

Signed-off-by: Takayuki Murooka <takayuki5168@gmail.com>
yukke42 pushed a commit to tzhong518/autoware.universe that referenced this pull request Oct 14, 2022
…towarefoundation#1630)

* fix(behavior_velocity_planner): consider all the lane ids in path

Signed-off-by: Takayuki Murooka <takayuki5168@gmail.com>

* remove obsolete comment

Signed-off-by: Takayuki Murooka <takayuki5168@gmail.com>

* fix

Signed-off-by: Takayuki Murooka <takayuki5168@gmail.com>

* fix

Signed-off-by: Takayuki Murooka <takayuki5168@gmail.com>

Signed-off-by: Takayuki Murooka <takayuki5168@gmail.com>
boyali referenced this pull request in boyali/autoware.universe Oct 19, 2022
…er4#1630)

* fix(behavior_velocity_planner): consider all the lane ids in path

Signed-off-by: Takayuki Murooka <takayuki5168@gmail.com>

* remove obsolete comment

Signed-off-by: Takayuki Murooka <takayuki5168@gmail.com>

* fix

Signed-off-by: Takayuki Murooka <takayuki5168@gmail.com>

* fix

Signed-off-by: Takayuki Murooka <takayuki5168@gmail.com>

Signed-off-by: Takayuki Murooka <takayuki5168@gmail.com>
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.

3 participants