-
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
feat(behavior_velocity_planner): apply smoother to reference trajectory for ttc #1405
feat(behavior_velocity_planner): apply smoother to reference trajectory for ttc #1405
Conversation
b30bba6
to
4e355fe
Compare
Codecov Report
@@ Coverage Diff @@
## main #1405 +/- ##
==========================================
- Coverage 10.27% 10.24% -0.04%
==========================================
Files 1118 1118
Lines 77581 77821 +240
Branches 17854 18025 +171
==========================================
Hits 7974 7974
- Misses 62122 62338 +216
- Partials 7485 7509 +24
*This pull request uses carry forward flags. Click here to find out more.
Continue to review full report at Codecov.
|
4e355fe
to
526607e
Compare
@@ -465,6 +470,24 @@ TimeDistanceArray IntersectionModule::calcIntersectionPassingTime( | |||
return {{0.0, 0.0}}; // has already passed the intersection. | |||
} | |||
|
|||
PathWithLaneId smoothed_reference_path; | |||
if (!smoothPath(reference_path, smoothed_reference_path, planner_data_)) |
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.
Is it better to output some message?
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.
Yes, I reflected your comment.
2eda5fb
to
1ec374f
Compare
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.
Pls get approval by @kyoichi-sugahara
cf11b5d
to
568c85c
Compare
…eference trajectory Signed-off-by: Mamoru Sobue <mamoru.sobue@tier4.jp>
Signed-off-by: Mamoru Sobue <mamoru.sobue@tier4.jp>
…ailed Signed-off-by: Mamoru Sobue <mamoru.sobue@tier4.jp>
Signed-off-by: Mamoru Sobue <mamoru.sobue@tier4.jp>
568c85c
to
98aea5c
Compare
…ry for ttc (tier4#1405) * feat(behavior_velocity_smoother): simply apply smoother to existing reference trajectory Signed-off-by: Mamoru Sobue <mamoru.sobue@tier4.jp> * avoid zero division Signed-off-by: Mamoru Sobue <mamoru.sobue@tier4.jp> * initialize smoothed_path with reference_path and WARN if smoothPath failed Signed-off-by: Mamoru Sobue <mamoru.sobue@tier4.jp> * added another version for calcDist2d Signed-off-by: Mamoru Sobue <mamoru.sobue@tier4.jp>
…ry for ttc (tier4#1405) * feat(behavior_velocity_smoother): simply apply smoother to existing reference trajectory Signed-off-by: Mamoru Sobue <mamoru.sobue@tier4.jp> * avoid zero division Signed-off-by: Mamoru Sobue <mamoru.sobue@tier4.jp> * initialize smoothed_path with reference_path and WARN if smoothPath failed Signed-off-by: Mamoru Sobue <mamoru.sobue@tier4.jp> * added another version for calcDist2d Signed-off-by: Mamoru Sobue <mamoru.sobue@tier4.jp>
…ry for ttc (tier4#1405) * feat(behavior_velocity_smoother): simply apply smoother to existing reference trajectory Signed-off-by: Mamoru Sobue <mamoru.sobue@tier4.jp> * avoid zero division Signed-off-by: Mamoru Sobue <mamoru.sobue@tier4.jp> * initialize smoothed_path with reference_path and WARN if smoothPath failed Signed-off-by: Mamoru Sobue <mamoru.sobue@tier4.jp> * added another version for calcDist2d Signed-off-by: Mamoru Sobue <mamoru.sobue@tier4.jp>
…ry for ttc (autowarefoundation#1405) * feat(behavior_velocity_smoother): simply apply smoother to existing reference trajectory Signed-off-by: Mamoru Sobue <mamoru.sobue@tier4.jp> * avoid zero division Signed-off-by: Mamoru Sobue <mamoru.sobue@tier4.jp> * initialize smoothed_path with reference_path and WARN if smoothPath failed Signed-off-by: Mamoru Sobue <mamoru.sobue@tier4.jp> * added another version for calcDist2d Signed-off-by: Mamoru Sobue <mamoru.sobue@tier4.jp>
…ry for ttc (tier4#1405) * feat(behavior_velocity_smoother): simply apply smoother to existing reference trajectory Signed-off-by: Mamoru Sobue <mamoru.sobue@tier4.jp> * avoid zero division Signed-off-by: Mamoru Sobue <mamoru.sobue@tier4.jp> * initialize smoothed_path with reference_path and WARN if smoothPath failed Signed-off-by: Mamoru Sobue <mamoru.sobue@tier4.jp> * added another version for calcDist2d Signed-off-by: Mamoru Sobue <mamoru.sobue@tier4.jp>
…utowarefoundation#1405) * Revert "fix(autoware_mpc_lateral_controller): delete the zero speed constraint (autowarefoundation#7673)" This reverts commit 69258bd. * dry steering * add comments * add minor fix and modify unit test for dry steering --------- Signed-off-by: Takayuki Murooka <takayuki5168@gmail.com>
feat(behavior_velocity_planner): apply smoother to reference trajectory for ttc
Signed-off-by: Mamoru Sobue mamoru.sobue@tier4.jp
Description
Previously intersection module was calculating passing time to each point on the path from ego position based on the uniform acceleration motion as follows:
v0, v0 + at, v0+2at,,..
where each V0 ,,,, Vn is up to Vmax. This is not realistic given the curve in intersection part. In this PR motion_velocity_smoother is applied to this motion and then ttc is calculated using the smoothed motion.
Tests performed
Tested in Psim at odaiba map.
td_array-2022-07-28_15.51.05.mp4
The gif file shows the passing-time & distance of each point on the path from ego position, for previous(blue) / smoothed (red, this PR) reference motions.
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.