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): support u-turn for detection_area, vtl and stop line #1700

Merged

Conversation

takayuki5168
Copy link
Contributor

@takayuki5168 takayuki5168 commented Aug 25, 2022

Description

support u-turn and crossing path for detection_area, vtl and stop line

issue
#1581

Related links

Tests performed

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.

@takayuki5168 takayuki5168 changed the title fix(behavior_velocity_planner): use common ego nearest search fix(behavior_velocity_planner): support u-turn for detection_area, vtl and stop line Aug 26, 2022
@codecov
Copy link

codecov bot commented Aug 26, 2022

Codecov Report

Merging #1700 (eddfecd) into main (231b7ed) will decrease coverage by 0.24%.
The diff coverage is 14.82%.

@@            Coverage Diff             @@
##             main    #1700      +/-   ##
==========================================
- Coverage   10.24%   10.00%   -0.25%     
==========================================
  Files        1202     1204       +2     
  Lines       86463    89844    +3381     
  Branches    19893    22010    +2117     
==========================================
+ Hits         8861     8986     +125     
- Misses      68383    71323    +2940     
- Partials     9219     9535     +316     
Flag Coverage Δ *Carryforward flag
differential 10.94% <16.46%> (?)
total 10.23% <7.82%> (ø) Carriedforward from 36cec0b

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

Impacted Files Coverage Δ
...ils/test/src/trajectory/test_path_with_lane_id.cpp 43.28% <0.00%> (ø)
...include/behavior_velocity_planner/planner_data.hpp 0.00% <ø> (ø)
..._planner/include/scene_module/blind_spot/scene.hpp 0.00% <ø> (ø)
...ene_module/occlusion_spot/occlusion_spot_utils.hpp 57.14% <ø> (ø)
...er/include/scene_module/scene_module_interface.hpp 0.00% <0.00%> (ø)
...anner/include/scene_module/traffic_light/scene.hpp 0.00% <ø> (ø)
...clude/scene_module/virtual_traffic_light/scene.hpp 0.00% <ø> (ø)
...y_planner/include/utilization/trajectory_utils.hpp 0.00% <0.00%> (ø)
...vior_velocity_planner/include/utilization/util.hpp 0.00% <0.00%> (ø)
planning/behavior_velocity_planner/src/node.cpp 0.62% <0.00%> (+0.19%) ⬆️
... and 62 more

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

@takayuki5168 takayuki5168 marked this pull request as ready for review August 26, 2022 05:12
@taikitanaka3
Copy link
Contributor

I will Approve if this PR passes these 3 case

  1. self crossing
    image
  2. U turn
    image
  3. turn
    image

…vtl, stop_line

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

@taikitanaka3 taikitanaka3 left a comment

Choose a reason for hiding this comment

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

@takayuki5168 takayuki5168 merged commit ae833f3 into autowarefoundation:main Aug 30, 2022
@takayuki5168 takayuki5168 deleted the feat/behvior-vel-nearest-ego branch August 30, 2022 07:02
/**
* @brief : calculate signed arc length consider stop margin from stop line
*
* |----------------------------|
* s---ego----------x--|--------g
*/
const size_t stop_line_seg_idx = planning_utils::calcSegmentIndexFromPointIndex(
path->points, stop_pose.position, stop_point_idx);
const double stop_line_margin = base_link2front + planner_param_.stop_margin;
Copy link
Contributor

@satoshi-ota satoshi-ota Aug 31, 2022

Choose a reason for hiding this comment

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

I think stop_line_margin should not contain base_link2front because the offset has already been considered in stop_pose calculation in arc_lane_utils::createTargetPoint().

Copy link
Contributor

Choose a reason for hiding this comment

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

planner_param_.stop_margin is also considered in that util function ?

path->points, src_point_with_search_range_index, dst_point_with_search_range_index) -
motion_utils::calcSignedArcLength(
path->points, planner_data_->current_pose.pose.position, current_seg_idx, stop_pose.position,
stop_line_seg_idx) -
stop_line_margin;
Copy link
Contributor

Choose a reason for hiding this comment

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

We should remove stop_line_margin from this calculation ?

boyali pushed a commit to boyali/autoware.universe that referenced this pull request Sep 28, 2022
…l and stop line (autowarefoundation#1700)

* fix(behavior_velocity_planner): deal with u-turn for detection_area, vtl, stop_line

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

* fix

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

* enable behavior velocity test and fix bug

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

* fix bug

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>

* fix collision check

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

* add test

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

* remove unnecessary debug output

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

Signed-off-by: Takayuki Murooka <takayuki5168@gmail.com>
boyali pushed a commit to boyali/autoware.universe that referenced this pull request Oct 3, 2022
…l and stop line (autowarefoundation#1700)

* fix(behavior_velocity_planner): deal with u-turn for detection_area, vtl, stop_line

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

* fix

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

* enable behavior velocity test and fix bug

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

* fix bug

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>

* fix collision check

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

* add test

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

* remove unnecessary debug output

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

Signed-off-by: Takayuki Murooka <takayuki5168@gmail.com>
boyali pushed a commit to boyali/autoware.universe that referenced this pull request Oct 3, 2022
…l and stop line (autowarefoundation#1700)

* fix(behavior_velocity_planner): deal with u-turn for detection_area, vtl, stop_line

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

* fix

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

* enable behavior velocity test and fix bug

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

* fix bug

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>

* fix collision check

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

* add test

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

* remove unnecessary debug output

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
…l and stop line (autowarefoundation#1700)

* fix(behavior_velocity_planner): deal with u-turn for detection_area, vtl, stop_line

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

* fix

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

* enable behavior velocity test and fix bug

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

* fix bug

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>

* fix collision check

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

* add test

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

* remove unnecessary debug output

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

Signed-off-by: Takayuki Murooka <takayuki5168@gmail.com>
boyali pushed a commit to boyali/autoware.universe that referenced this pull request Oct 19, 2022
…l and stop line (autowarefoundation#1700)

* fix(behavior_velocity_planner): deal with u-turn for detection_area, vtl, stop_line

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

* fix

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

* enable behavior velocity test and fix bug

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

* fix bug

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>

* fix collision check

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

* add test

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

* remove unnecessary debug output

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

Signed-off-by: Takayuki Murooka <takayuki5168@gmail.com>
yn-mrse added a commit to tier4/autoware.universe that referenced this pull request Jun 23, 2023
yn-mrse added a commit to tier4/autoware.universe that referenced this pull request Jun 23, 2023
yn-mrse added a commit to tier4/autoware.universe that referenced this pull request Jun 23, 2023
yn-mrse added a commit to tier4/autoware.universe that referenced this pull request Jun 23, 2023
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