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

feat(behavior_path_planner): update resampling function #1517

Conversation

purewater0901
Copy link
Contributor

@purewater0901 purewater0901 commented Aug 4, 2022

Signed-off-by: yutaka [email protected]

Description

Use resampling functions from motion utils and also resample input points. Currently, resample functions in the behavior path planner do not resample input path points, and due to this problem, it sometimes samples points without lanes in the input path when the sampling interval is large.

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.

@codecov
Copy link

codecov bot commented Aug 4, 2022

Codecov Report

Merging #1517 (09820b4) into main (cdc120c) will decrease coverage by 0.03%.
The diff coverage is 8.69%.

@@            Coverage Diff             @@
##             main    #1517      +/-   ##
==========================================
- Coverage   10.57%   10.54%   -0.04%     
==========================================
  Files        1113     1113              
  Lines       78486    79423     +937     
  Branches    18339    19016     +677     
==========================================
+ Hits         8302     8377      +75     
- Misses      61522    62302     +780     
- Partials     8662     8744      +82     
Flag Coverage Δ *Carryforward flag
differential 10.81% <4.34%> (?)
total 10.55% <9.09%> (-0.01%) ⬇️ Carriedforward from 64389ce

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

Impacted Files Coverage Δ
...nning/behavior_path_planner/src/path_utilities.cpp 0.00% <0.00%> (ø)
common/motion_utils/src/resample/resample.cpp 55.92% <100.00%> (+7.74%) ⬆️
...vehicle_model/sim_model_ideal_steer_acc_geared.cpp 73.58% <0.00%> (-9.44%) ⬇️
...planning_evaluator/src/planning_evaluator_node.cpp 37.11% <0.00%> (-1.04%) ⬇️
...nner/src/scene_module/pull_out/pull_out_module.cpp 0.00% <0.00%> (ø)
...er/src/scene_module/avoidance/avoidance_module.cpp 0.00% <0.00%> (ø)
.../scene_module/utils/geometric_parallel_parking.cpp 0.00% <0.00%> (ø)
planning/behavior_path_planner/src/utilities.cpp 1.38% <0.00%> (+0.34%) ⬆️
...n/motion_utils/test/src/resample/test_resample.cpp 26.01% <0.00%> (+0.35%) ⬆️
... and 1 more

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

@tkimura4
Copy link
Contributor

tkimura4 commented Aug 4, 2022

@purewater0901 purewater0901 marked this pull request as ready for review August 4, 2022 06:19
resampled_path.points.push_back(p);
}
constexpr double epsilon = 0.01;
const auto has_almost_same_value = [&](const auto & vec, const auto x) {
Copy link
Contributor

Choose a reason for hiding this comment

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

@purewater0901
[Q] how was almost_same_value(point) handled in behavior path planner previously?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

They previously do not sample input points, so it does not handle duplicated points

@purewater0901
Copy link
Contributor Author

Since the number of failures are increasing when including this PR, please do not approve this PR until we find the problem

@purewater0901 purewater0901 merged commit 75d704a into autowarefoundation:main Aug 4, 2022
@purewater0901 purewater0901 deleted the feat/update-behavior-path-resampling-function branch August 4, 2022 12:50
tkimura4 referenced this pull request in tier4/autoware.universe Aug 4, 2022
* feat(behavior_path_planner): update resampling function

Signed-off-by: yutaka <[email protected]>

* feat(motion_utils): substitute input path initila point informaiton

Signed-off-by: yutaka <[email protected]>
HaoruXue pushed a commit to HaoruXue/autoware.universe that referenced this pull request Aug 10, 2022
…dation#1517)

* feat(behavior_path_planner): update resampling function

Signed-off-by: yutaka <[email protected]>

* feat(motion_utils): substitute input path initila point informaiton

Signed-off-by: yutaka <[email protected]>
boyali referenced this pull request in boyali/autoware.universe Sep 28, 2022
* feat(behavior_path_planner): update resampling function

Signed-off-by: yutaka <[email protected]>

* feat(motion_utils): substitute input path initila point informaiton

Signed-off-by: yutaka <[email protected]>
boyali referenced this pull request in boyali/autoware.universe Oct 3, 2022
* feat(behavior_path_planner): update resampling function

Signed-off-by: yutaka <[email protected]>

* feat(motion_utils): substitute input path initila point informaiton

Signed-off-by: yutaka <[email protected]>
boyali referenced this pull request in boyali/autoware.universe Oct 3, 2022
* feat(behavior_path_planner): update resampling function

Signed-off-by: yutaka <[email protected]>

* feat(motion_utils): substitute input path initila point informaiton

Signed-off-by: yutaka <[email protected]>
yukke42 pushed a commit to tzhong518/autoware.universe that referenced this pull request Oct 14, 2022
…dation#1517)

* feat(behavior_path_planner): update resampling function

Signed-off-by: yutaka <[email protected]>

* feat(motion_utils): substitute input path initila point informaiton

Signed-off-by: yutaka <[email protected]>
boyali referenced this pull request in boyali/autoware.universe Oct 19, 2022
* feat(behavior_path_planner): update resampling function

Signed-off-by: yutaka <[email protected]>

* feat(motion_utils): substitute input path initila point informaiton

Signed-off-by: yutaka <[email protected]>
yhisaki pushed a commit to yhisaki/autoware.universe that referenced this pull request Sep 6, 2024
…dation#1517)

* # This is a combination of 3 commits.
# This is the 1st commit message:

change processing_time_ms topic name

Signed-off-by: Autumn60 <[email protected]>

# This is the commit message autowarefoundation#2:

style(pre-commit): autofix

# This is the commit message autowarefoundation#3:

Revert "style(pre-commit): autofix"

This reverts commit 1dc1351.

* change processing_time_ms topic name

Signed-off-by: Autumn60 <[email protected]>

style(pre-commit): autofix

Revert "style(pre-commit): autofix"

This reverts commit 1dc1351.

Revert "change processing_time_ms topic name"

This reverts commit 6f026f8.

change processing_time_ms diag topic name

Signed-off-by: Autumn60 <[email protected]>

---------

Signed-off-by: Autumn60 <[email protected]>
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