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(autoware_map_based_prediction): removed duplicate findNearest calculations #8490

Conversation

yhisaki
Copy link
Contributor

@yhisaki yhisaki commented Aug 15, 2024

Description

This PR contains 2 changes.

  1. Fix bug of 3rd argument of findNearest is the number of lanelets.
  2. Reuse findNearest result. Before being modified by this PR, the calculation was performed firstly here and secondly here.

Perfomance Improvement

Untitled (8)

How was this PR tested?

https://evaluation.tier4.jp/evaluation/reports/b4f0ddee-5301-5708-a968-41699f2d7c0b?project_id=prd_jt

Notes for reviewers

None.

Interface changes

None.

Effects on system behavior

None.

…lculations

Signed-off-by: Y.Hisaki <yhisaki31@gmail.com>
@github-actions github-actions bot added the component:perception Advanced sensor data processing and environment understanding. (auto-assigned) label Aug 15, 2024
Copy link

github-actions bot commented Aug 15, 2024

Thank you for contributing to the Autoware project!

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

Please ensure:

@yhisaki yhisaki added the tag:run-build-and-test-differential Mark to enable build-and-test-differential workflow. (used-by-ci) label Aug 15, 2024
Copy link

codecov bot commented Aug 15, 2024

Codecov Report

Attention: Patch coverage is 0% with 5 lines in your changes missing coverage. Please review.

Project coverage is 23.89%. Comparing base (c656530) to head (dcde678).
Report is 9 commits behind head on main.

Files Patch % Lines
...based_prediction/src/map_based_prediction_node.cpp 0.00% 5 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #8490      +/-   ##
==========================================
+ Coverage   23.87%   23.89%   +0.01%     
==========================================
  Files        1380     1382       +2     
  Lines      101838   101872      +34     
  Branches    38775    38791      +16     
==========================================
+ Hits        24315    24341      +26     
- Misses      75047    75099      +52     
+ Partials     2476     2432      -44     
Flag Coverage Δ *Carryforward flag
differential 2.17% <0.00%> (?)
total 23.90% <ø> (+0.02%) ⬆️ Carriedforward from 9736752

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

@yhisaki yhisaki marked this pull request as ready for review August 15, 2024 10:42
@yhisaki yhisaki self-assigned this Aug 15, 2024
@yhisaki yhisaki enabled auto-merge (squash) August 15, 2024 10:50
…ion_node.cpp


Signed-off-by: Y.Hisaki <yhisaki31@gmail.com>

Co-authored-by: Mamoru Sobue <hilo.soblin@gmail.com>
Signed-off-by: Y.Hisaki <yhisaki31@gmail.com>
Copy link
Contributor

@YoshiRi YoshiRi left a comment

Choose a reason for hiding this comment

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

It worked and also accelerated my X2 test case.
LGTM

@yhisaki yhisaki merged commit a612530 into autowarefoundation:main Aug 15, 2024
29 of 30 checks passed
technolojin pushed a commit to technolojin/autoware.universe that referenced this pull request Aug 16, 2024
technolojin added a commit to tier4/autoware.universe that referenced this pull request Aug 16, 2024
…lculations (autowarefoundation#8490) (#1470)

Signed-off-by: Y.Hisaki <yhisaki31@gmail.com>
Co-authored-by: Yukinari Hisaki <42021302+yhisaki@users.noreply.github.com>
@yhisaki yhisaki deleted the remove-unnecessary-process-in-map_based_prediction branch August 16, 2024 04:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component:perception Advanced sensor data processing and environment understanding. (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.

3 participants