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

refactor(pointcloud_preprocessor): blockage_diag #5932

Merged
merged 13 commits into from
Feb 27, 2024

Conversation

badai-nguyen
Copy link
Contributor

@badai-nguyen badai-nguyen commented Dec 22, 2023

Description

This PR to refactor blockage diag node to work also with Velodyne lidar.

Related link

TIER IV INTERNAL LINK
Related PR:

Tests performed

  • Confimred by logging_simulator that blockage_diag_nodes executed for desired product and blockage diagnostics result is published :

  • The diagnostics result could confirmed by ros2 run rqt_runtime_monitor rqt_runtime_monitor:
    image

  • Confirmed the debug topics are published by rqt
    image

Not applicable.

Effects on system behavior

Not applicable.

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.

Signed-off-by: badai-nguyen <[email protected]>
Signed-off-by: badai-nguyen <[email protected]>
Signed-off-by: badai-nguyen <[email protected]>
@github-actions github-actions bot added type:documentation Creating or refining documentation. (auto-assigned) component:sensing Data acquisition from sensors, drivers, preprocessing. (auto-assigned) labels Dec 22, 2023
Signed-off-by: badai-nguyen <[email protected]>
Signed-off-by: badai-nguyen <[email protected]>
@badai-nguyen badai-nguyen marked this pull request as draft December 28, 2023 10:18
@badai-nguyen badai-nguyen marked this pull request as ready for review January 9, 2024 06:05
@miursh miursh added the run:build-and-test-differential Mark to enable build-and-test-differential workflow. (used-by-ci) label Jan 18, 2024
Copy link

codecov bot commented Jan 18, 2024

Codecov Report

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

Project coverage is 14.67%. Comparing base (754742e) to head (8ae646b).
Report is 3 commits behind head on main.

Files Patch % Lines
...cessor/src/blockage_diag/blockage_diag_nodelet.cpp 0.00% 30 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #5932      +/-   ##
==========================================
- Coverage   14.67%   14.67%   -0.01%     
==========================================
  Files        1900     1900              
  Lines      130340   130345       +5     
  Branches    38370    38370              
==========================================
  Hits        19122    19122              
- Misses      89759    89764       +5     
  Partials    21459    21459              
Flag Coverage Δ *Carryforward flag
differential 5.24% <0.00%> (?)
total 14.67% <ø> (+<0.01%) ⬆️ Carriedforward from 754742e

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

@kyoichi-sugahara
Copy link
Contributor

@badai-nguyen

https://github.com/autowarefoundation/autoware.universe/pull/5932/files#diff-e1ecba84e49b0d4c692b47318fc8347f109aa9ef03c5758e64c6c6d3e0e8776aR80

Based on observing other parts of the code, it seems that the value of blockage_kernel_ might influence the effect of dilation and erosion. If this value is likely to be tuned, would it be better to externalize it into a config file? If there's no need for such tuning, then perhaps the current implementation is fine.

@kyoichi-sugahara
Copy link
Contributor

If the on-going conversations with miura san were addressed for me change is ok 👍
But how the feature check shuold be done?
For example, launch logging simulator with this pr and change some parameter and so on?
If you expect something to test the PR, I really appreciate if teach me how to do it 🙇

Signed-off-by: badai-nguyen <[email protected]>
@badai-nguyen
Copy link
Contributor Author

Based on observing other parts of the code, it seems that the value of blockage_kernel_ might influence the effect of dilation and erosion. If this value is likely to be tuned, would it be better to externalize it into a config file? If there's no need for such tuning, then perhaps the current implementation is fine.

@badai-nguyen

https://github.com/autowarefoundation/autoware.universe/pull/5932/files#diff-e1ecba84e49b0d4c692b47318fc8347f109aa9ef03c5758e64c6c6d3e0e8776aR80

Based on observing other parts of the code, it seems that the value of blockage_kernel_ might influence the effect of dilation and erosion. If this value is likely to be tuned, would it be better to externalize it into a config file? If there's no need for such tuning, then perhaps the current implementation is fine.

@kyoichi-sugahara I added parameter for blockage_kernel_ at 4fc3731

@kyoichi-sugahara kyoichi-sugahara removed the run:build-and-test-differential Mark to enable build-and-test-differential workflow. (used-by-ci) label Feb 19, 2024
@kyoichi-sugahara
Copy link
Contributor

kyoichi-sugahara commented Feb 20, 2024

@badai-nguyen
At first, I run logging_simulator with rosbag.

Only top lidar's sky_blockage_ratio value is valid and the other's value is nan.
Is it expected?

image

image

Signed-off-by: badai-nguyen <[email protected]>
@badai-nguyen
Copy link
Contributor Author

@badai-nguyen At first, I run logging_simulator with rosbag.

Only top lidar's sky_blockage_ratio value is valid and the other's value is nan. Is it expected?

image

image

@kyoichi-sugahara sorry for late response, and thanks a lot for reporting it. That is a bug when lidar's horizontal line is outside of the FoV. sky_blockage_ratio should be 0.0.
I fixed Nan output bug here 44f9324

image

Copy link
Contributor

@kyoichi-sugahara kyoichi-sugahara left a comment

Choose a reason for hiding this comment

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

@badai-nguyen
Thank you so much for the fix 😍
LGTM and merging this PR is ok in my opinion 👍

@badai-nguyen badai-nguyen added the run:build-and-test-differential Mark to enable build-and-test-differential workflow. (used-by-ci) label Feb 27, 2024
@badai-nguyen badai-nguyen merged commit f2fcbea into autowarefoundation:main Feb 27, 2024
28 of 32 checks passed
StepTurtle pushed a commit to StepTurtle/autoware.universe that referenced this pull request Feb 28, 2024
…5932)

* chore(blockage_diag): refactor

Signed-off-by: badai-nguyen <[email protected]>

* chore: add error logger

Signed-off-by: badai-nguyen <[email protected]>

* chore: refactor

Signed-off-by: badai-nguyen <[email protected]>

* docs: update readme

Signed-off-by: badai-nguyen <[email protected]>

* chore: refactor

Signed-off-by: badai-nguyen <[email protected]>

* fix: break interval angle as continuous one

Signed-off-by: badai-nguyen <[email protected]>

* chore: update param file

Signed-off-by: badai-nguyen <[email protected]>

* docs: update readme

Signed-off-by: badai-nguyen <[email protected]>

* chore: typo

Signed-off-by: badai-nguyen <[email protected]>

* fix: multi-blockage-diag in 1 container died bug fix

Signed-off-by: badai-nguyen <[email protected]>

* chore: update param_file

Signed-off-by: badai-nguyen <[email protected]>

* fix: Nan sky_blockage_ratio

Signed-off-by: badai-nguyen <[email protected]>

---------

Signed-off-by: badai-nguyen <[email protected]>
HansRobo pushed a commit that referenced this pull request Mar 12, 2024
* chore(blockage_diag): refactor

Signed-off-by: badai-nguyen <[email protected]>

* chore: add error logger

Signed-off-by: badai-nguyen <[email protected]>

* chore: refactor

Signed-off-by: badai-nguyen <[email protected]>

* docs: update readme

Signed-off-by: badai-nguyen <[email protected]>

* chore: refactor

Signed-off-by: badai-nguyen <[email protected]>

* fix: break interval angle as continuous one

Signed-off-by: badai-nguyen <[email protected]>

* chore: update param file

Signed-off-by: badai-nguyen <[email protected]>

* docs: update readme

Signed-off-by: badai-nguyen <[email protected]>

* chore: typo

Signed-off-by: badai-nguyen <[email protected]>

* fix: multi-blockage-diag in 1 container died bug fix

Signed-off-by: badai-nguyen <[email protected]>

* chore: update param_file

Signed-off-by: badai-nguyen <[email protected]>

* fix: Nan sky_blockage_ratio

Signed-off-by: badai-nguyen <[email protected]>

---------

Signed-off-by: badai-nguyen <[email protected]>
Signed-off-by: Kotaro Yoshimoto <[email protected]>
TomohitoAndo pushed a commit to tier4/autoware.universe that referenced this pull request Mar 19, 2024
…5932)

* chore(blockage_diag): refactor

Signed-off-by: badai-nguyen <[email protected]>

* chore: add error logger

Signed-off-by: badai-nguyen <[email protected]>

* chore: refactor

Signed-off-by: badai-nguyen <[email protected]>

* docs: update readme

Signed-off-by: badai-nguyen <[email protected]>

* chore: refactor

Signed-off-by: badai-nguyen <[email protected]>

* fix: break interval angle as continuous one

Signed-off-by: badai-nguyen <[email protected]>

* chore: update param file

Signed-off-by: badai-nguyen <[email protected]>

* docs: update readme

Signed-off-by: badai-nguyen <[email protected]>

* chore: typo

Signed-off-by: badai-nguyen <[email protected]>

* fix: multi-blockage-diag in 1 container died bug fix

Signed-off-by: badai-nguyen <[email protected]>

* chore: update param_file

Signed-off-by: badai-nguyen <[email protected]>

* fix: Nan sky_blockage_ratio

Signed-off-by: badai-nguyen <[email protected]>

---------

Signed-off-by: badai-nguyen <[email protected]>
badai-nguyen added a commit to badai-nguyen/autoware.universe that referenced this pull request Mar 22, 2024
…5932)

* chore(blockage_diag): refactor

Signed-off-by: badai-nguyen <[email protected]>

* chore: add error logger

Signed-off-by: badai-nguyen <[email protected]>

* chore: refactor

Signed-off-by: badai-nguyen <[email protected]>

* docs: update readme

Signed-off-by: badai-nguyen <[email protected]>

* chore: refactor

Signed-off-by: badai-nguyen <[email protected]>

* fix: break interval angle as continuous one

Signed-off-by: badai-nguyen <[email protected]>

* chore: update param file

Signed-off-by: badai-nguyen <[email protected]>

* docs: update readme

Signed-off-by: badai-nguyen <[email protected]>

* chore: typo

Signed-off-by: badai-nguyen <[email protected]>

* fix: multi-blockage-diag in 1 container died bug fix

Signed-off-by: badai-nguyen <[email protected]>

* chore: update param_file

Signed-off-by: badai-nguyen <[email protected]>

* fix: Nan sky_blockage_ratio

Signed-off-by: badai-nguyen <[email protected]>

---------

Signed-off-by: badai-nguyen <[email protected]>
badai-nguyen added a commit to tier4/autoware.universe that referenced this pull request Mar 29, 2024
…5932)

* chore(blockage_diag): refactor

Signed-off-by: badai-nguyen <[email protected]>

* chore: add error logger

Signed-off-by: badai-nguyen <[email protected]>

* chore: refactor

Signed-off-by: badai-nguyen <[email protected]>

* docs: update readme

Signed-off-by: badai-nguyen <[email protected]>

* chore: refactor

Signed-off-by: badai-nguyen <[email protected]>

* fix: break interval angle as continuous one

Signed-off-by: badai-nguyen <[email protected]>

* chore: update param file

Signed-off-by: badai-nguyen <[email protected]>

* docs: update readme

Signed-off-by: badai-nguyen <[email protected]>

* chore: typo

Signed-off-by: badai-nguyen <[email protected]>

* fix: multi-blockage-diag in 1 container died bug fix

Signed-off-by: badai-nguyen <[email protected]>

* chore: update param_file

Signed-off-by: badai-nguyen <[email protected]>

* fix: Nan sky_blockage_ratio

Signed-off-by: badai-nguyen <[email protected]>

---------

Signed-off-by: badai-nguyen <[email protected]>
karishma1911 pushed a commit to Interplai/autoware.universe that referenced this pull request Jun 3, 2024
…5932)

* chore(blockage_diag): refactor

Signed-off-by: badai-nguyen <[email protected]>

* chore: add error logger

Signed-off-by: badai-nguyen <[email protected]>

* chore: refactor

Signed-off-by: badai-nguyen <[email protected]>

* docs: update readme

Signed-off-by: badai-nguyen <[email protected]>

* chore: refactor

Signed-off-by: badai-nguyen <[email protected]>

* fix: break interval angle as continuous one

Signed-off-by: badai-nguyen <[email protected]>

* chore: update param file

Signed-off-by: badai-nguyen <[email protected]>

* docs: update readme

Signed-off-by: badai-nguyen <[email protected]>

* chore: typo

Signed-off-by: badai-nguyen <[email protected]>

* fix: multi-blockage-diag in 1 container died bug fix

Signed-off-by: badai-nguyen <[email protected]>

* chore: update param_file

Signed-off-by: badai-nguyen <[email protected]>

* fix: Nan sky_blockage_ratio

Signed-off-by: badai-nguyen <[email protected]>

---------

Signed-off-by: badai-nguyen <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component:sensing Data acquisition from sensors, drivers, preprocessing. (auto-assigned) run:build-and-test-differential Mark to enable build-and-test-differential workflow. (used-by-ci) type:documentation Creating or refining documentation. (auto-assigned)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants