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(static_obstacle_avoidance): remove redundant calculation #8955

Merged

Conversation

go-sakayori
Copy link
Contributor

@go-sakayori go-sakayori commented Sep 25, 2024

Description

Inside fillAvoidanceTargetObjects function, filterTargetObjects and updateRoadShoulderDistance are called sequentially.
Both function calls getRoadShoulderDistance function, which is relatively time consuming (refer to figure).
The updateRoadShoulderDistance function updates the target object's distance to road shoulder (to_road_shoulder_distance) and avoidance margin (avoid_margin) according to the clip object information.
However, this calculation would be redundant if there is no clip objects.
This PR will resolve the above problem.

image

Related links

How was this PR tested?

Notes for reviewers

None.

Interface changes

None.

Effects on system behavior

None.

Signed-off-by: Go Sakayori <go.sakayori@tier4.jp>
@github-actions github-actions bot added the component:planning Route planning, decision-making, and navigation. (auto-assigned) label Sep 25, 2024
Copy link

Thank you for contributing to the Autoware project!

🚧 If your pull request is in progress, switch it to draft mode.

Please ensure:

Copy link
Contributor

@satoshi-ota satoshi-ota left a comment

Choose a reason for hiding this comment

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

LGTM

@satoshi-ota satoshi-ota added the tag:run-build-and-test-differential Mark to enable build-and-test-differential workflow. (used-by-ci) label Sep 26, 2024
Copy link

codecov bot commented Sep 26, 2024

Codecov Report

Attention: Patch coverage is 50.00000% with 1 line in your changes missing coverage. Please review.

Project coverage is 28.47%. Comparing base (73a9788) to head (027c460).
Report is 7 commits behind head on main.

Files with missing lines Patch % Lines
...ath_static_obstacle_avoidance_module/src/utils.cpp 50.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #8955      +/-   ##
==========================================
- Coverage   28.47%   28.47%   -0.01%     
==========================================
  Files        1314     1315       +1     
  Lines       98279    98298      +19     
  Branches    39985    39988       +3     
==========================================
+ Hits        27985    27989       +4     
- Misses      70207    70222      +15     
  Partials       87       87              
Flag Coverage Δ *Carryforward flag
differential 20.89% <50.00%> (?)
total 28.47% <ø> (ø) Carriedforward from 73a9788

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

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@go-sakayori go-sakayori merged commit fed4629 into autowarefoundation:main Sep 26, 2024
43 of 44 checks passed
@go-sakayori go-sakayori deleted the refactor/soa_fillFundamentalData branch September 26, 2024 04:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component:planning Route planning, decision-making, and navigation. (auto-assigned) tag:run-build-and-test-differential Mark to enable build-and-test-differential workflow. (used-by-ci)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants