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(behavior_velocity_planner): use faster PolygonIterator #943

Merged
merged 14 commits into from
May 30, 2022

Conversation

maxime-clem
Copy link
Contributor

@maxime-clem maxime-clem commented May 20, 2022

Signed-off-by: Maxime CLEMENT [email protected]

Description

This PR adds a faster PolygonIterator for the grid_map library.

Related links

Tests performed

Notes for reviewers

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.

  • The PR follows the pull request guidelines.
  • The PR has been properly tested.
  • The PR has been reviewed by the code owners.

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.
  • The PR is ready for merge.

After all checkboxes are checked, anyone who has write access can merge the PR.

@maxime-clem maxime-clem added the type:new-feature New functionalities or additions, feature requests. label May 20, 2022
@maxime-clem maxime-clem self-assigned this May 20, 2022
@codecov
Copy link

codecov bot commented May 20, 2022

Codecov Report

Merging #943 (3c0cd88) into main (4e30bf5) will increase coverage by 0.08%.
The diff coverage is 22.60%.

@@            Coverage Diff            @@
##            main     #943      +/-   ##
=========================================
+ Coverage   9.95%   10.04%   +0.08%     
=========================================
  Files        879      883       +4     
  Lines      55968    56344     +376     
  Branches   10577    10794     +217     
=========================================
+ Hits        5572     5657      +85     
- Misses     45679    45776      +97     
- Partials    4717     4911     +194     
Flag Coverage Δ *Carryforward flag
differential 21.54% <21.54%> (?)
total 9.95% <ø> (ø) Carriedforward from a942475

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

Impacted Files Coverage Δ
common/grid_map_utils/test/benchmark.cpp 0.00% <0.00%> (ø)
...mmon/grid_map_utils/test/test_polygon_iterator.cpp 10.98% <10.98%> (ø)
common/grid_map_utils/src/polygon_iterator.cpp 58.87% <58.87%> (ø)
..._utils/include/grid_map_utils/polygon_iterator.hpp 75.00% <75.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 4e30bf5...3c0cd88. Read the comment docs.

@taikitanaka3
Copy link
Contributor

  • please make PR to grid map core too if this is merged and test result become nicer.
  • please add brief description to this package

@maxime-clem maxime-clem force-pushed the perf-polygon_iterator branch 2 times, most recently from ea41110 to 3d1173d Compare May 25, 2022 12:26
@maxime-clem maxime-clem marked this pull request as ready for review May 25, 2022 14:57
@taikitanaka3
Copy link
Contributor

@maxime-clem
I close and reopen this pr for updating ci

@taikitanaka3 taikitanaka3 reopened this May 30, 2022
@taikitanaka3
Copy link
Contributor

@yukkysaito @TakaHoribe
This is just PR for adding new package.
There is a test for comparing polygon iterator of grid map package and @maxime-clem 's grid map utils.
I think merge isReady.
image

Copy link
Contributor

@yukkysaito yukkysaito left a comment

Choose a reason for hiding this comment

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

Awesome. LGTM

@maxime-clem
Copy link
Contributor Author

Thank you for the review.
Friday I tested a new feature making use of this faster PolygonIterator and did not encounter any issue.
I will merge this.

@maxime-clem maxime-clem merged commit 90f5f56 into autowarefoundation:main May 30, 2022
@maxime-clem maxime-clem deleted the perf-polygon_iterator branch May 30, 2022 11:33
ktro2828 pushed a commit to ktro2828/autoware.universe that referenced this pull request Jun 7, 2022
…foundation#943)

* Add grid_map_utils pkg with faster implementation of PolygonIterator

Signed-off-by: Maxime CLEMENT <[email protected]>
Signed-off-by: ktro2828 <[email protected]>
maxime-clem referenced this pull request in tier4/autoware.universe Aug 3, 2022
* Add grid_map_utils pkg with faster implementation of PolygonIterator

Signed-off-by: Maxime CLEMENT <[email protected]>
maxime-clem referenced this pull request in tier4/autoware.universe Aug 11, 2022
* Add grid_map_utils pkg with faster implementation of PolygonIterator

Signed-off-by: Maxime CLEMENT <[email protected]>
boyali referenced this pull request in boyali/autoware.universe Sep 28, 2022
* Add grid_map_utils pkg with faster implementation of PolygonIterator

Signed-off-by: Maxime CLEMENT <[email protected]>
boyali referenced this pull request in boyali/autoware.universe Oct 3, 2022
* Add grid_map_utils pkg with faster implementation of PolygonIterator

Signed-off-by: Maxime CLEMENT <[email protected]>
boyali referenced this pull request in boyali/autoware.universe Oct 3, 2022
* Add grid_map_utils pkg with faster implementation of PolygonIterator

Signed-off-by: Maxime CLEMENT <[email protected]>
boyali referenced this pull request in boyali/autoware.universe Oct 19, 2022
* Add grid_map_utils pkg with faster implementation of PolygonIterator

Signed-off-by: Maxime CLEMENT <[email protected]>
h-ohta referenced this pull request in tier4/autoware.universe Mar 24, 2023
* Add grid_map_utils pkg with faster implementation of PolygonIterator

Signed-off-by: Maxime CLEMENT <[email protected]>
h-ohta referenced this pull request in tier4/autoware.universe Mar 31, 2023
…arefoundation#2571, autowarefoundation#2885, #943) (#337)

* feat(elevation_map_loader): reduce memory usage of elevation_map_loader (autowarefoundation#2571)

* feat: reduce memory usage of elevation_map_loader

Signed-off-by: Shin-kyoto <[email protected]>

* chore: remove unnecessary comment

Signed-off-by: Shin-kyoto <[email protected]>

* fix: modify variables' name

Signed-off-by: Shin-kyoto <[email protected]>

Signed-off-by: Shin-kyoto <[email protected]>

* feat(elevation_map_loader): use polygon iterator to speed up (autowarefoundation#2885)

* use grid_map::PolygonIterator instead of grid_map::GridMapIterator

Signed-off-by: Shunsuke Miura <[email protected]>

* formatting

Signed-off-by: Shunsuke Miura <[email protected]>

* use use_lane_filter option

Signed-off-by: Shunsuke Miura <[email protected]>

* delete unused use-lane-filter option

Signed-off-by: Shunsuke Miura <[email protected]>

* change use_lane_filter to True, clarify the scope

Signed-off-by: Shunsuke Miura <[email protected]>

* change to use grid_map_utils::PolygonIterator

Signed-off-by: Shunsuke Miura <[email protected]>

* Add lane margin parameter

Signed-off-by: Shunsuke Miura <[email protected]>

* use boost geometry buffer to expand lanes

Signed-off-by: Shunsuke Miura <[email protected]>

* Change use_lane_filter param default to false

Signed-off-by: Shunsuke Miura <[email protected]>

* update README

Signed-off-by: Shunsuke Miura <[email protected]>

---------

Signed-off-by: Shunsuke Miura <[email protected]>

* perf(behavior_velocity_planner): add faster PolygonIterator (#943)

* Add grid_map_utils pkg with faster implementation of PolygonIterator

Signed-off-by: Maxime CLEMENT <[email protected]>

* suppress error

---------

Signed-off-by: Shin-kyoto <[email protected]>
Signed-off-by: Shunsuke Miura <[email protected]>
Signed-off-by: Maxime CLEMENT <[email protected]>
Co-authored-by: Shintaro Tomie <[email protected]>
Co-authored-by: Shunsuke Miura <[email protected]>
Co-authored-by: Maxime CLEMENT <[email protected]>
YoshiRi pushed a commit to YoshiRi/autoware.universe that referenced this pull request Oct 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:new-feature New functionalities or additions, feature requests.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants