-
Notifications
You must be signed in to change notification settings - Fork 650
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
fix(behavior_velocity_planner): support u-turn for detection_area, vtl and stop line #1700
Conversation
ca2abe8
to
cf813cb
Compare
Codecov Report
@@ 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
*This pull request uses carry forward flags. Click here to find out more.
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
b7e7df8
to
2e5c149
Compare
f368184
to
da8ff70
Compare
…vtl, stop_line Signed-off-by: Takayuki Murooka <takayuki5168@gmail.com>
Signed-off-by: Takayuki Murooka <takayuki5168@gmail.com>
da8ff70
to
071a1ce
Compare
634fb25
to
6078c91
Compare
Signed-off-by: Takayuki Murooka <takayuki5168@gmail.com>
Signed-off-by: Takayuki Murooka <takayuki5168@gmail.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
I checked "detection area" / "stop line" / "virtual traffic light" works as expected below case
https://user-images.githubusercontent.com/65527974/187327490-a11ab00d-e84c-47e2-bfdb-2edb76a48cb2.mp4
https://user-images.githubusercontent.com/65527974/187327498-126772f5-fd09-434a-b8a6-b3d4d0b0ddf1.mp4
https://user-images.githubusercontent.com/65527974/187355643-e1d22bac-4c2d-418f-a886-40219713d38a.mp4
/** | ||
* @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; |
There was a problem hiding this comment.
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()
.
There was a problem hiding this comment.
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; |
There was a problem hiding this comment.
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 ?
…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>
…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>
…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>
…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>
…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>
autowarefoundation#1700) Signed-off-by: Yuma Nihei <yuma.nihei@tier4.jp>
autowarefoundation#1700) Signed-off-by: Yuma Nihei <yuma.nihei@tier4.jp>
autowarefoundation#1700) Signed-off-by: Yuma Nihei <yuma.nihei@tier4.jp>
autowarefoundation#1700) Signed-off-by: Yuma Nihei <yuma.nihei@tier4.jp>
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.
Post-review checklist for the PR author
The PR author must check the checkboxes below before merging.
After all checkboxes are checked, anyone who has write access can merge the PR.