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

perf(static_obstacle_avoidance): improve logic to reduce computational cost #8432

Merged

Conversation

satoshi-ota
Copy link
Contributor

@satoshi-ota satoshi-ota commented Aug 9, 2024

Description

272846b

Since the process of yaw deviation check is heavy, I fixed it in order to check object within/without target lane first.

image

d638d08

The postProcess() function is automatically called in this line.

7ba2c3d

Don't use heavy process calcSignedArcLength().

image

Related links

Parent Issue:

  • Link

How was this PR tested?

Notes for reviewers

None.

Interface changes

None.

Effects on system behavior

None.

Copy link

github-actions bot commented Aug 9, 2024

Thank you for contributing to the Autoware project!

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

Please ensure:

@satoshi-ota satoshi-ota added the tag:run-build-and-test-differential Mark to enable build-and-test-differential workflow. (used-by-ci) label Aug 12, 2024
@satoshi-ota satoshi-ota enabled auto-merge (squash) August 12, 2024 23:07
Copy link

codecov bot commented Aug 12, 2024

Codecov Report

Attention: Patch coverage is 7.14286% with 13 lines in your changes missing coverage. Please review.

Project coverage is 23.87%. Comparing base (13ac473) to head (fc3b7bc).
Report is 1 commits behind head on main.

Files Patch % Lines
...rc/utils/path_safety_checker/objects_filtering.cpp 0.00% 12 Missing ⚠️
...ath_static_obstacle_avoidance_module/src/utils.cpp 50.00% 0 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #8432      +/-   ##
==========================================
- Coverage   23.89%   23.87%   -0.02%     
==========================================
  Files        1379     1385       +6     
  Lines      101582   101625      +43     
  Branches    38638    38639       +1     
==========================================
  Hits        24268    24268              
- Misses      74855    74898      +43     
  Partials     2459     2459              
Flag Coverage Δ *Carryforward flag
differential 15.09% <7.14%> (?)
total 23.89% <ø> (+<0.01%) ⬆️ Carriedforward from 13ac473

*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.

Signed-off-by: satoshi-ota <satoshi.ota928@gmail.com>
Signed-off-by: satoshi-ota <satoshi.ota928@gmail.com>
Signed-off-by: satoshi-ota <satoshi.ota928@gmail.com>
@satoshi-ota satoshi-ota force-pushed the perf/static-obstacle-avoidance branch from 7ba2c3d to fc3b7bc Compare August 13, 2024 00:33
@satoshi-ota satoshi-ota merged commit 1dc6db3 into autowarefoundation:main Aug 13, 2024
29 of 30 checks passed
@satoshi-ota satoshi-ota deleted the perf/static-obstacle-avoidance branch August 13, 2024 01:23
satoshi-ota added a commit to tier4/autoware.universe that referenced this pull request Aug 13, 2024
…l cost (autowarefoundation#8432)

* perf(safety_check): check within first

Signed-off-by: satoshi-ota <satoshi.ota928@gmail.com>

* perf(static_obstacle_avoidance): remove duplicated process

Signed-off-by: satoshi-ota <satoshi.ota928@gmail.com>

* perf(static_obstacle_avoidance): remove heavy process

Signed-off-by: satoshi-ota <satoshi.ota928@gmail.com>

---------

Signed-off-by: satoshi-ota <satoshi.ota928@gmail.com>
Naophis added a commit to tier4/autoware.universe that referenced this pull request Aug 13, 2024
perf(static_obstacle_avoidance): improve logic to reduce computational cost (autowarefoundation#8432)
esteve pushed a commit to esteve/autoware.universe that referenced this pull request Aug 13, 2024
…l cost (autowarefoundation#8432)

* perf(safety_check): check within first

Signed-off-by: satoshi-ota <satoshi.ota928@gmail.com>

* perf(static_obstacle_avoidance): remove duplicated process

Signed-off-by: satoshi-ota <satoshi.ota928@gmail.com>

* perf(static_obstacle_avoidance): remove heavy process

Signed-off-by: satoshi-ota <satoshi.ota928@gmail.com>

---------

Signed-off-by: satoshi-ota <satoshi.ota928@gmail.com>
xtk8532704 pushed a commit to tier4/autoware.universe that referenced this pull request Aug 15, 2024
…l cost (autowarefoundation#8432)

* perf(safety_check): check within first

Signed-off-by: satoshi-ota <satoshi.ota928@gmail.com>

* perf(static_obstacle_avoidance): remove duplicated process

Signed-off-by: satoshi-ota <satoshi.ota928@gmail.com>

* perf(static_obstacle_avoidance): remove heavy process

Signed-off-by: satoshi-ota <satoshi.ota928@gmail.com>

---------

Signed-off-by: satoshi-ota <satoshi.ota928@gmail.com>
Signed-off-by: xtk8532704 <1041084556@qq.com>
mbharatheesha pushed a commit to nobleo/autoware.universe that referenced this pull request Aug 16, 2024
…l cost (autowarefoundation#8432)

* perf(safety_check): check within first

Signed-off-by: satoshi-ota <satoshi.ota928@gmail.com>

* perf(static_obstacle_avoidance): remove duplicated process

Signed-off-by: satoshi-ota <satoshi.ota928@gmail.com>

* perf(static_obstacle_avoidance): remove heavy process

Signed-off-by: satoshi-ota <satoshi.ota928@gmail.com>

---------

Signed-off-by: satoshi-ota <satoshi.ota928@gmail.com>
Signed-off-by: Mukunda Bharatheesha <mukunda.bharatheesha@nobleo.nl>
mbharatheesha pushed a commit to nobleo/autoware.universe that referenced this pull request Aug 16, 2024
…l cost (autowarefoundation#8432)

* perf(safety_check): check within first

Signed-off-by: satoshi-ota <satoshi.ota928@gmail.com>

* perf(static_obstacle_avoidance): remove duplicated process

Signed-off-by: satoshi-ota <satoshi.ota928@gmail.com>

* perf(static_obstacle_avoidance): remove heavy process

Signed-off-by: satoshi-ota <satoshi.ota928@gmail.com>

---------

Signed-off-by: satoshi-ota <satoshi.ota928@gmail.com>
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