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

feat(autoware_auto_perception_rviz_plugin): improve rviz performance #2780

Merged
merged 11 commits into from
Feb 3, 2023

Conversation

lexavtanke
Copy link
Contributor

@lexavtanke lexavtanke commented Jan 30, 2023

Description

This PR add ability to choose between different types of DetectedObjects visualization: 3d polygon, 2d polygon, no polygon.
Here is video showing this.

There is also small performance improvement with big amount of objects (1-2 fps).
Here are 250 detected objects.
Here are 500.

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.

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.

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

@github-actions github-actions bot added the component:common Common packages from the autoware-common repository. (auto-assigned) label Jan 30, 2023
@codecov
Copy link

codecov bot commented Jan 30, 2023

Codecov Report

Base: 11.63% // Head: 11.60% // Decreases project coverage by -0.03% ⚠️

Coverage data is based on head (b9446f5) compared to base (5940ba7).
Patch coverage: 0.00% of modified lines in pull request are covered.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2780      +/-   ##
==========================================
- Coverage   11.63%   11.60%   -0.03%     
==========================================
  Files        1317     1317              
  Lines       91819    92029     +210     
  Branches    24371    24371              
==========================================
  Hits        10679    10679              
- Misses      69990    70200     +210     
  Partials    11150    11150              
Flag Coverage Δ *Carryforward flag
differential 0.00% <0.00%> (?)
total 11.63% <0.00%> (ø) Carriedforward from 0bbde6f

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

Impacted Files Coverage Δ
...include/object_detection/object_polygon_detail.hpp 0.00% <ø> (ø)
...e/object_detection/object_polygon_display_base.hpp 0.00% <0.00%> (ø)
...gin/src/object_detection/object_polygon_detail.cpp 0.00% <0.00%> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

@taikitanaka3
Copy link
Contributor

@yukkysaito
Can you review this PR?

@yukkysaito
Copy link
Contributor

@lexavtanke Thank you for PR 👍 I reviewed the code

…etected objects

Signed-off-by: Alexey Panferov <lexavtanke@gmail.com>
…working

Signed-off-by: Alexey Panferov <lexavtanke@gmail.com>
Signed-off-by: Alexey Panferov <lexavtanke@gmail.com>
Signed-off-by: Alexey Panferov <lexavtanke@gmail.com>
Signed-off-by: Alexey Panferov <lexavtanke@gmail.com>
Signed-off-by: Alexey Panferov <lexavtanke@gmail.com>
…aunch and revert testing modification.

Signed-off-by: Alexey Panferov <lexavtanke@gmail.com>
@github-actions github-actions bot removed component:system System design and integration. (auto-assigned) type:ci Continuous Integration (CI) processes and testing. (auto-assigned) component:map Map creation, storage, and loading. (auto-assigned) component:sensing Data acquisition from sensors, drivers, preprocessing. (auto-assigned) labels Jan 31, 2023
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.

LGTM

@tkimura4 tkimura4 enabled auto-merge (squash) February 3, 2023 09:23
@tkimura4 tkimura4 merged commit 3bc370c into autowarefoundation:main Feb 3, 2023
tkimura4 pushed a commit to tier4/autoware.universe that referenced this pull request Feb 6, 2023
…utowarefoundation#2780)

* add choose box element to control type of visualization polygon for detected objects

Signed-off-by: Alexey Panferov <lexavtanke@gmail.com>

* WIP: add switching logic and defininition for 2d poligons functions, working

Signed-off-by: Alexey Panferov <lexavtanke@gmail.com>

* add function for making 2d polygon from cylinder shape

Signed-off-by: Alexey Panferov <lexavtanke@gmail.com>

* add code to make 2d polygones from unknown objects

Signed-off-by: Alexey Panferov <lexavtanke@gmail.com>

* wip, add creation of milty dummy objects by one click

Signed-off-by: Alexey Panferov <lexavtanke@gmail.com>

* modificate empty_objects_publisher for testing purpose

Signed-off-by: Alexey Panferov <lexavtanke@gmail.com>

* feat/2d_obj_rviz: cleaning for pull request. Remove dummy_empty_obj.launch and revert testing modification.

Signed-off-by: Alexey Panferov <lexavtanke@gmail.com>

* feat/2d-obj-rviz refactor, update names of functions to more meaningfull, remove unnecessary code which was drawing additional lines on circle, remove TODO

Signed-off-by: Alexey Panferov <lexavtanke@gmail.com>

* style(pre-commit): autofix

* feat/2d-obj-rviz correct spelling mistakes

Signed-off-by: Alexey Panferov <lexavtanke@gmail.com>

---------

Signed-off-by: Alexey Panferov <lexavtanke@gmail.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
tkimura4 added a commit to tier4/autoware.universe that referenced this pull request Feb 6, 2023
* feat(autoware_auto_perception_rviz_plugin): improve rviz performance (autowarefoundation#2780)

* add choose box element to control type of visualization polygon for detected objects

Signed-off-by: Alexey Panferov <lexavtanke@gmail.com>

* WIP: add switching logic and defininition for 2d poligons functions, working

Signed-off-by: Alexey Panferov <lexavtanke@gmail.com>

* add function for making 2d polygon from cylinder shape

Signed-off-by: Alexey Panferov <lexavtanke@gmail.com>

* add code to make 2d polygones from unknown objects

Signed-off-by: Alexey Panferov <lexavtanke@gmail.com>

* wip, add creation of milty dummy objects by one click

Signed-off-by: Alexey Panferov <lexavtanke@gmail.com>

* modificate empty_objects_publisher for testing purpose

Signed-off-by: Alexey Panferov <lexavtanke@gmail.com>

* feat/2d_obj_rviz: cleaning for pull request. Remove dummy_empty_obj.launch and revert testing modification.

Signed-off-by: Alexey Panferov <lexavtanke@gmail.com>

* feat/2d-obj-rviz refactor, update names of functions to more meaningfull, remove unnecessary code which was drawing additional lines on circle, remove TODO

Signed-off-by: Alexey Panferov <lexavtanke@gmail.com>

* style(pre-commit): autofix

* feat/2d-obj-rviz correct spelling mistakes

Signed-off-by: Alexey Panferov <lexavtanke@gmail.com>

---------

Signed-off-by: Alexey Panferov <lexavtanke@gmail.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>

* feat(autoware_auto_perception_rviz_plugin): add simple visualize mode (autowarefoundation#2814)

* feat(autoware_auto_perception_rviz_plugin): add simple visualize mode

Signed-off-by: tomoya.kimura <tomoya.kimura@tier4.jp>

* fix typo

Signed-off-by: tomoya.kimura <tomoya.kimura@tier4.jp>

---------

Signed-off-by: tomoya.kimura <tomoya.kimura@tier4.jp>

---------

Signed-off-by: Alexey Panferov <lexavtanke@gmail.com>
Signed-off-by: tomoya.kimura <tomoya.kimura@tier4.jp>
Co-authored-by: Alexey Panferov <37497658+lexavtanke@users.noreply.github.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
asana17 pushed a commit to asana17/autoware.universe that referenced this pull request Feb 8, 2023
…utowarefoundation#2780)

* add choose box element to control type of visualization polygon for detected objects

Signed-off-by: Alexey Panferov <lexavtanke@gmail.com>

* WIP: add switching logic and defininition for 2d poligons functions, working

Signed-off-by: Alexey Panferov <lexavtanke@gmail.com>

* add function for making 2d polygon from cylinder shape

Signed-off-by: Alexey Panferov <lexavtanke@gmail.com>

* add code to make 2d polygones from unknown objects

Signed-off-by: Alexey Panferov <lexavtanke@gmail.com>

* wip, add creation of milty dummy objects by one click

Signed-off-by: Alexey Panferov <lexavtanke@gmail.com>

* modificate empty_objects_publisher for testing purpose

Signed-off-by: Alexey Panferov <lexavtanke@gmail.com>

* feat/2d_obj_rviz: cleaning for pull request. Remove dummy_empty_obj.launch and revert testing modification.

Signed-off-by: Alexey Panferov <lexavtanke@gmail.com>

* feat/2d-obj-rviz refactor, update names of functions to more meaningfull, remove unnecessary code which was drawing additional lines on circle, remove TODO

Signed-off-by: Alexey Panferov <lexavtanke@gmail.com>

* style(pre-commit): autofix

* feat/2d-obj-rviz correct spelling mistakes

Signed-off-by: Alexey Panferov <lexavtanke@gmail.com>

---------

Signed-off-by: Alexey Panferov <lexavtanke@gmail.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component:common Common packages from the autoware-common repository. (auto-assigned)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants