-
Notifications
You must be signed in to change notification settings - Fork 673
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 velocity interpolation changing the stop position inappropriately #623
Merged
TakaHoribe
merged 4 commits into
autowarefoundation:main
from
tier4:fix/behavior-velocity-interpolation-bug
Apr 6, 2022
Merged
fix(behavior_velocity_planner): fix velocity interpolation changing the stop position inappropriately #623
TakaHoribe
merged 4 commits into
autowarefoundation:main
from
tier4:fix/behavior-velocity-interpolation-bug
Apr 6, 2022
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
…he stop position inappropriately Signed-off-by: Takamasa Horibe <horibe.takamasa@gmail.com>
Signed-off-by: Takamasa Horibe <horibe.takamasa@gmail.com>
Signed-off-by: Takamasa Horibe <horibe.takamasa@gmail.com>
taikitanaka3
reviewed
Apr 6, 2022
taikitanaka3
reviewed
Apr 6, 2022
for (const double s : s_tmp) { | ||
if (!s_out.empty() && std::fabs(s_out.back() - s) < epsilon) { | ||
continue; | ||
if (!has_almost_same_value(s_out, s)) { |
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.
looks good
taikitanaka3
reviewed
Apr 6, 2022
taikitanaka3
approved these changes
Apr 6, 2022
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
- tested by real vehicle
7 tasks
tkimura4
referenced
this pull request
in tier4/autoware.universe
Apr 14, 2022
…he stop position inappropriately (#623) * fix(behavior_velocity_planner): fix velocity interpolation changing the stop position inappropriately Signed-off-by: Takamasa Horibe <horibe.takamasa@gmail.com> * fix typo Signed-off-by: Takamasa Horibe <horibe.takamasa@gmail.com> * add test for interpolation Signed-off-by: Takamasa Horibe <horibe.takamasa@gmail.com> * fix build warning Signed-off-by: Takamasa Horibe <horibe.takamasa@gmail.com>
taikitanaka3
referenced
this pull request
in tier4/autoware.universe
Apr 14, 2022
…he stop position inappropriately (#623) * fix(behavior_velocity_planner): fix velocity interpolation changing the stop position inappropriately Signed-off-by: Takamasa Horibe <horibe.takamasa@gmail.com> * fix typo Signed-off-by: Takamasa Horibe <horibe.takamasa@gmail.com> * add test for interpolation Signed-off-by: Takamasa Horibe <horibe.takamasa@gmail.com> * fix build warning Signed-off-by: Takamasa Horibe <horibe.takamasa@gmail.com>
taikitanaka3
referenced
this pull request
in tier4/autoware.universe
Apr 14, 2022
…he stop position inappropriately (#623) * fix(behavior_velocity_planner): fix velocity interpolation changing the stop position inappropriately Signed-off-by: Takamasa Horibe <horibe.takamasa@gmail.com> * fix typo Signed-off-by: Takamasa Horibe <horibe.takamasa@gmail.com> * add test for interpolation Signed-off-by: Takamasa Horibe <horibe.takamasa@gmail.com> * fix build warning Signed-off-by: Takamasa Horibe <horibe.takamasa@gmail.com>
TomohitoAndo
pushed a commit
to TomohitoAndo/autoware.universe
that referenced
this pull request
May 16, 2022
…he stop position inappropriately (autowarefoundation#623) * fix(behavior_velocity_planner): fix velocity interpolation changing the stop position inappropriately Signed-off-by: Takamasa Horibe <horibe.takamasa@gmail.com> * fix typo Signed-off-by: Takamasa Horibe <horibe.takamasa@gmail.com> * add test for interpolation Signed-off-by: Takamasa Horibe <horibe.takamasa@gmail.com> * fix build warning Signed-off-by: Takamasa Horibe <horibe.takamasa@gmail.com>
satoshi-ota
pushed a commit
to satoshi-ota/autoware.universe
that referenced
this pull request
May 20, 2022
…he stop position inappropriately (autowarefoundation#623) * fix(behavior_velocity_planner): fix velocity interpolation changing the stop position inappropriately Signed-off-by: Takamasa Horibe <horibe.takamasa@gmail.com> * fix typo Signed-off-by: Takamasa Horibe <horibe.takamasa@gmail.com> * add test for interpolation Signed-off-by: Takamasa Horibe <horibe.takamasa@gmail.com> * fix build warning Signed-off-by: Takamasa Horibe <horibe.takamasa@gmail.com>
satoshi-ota
pushed a commit
to satoshi-ota/autoware.universe
that referenced
this pull request
Jul 3, 2023
…utowarefoundation#3991) (autowarefoundation#623) * feat(behavior_path_planner): enable delay lane change when necessary * update * update * feat(behavior_path_planner): add a function to judge a parked vehicle * update * update * update * update * update * update * update * update * Update planning/behavior_path_planner/src/utils/lane_change/utils.cpp * update name --------- Signed-off-by: yutaka <purewater0901@gmail.com> Co-authored-by: Yutaka Shimizu <43805014+purewater0901@users.noreply.github.com>
kyoichi-sugahara
pushed a commit
that referenced
this pull request
Sep 16, 2023
* feat: change runtime type * fix: typo * Update .webauto-ci.yml --------- Co-authored-by: Makoto Tokunaga <vios-fish@users.noreply.github.com>
iwatake2222
pushed a commit
to iwatake2222/autoware.universe
that referenced
this pull request
Jan 17, 2025
…n#623) Signed-off-by: Mamoru Sobue <mamoru.sobue@tier4.jp>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
Interpolation in the
behavior_velocity_planner
sometimes calculates an inappropriate velocity.This PR fixes the issue and adds associated unit tests.
Current implementation:
s_in = [0, 2.1], v_in = [5, 0]
->s_out = [0, 1, 2, 2.1, 3], v_out = [5, 5, 5, 0, 0]
.s=2.1
which is OK.s_in = [0, 2.001], v_in = [5, 0]
->s_out = [0, 1, 2, 3], v_out = [5, 5, 5, 0]
.s=3
which is BAD because the original stop point iss=2.001
.The cause is that the original path point is overwritten by a new constant-interval point when they are at a close distance. In this PR, the original path points are never overwritten and the new constant-interval point is removed when they are close.
With this PR:
s_in = [0, 2.1], v_in = [5, 0]
->s_out = [0, 1, 2, 2.1, 3], v = [5, 5, 5, 0, 0]
.s=2.1
which is OK. (Not changed anything)s_in = [0, 2.001], v_in = [5, 0]
->s_out = [0, 1, 2.001, 3], v = [5, 5, 5, 0]
.s=2.001
which is OK.Related links
internal ticket for tier4:
Tests performed
I've tested with the rosbag which causes this bug.
Also with the unit test.
Please check that the unit test fails in the original implementation and succeeds with this PR.
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.