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_detected_object_validation): reduce lanelet_filter processing time (#8240) #1433

Merged
merged 1 commit into from
Jul 30, 2024

Conversation

technolojin
Copy link

Description

  • add local r-tree for fast searching

cherry-pick of autowarefoundation#8240

https://tier4.atlassian.net/browse/RT1-7219

How was this PR tested?

Notes for reviewers

None.

Interface changes

None.

Effects on system behavior

None.

…essing time (autowarefoundation#8240)

* add local r-tree for fast searching

Signed-off-by: a-maumau <maumaumaumaumaumaumaumaumaumau@gmail.com>

change to _func__

add more debug

use local rtree

fix

tmp update

fix bug

clean unused

clean up

Signed-off-by: a-maumau <maumaumaumaumaumaumaumaumaumau@gmail.com>

* clean up

Signed-off-by: a-maumau <maumaumaumaumaumaumaumaumaumau@gmail.com>

* style(pre-commit): autofix

* chore: Optimize object filtering and improve performance

The code changes in `lanelet_filter.cpp` optimize the object filtering process by using the `empty()` function instead of checking the size of the `transformed_objects.objects` vector. This change improves performance and simplifies the code logic.

Refactor the code to use `empty()` instead of `size()` for checking if the `transformed_objects.objects` vector is empty. This change improves readability and performance.

Signed-off-by: Taekjin LEE <taekjin.lee@tier4.jp>

---------

Signed-off-by: a-maumau <maumaumaumaumaumaumaumaumaumau@gmail.com>
Signed-off-by: Taekjin LEE <taekjin.lee@tier4.jp>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Taekjin LEE <taekjin.lee@tier4.jp>
Copy link

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

LGTM

Copy link

sonarcloud bot commented Jul 30, 2024

@shmpwk shmpwk merged commit a1e97cb into tier4:beta/v0.29.0 Jul 30, 2024
20 checks passed
@technolojin technolojin deleted the perf/lanelet-filter-improve branch July 30, 2024 06:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants