-
Notifications
You must be signed in to change notification settings - Fork 650
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(blockage_diag): time series blockage diag #1004
feat(blockage_diag): time series blockage diag #1004
Conversation
Codecov Report
@@ Coverage Diff @@
## main #1004 +/- ##
==========================================
- Coverage 10.28% 10.28% -0.01%
==========================================
Files 1204 1204
Lines 86808 86868 +60
Branches 20046 20046
==========================================
Hits 8931 8931
- Misses 68718 68778 +60
Partials 9159 9159
*This pull request uses carry forward flags. Click here to find out more.
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
b6946df
to
acba6ce
Compare
04819de
to
3d24057
Compare
sensing/pointcloud_preprocessor/src/blockage_diag/blockage_diag_nodelet.cpp
Outdated
Show resolved
Hide resolved
sensing/pointcloud_preprocessor/src/blockage_diag/blockage_diag_nodelet.cpp
Show resolved
Hide resolved
b600400
to
52c78bb
Compare
Signed-off-by: swift_file <sky.y.m.318@gmail.com>
Signed-off-by: YusukeMizoguchi <sky.y.m.318@gmail.com> Signed-off-by: swift_file <sky.y.m.318@gmail.com>
Signed-off-by: YusukeMizoguchi <sky.y.m.318@gmail.com> Signed-off-by: swift_file <sky.y.m.318@gmail.com>
Signed-off-by: YusukeMizoguchi <sky.y.m.318@gmail.com> Signed-off-by: swift_file <sky.y.m.318@gmail.com>
Signed-off-by: YusukeMizoguchi <sky.y.m.318@gmail.com> Signed-off-by: swift_file <sky.y.m.318@gmail.com>
Signed-off-by: YusukeMizoguchi <sky.y.m.318@gmail.com> Signed-off-by: swift_file <sky.y.m.318@gmail.com>
Signed-off-by: YusukeMizoguchi <sky.y.m.318@gmail.com> Signed-off-by: swift_file <sky.y.m.318@gmail.com>
Signed-off-by: swift_file <sky.y.m.318@gmail.com>
Signed-off-by: swift_file <sky.y.m.318@gmail.com>
bca43df
to
870e577
Compare
Please give me some more days 🙏 Sorry for my late response |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. If @badai-nguyen approves, please merge this PR.
Head branch was pushed to by a user without write access
9736caf
to
83afdd1
Compare
* Add basic pixel value sum function Signed-off-by: swift_file <sky.y.m.318@gmail.com> * update change sum topic(depth_map->mask_image) Signed-off-by: YusukeMizoguchi <sky.y.m.318@gmail.com> Signed-off-by: swift_file <sky.y.m.318@gmail.com> * update to use circular buffer Signed-off-by: YusukeMizoguchi <sky.y.m.318@gmail.com> Signed-off-by: swift_file <sky.y.m.318@gmail.com> * refactor : rename topic_name and publisher_name Signed-off-by: YusukeMizoguchi <sky.y.m.318@gmail.com> Signed-off-by: swift_file <sky.y.m.318@gmail.com> * fix : properly colorized Signed-off-by: YusukeMizoguchi <sky.y.m.318@gmail.com> Signed-off-by: swift_file <sky.y.m.318@gmail.com> * fix normalize process Signed-off-by: YusukeMizoguchi <sky.y.m.318@gmail.com> Signed-off-by: swift_file <sky.y.m.318@gmail.com> * fix bug Signed-off-by: YusukeMizoguchi <sky.y.m.318@gmail.com> Signed-off-by: swift_file <sky.y.m.318@gmail.com> * fix typo Signed-off-by: YusukeMizoguchi <sky.y.m.318@gmail.com> Signed-off-by: swift_file <sky.y.m.318@gmail.com> * update set initial parameter Signed-off-by: YusukeMizoguchi <sky.y.m.318@gmail.com> Signed-off-by: swift_file <sky.y.m.318@gmail.com> * update: change the number of frames to variable Signed-off-by: YusukeMizoguchi <sky.y.m.318@gmail.com> Signed-off-by: swift_file <sky.y.m.318@gmail.com> * feat :Periodically add frames to the buffer ,style Signed-off-by: YusukeMizoguchi <sky.y.m.318@gmail.com> Signed-off-by: swift_file <sky.y.m.318@gmail.com> * chore rename variable Signed-off-by: YusukeMizoguchi <sky.y.m.318@gmail.com> Signed-off-by: swift_file <sky.y.m.318@gmail.com> * add Diagnostics item Signed-off-by: YusukeMizoguchi <sky.y.m.318@gmail.com> Signed-off-by: swift_file <sky.y.m.318@gmail.com> * add debug statement of rosparam Signed-off-by: YusukeMizoguchi <sky.y.m.318@gmail.com> Signed-off-by: swift_file <sky.y.m.318@gmail.com> * update : time series processing integrated to blockage diag Signed-off-by: YusukeMizoguchi <sky.y.m.318@gmail.com> Signed-off-by: swift_file <sky.y.m.318@gmail.com> * chore Signed-off-by: YusukeMizoguchi <sky.y.m.318@gmail.com> Signed-off-by: swift_file <sky.y.m.318@gmail.com> * refactor: change variable name Signed-off-by: YusukeMizoguchi <sky.y.m.318@gmail.com> Signed-off-by: swift_file <sky.y.m.318@gmail.com> * delete non used publisher Signed-off-by: YusukeMizoguchi <sky.y.m.318@gmail.com> Signed-off-by: swift_file <sky.y.m.318@gmail.com> * docs: add description about new parameter Signed-off-by: YusukeMizoguchi <sky.y.m.318@gmail.com> Signed-off-by: swift_file <sky.y.m.318@gmail.com> * update flowchart Signed-off-by: YusukeMizoguchi <sky.y.m.318@gmail.com> Signed-off-by: swift_file <sky.y.m.318@gmail.com> * fix: delete unnecessary item of Diagnotics Signed-off-by: swift_file <sky.y.m.318@gmail.com> * update:calc blockage_ratio by multi frame blockage mask Signed-off-by: swift_file <sky.y.m.318@gmail.com> * ci(pre-commit): autofix Signed-off-by: swift_file <sky.y.m.318@gmail.com> Signed-off-by: YusukeMizoguchi <sky.y.m.318@gmail.com> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
* Add basic pixel value sum function Signed-off-by: swift_file <sky.y.m.318@gmail.com> * update change sum topic(depth_map->mask_image) Signed-off-by: YusukeMizoguchi <sky.y.m.318@gmail.com> Signed-off-by: swift_file <sky.y.m.318@gmail.com> * update to use circular buffer Signed-off-by: YusukeMizoguchi <sky.y.m.318@gmail.com> Signed-off-by: swift_file <sky.y.m.318@gmail.com> * refactor : rename topic_name and publisher_name Signed-off-by: YusukeMizoguchi <sky.y.m.318@gmail.com> Signed-off-by: swift_file <sky.y.m.318@gmail.com> * fix : properly colorized Signed-off-by: YusukeMizoguchi <sky.y.m.318@gmail.com> Signed-off-by: swift_file <sky.y.m.318@gmail.com> * fix normalize process Signed-off-by: YusukeMizoguchi <sky.y.m.318@gmail.com> Signed-off-by: swift_file <sky.y.m.318@gmail.com> * fix bug Signed-off-by: YusukeMizoguchi <sky.y.m.318@gmail.com> Signed-off-by: swift_file <sky.y.m.318@gmail.com> * fix typo Signed-off-by: YusukeMizoguchi <sky.y.m.318@gmail.com> Signed-off-by: swift_file <sky.y.m.318@gmail.com> * update set initial parameter Signed-off-by: YusukeMizoguchi <sky.y.m.318@gmail.com> Signed-off-by: swift_file <sky.y.m.318@gmail.com> * update: change the number of frames to variable Signed-off-by: YusukeMizoguchi <sky.y.m.318@gmail.com> Signed-off-by: swift_file <sky.y.m.318@gmail.com> * feat :Periodically add frames to the buffer ,style Signed-off-by: YusukeMizoguchi <sky.y.m.318@gmail.com> Signed-off-by: swift_file <sky.y.m.318@gmail.com> * chore rename variable Signed-off-by: YusukeMizoguchi <sky.y.m.318@gmail.com> Signed-off-by: swift_file <sky.y.m.318@gmail.com> * add Diagnostics item Signed-off-by: YusukeMizoguchi <sky.y.m.318@gmail.com> Signed-off-by: swift_file <sky.y.m.318@gmail.com> * add debug statement of rosparam Signed-off-by: YusukeMizoguchi <sky.y.m.318@gmail.com> Signed-off-by: swift_file <sky.y.m.318@gmail.com> * update : time series processing integrated to blockage diag Signed-off-by: YusukeMizoguchi <sky.y.m.318@gmail.com> Signed-off-by: swift_file <sky.y.m.318@gmail.com> * chore Signed-off-by: YusukeMizoguchi <sky.y.m.318@gmail.com> Signed-off-by: swift_file <sky.y.m.318@gmail.com> * refactor: change variable name Signed-off-by: YusukeMizoguchi <sky.y.m.318@gmail.com> Signed-off-by: swift_file <sky.y.m.318@gmail.com> * delete non used publisher Signed-off-by: YusukeMizoguchi <sky.y.m.318@gmail.com> Signed-off-by: swift_file <sky.y.m.318@gmail.com> * docs: add description about new parameter Signed-off-by: YusukeMizoguchi <sky.y.m.318@gmail.com> Signed-off-by: swift_file <sky.y.m.318@gmail.com> * update flowchart Signed-off-by: YusukeMizoguchi <sky.y.m.318@gmail.com> Signed-off-by: swift_file <sky.y.m.318@gmail.com> * fix: delete unnecessary item of Diagnotics Signed-off-by: swift_file <sky.y.m.318@gmail.com> * update:calc blockage_ratio by multi frame blockage mask Signed-off-by: swift_file <sky.y.m.318@gmail.com> * ci(pre-commit): autofix Signed-off-by: swift_file <sky.y.m.318@gmail.com> Signed-off-by: YusukeMizoguchi <sky.y.m.318@gmail.com> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
* Add basic pixel value sum function Signed-off-by: swift_file <sky.y.m.318@gmail.com> * update change sum topic(depth_map->mask_image) Signed-off-by: YusukeMizoguchi <sky.y.m.318@gmail.com> Signed-off-by: swift_file <sky.y.m.318@gmail.com> * update to use circular buffer Signed-off-by: YusukeMizoguchi <sky.y.m.318@gmail.com> Signed-off-by: swift_file <sky.y.m.318@gmail.com> * refactor : rename topic_name and publisher_name Signed-off-by: YusukeMizoguchi <sky.y.m.318@gmail.com> Signed-off-by: swift_file <sky.y.m.318@gmail.com> * fix : properly colorized Signed-off-by: YusukeMizoguchi <sky.y.m.318@gmail.com> Signed-off-by: swift_file <sky.y.m.318@gmail.com> * fix normalize process Signed-off-by: YusukeMizoguchi <sky.y.m.318@gmail.com> Signed-off-by: swift_file <sky.y.m.318@gmail.com> * fix bug Signed-off-by: YusukeMizoguchi <sky.y.m.318@gmail.com> Signed-off-by: swift_file <sky.y.m.318@gmail.com> * fix typo Signed-off-by: YusukeMizoguchi <sky.y.m.318@gmail.com> Signed-off-by: swift_file <sky.y.m.318@gmail.com> * update set initial parameter Signed-off-by: YusukeMizoguchi <sky.y.m.318@gmail.com> Signed-off-by: swift_file <sky.y.m.318@gmail.com> * update: change the number of frames to variable Signed-off-by: YusukeMizoguchi <sky.y.m.318@gmail.com> Signed-off-by: swift_file <sky.y.m.318@gmail.com> * feat :Periodically add frames to the buffer ,style Signed-off-by: YusukeMizoguchi <sky.y.m.318@gmail.com> Signed-off-by: swift_file <sky.y.m.318@gmail.com> * chore rename variable Signed-off-by: YusukeMizoguchi <sky.y.m.318@gmail.com> Signed-off-by: swift_file <sky.y.m.318@gmail.com> * add Diagnostics item Signed-off-by: YusukeMizoguchi <sky.y.m.318@gmail.com> Signed-off-by: swift_file <sky.y.m.318@gmail.com> * add debug statement of rosparam Signed-off-by: YusukeMizoguchi <sky.y.m.318@gmail.com> Signed-off-by: swift_file <sky.y.m.318@gmail.com> * update : time series processing integrated to blockage diag Signed-off-by: YusukeMizoguchi <sky.y.m.318@gmail.com> Signed-off-by: swift_file <sky.y.m.318@gmail.com> * chore Signed-off-by: YusukeMizoguchi <sky.y.m.318@gmail.com> Signed-off-by: swift_file <sky.y.m.318@gmail.com> * refactor: change variable name Signed-off-by: YusukeMizoguchi <sky.y.m.318@gmail.com> Signed-off-by: swift_file <sky.y.m.318@gmail.com> * delete non used publisher Signed-off-by: YusukeMizoguchi <sky.y.m.318@gmail.com> Signed-off-by: swift_file <sky.y.m.318@gmail.com> * docs: add description about new parameter Signed-off-by: YusukeMizoguchi <sky.y.m.318@gmail.com> Signed-off-by: swift_file <sky.y.m.318@gmail.com> * update flowchart Signed-off-by: YusukeMizoguchi <sky.y.m.318@gmail.com> Signed-off-by: swift_file <sky.y.m.318@gmail.com> * fix: delete unnecessary item of Diagnotics Signed-off-by: swift_file <sky.y.m.318@gmail.com> * update:calc blockage_ratio by multi frame blockage mask Signed-off-by: swift_file <sky.y.m.318@gmail.com> * ci(pre-commit): autofix Signed-off-by: swift_file <sky.y.m.318@gmail.com> Signed-off-by: YusukeMizoguchi <sky.y.m.318@gmail.com> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
* Add basic pixel value sum function Signed-off-by: swift_file <sky.y.m.318@gmail.com> * update change sum topic(depth_map->mask_image) Signed-off-by: YusukeMizoguchi <sky.y.m.318@gmail.com> Signed-off-by: swift_file <sky.y.m.318@gmail.com> * update to use circular buffer Signed-off-by: YusukeMizoguchi <sky.y.m.318@gmail.com> Signed-off-by: swift_file <sky.y.m.318@gmail.com> * refactor : rename topic_name and publisher_name Signed-off-by: YusukeMizoguchi <sky.y.m.318@gmail.com> Signed-off-by: swift_file <sky.y.m.318@gmail.com> * fix : properly colorized Signed-off-by: YusukeMizoguchi <sky.y.m.318@gmail.com> Signed-off-by: swift_file <sky.y.m.318@gmail.com> * fix normalize process Signed-off-by: YusukeMizoguchi <sky.y.m.318@gmail.com> Signed-off-by: swift_file <sky.y.m.318@gmail.com> * fix bug Signed-off-by: YusukeMizoguchi <sky.y.m.318@gmail.com> Signed-off-by: swift_file <sky.y.m.318@gmail.com> * fix typo Signed-off-by: YusukeMizoguchi <sky.y.m.318@gmail.com> Signed-off-by: swift_file <sky.y.m.318@gmail.com> * update set initial parameter Signed-off-by: YusukeMizoguchi <sky.y.m.318@gmail.com> Signed-off-by: swift_file <sky.y.m.318@gmail.com> * update: change the number of frames to variable Signed-off-by: YusukeMizoguchi <sky.y.m.318@gmail.com> Signed-off-by: swift_file <sky.y.m.318@gmail.com> * feat :Periodically add frames to the buffer ,style Signed-off-by: YusukeMizoguchi <sky.y.m.318@gmail.com> Signed-off-by: swift_file <sky.y.m.318@gmail.com> * chore rename variable Signed-off-by: YusukeMizoguchi <sky.y.m.318@gmail.com> Signed-off-by: swift_file <sky.y.m.318@gmail.com> * add Diagnostics item Signed-off-by: YusukeMizoguchi <sky.y.m.318@gmail.com> Signed-off-by: swift_file <sky.y.m.318@gmail.com> * add debug statement of rosparam Signed-off-by: YusukeMizoguchi <sky.y.m.318@gmail.com> Signed-off-by: swift_file <sky.y.m.318@gmail.com> * update : time series processing integrated to blockage diag Signed-off-by: YusukeMizoguchi <sky.y.m.318@gmail.com> Signed-off-by: swift_file <sky.y.m.318@gmail.com> * chore Signed-off-by: YusukeMizoguchi <sky.y.m.318@gmail.com> Signed-off-by: swift_file <sky.y.m.318@gmail.com> * refactor: change variable name Signed-off-by: YusukeMizoguchi <sky.y.m.318@gmail.com> Signed-off-by: swift_file <sky.y.m.318@gmail.com> * delete non used publisher Signed-off-by: YusukeMizoguchi <sky.y.m.318@gmail.com> Signed-off-by: swift_file <sky.y.m.318@gmail.com> * docs: add description about new parameter Signed-off-by: YusukeMizoguchi <sky.y.m.318@gmail.com> Signed-off-by: swift_file <sky.y.m.318@gmail.com> * update flowchart Signed-off-by: YusukeMizoguchi <sky.y.m.318@gmail.com> Signed-off-by: swift_file <sky.y.m.318@gmail.com> * fix: delete unnecessary item of Diagnotics Signed-off-by: swift_file <sky.y.m.318@gmail.com> * update:calc blockage_ratio by multi frame blockage mask Signed-off-by: swift_file <sky.y.m.318@gmail.com> * ci(pre-commit): autofix Signed-off-by: swift_file <sky.y.m.318@gmail.com> Signed-off-by: YusukeMizoguchi <sky.y.m.318@gmail.com> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
* Add basic pixel value sum function Signed-off-by: swift_file <sky.y.m.318@gmail.com> * update change sum topic(depth_map->mask_image) Signed-off-by: YusukeMizoguchi <sky.y.m.318@gmail.com> Signed-off-by: swift_file <sky.y.m.318@gmail.com> * update to use circular buffer Signed-off-by: YusukeMizoguchi <sky.y.m.318@gmail.com> Signed-off-by: swift_file <sky.y.m.318@gmail.com> * refactor : rename topic_name and publisher_name Signed-off-by: YusukeMizoguchi <sky.y.m.318@gmail.com> Signed-off-by: swift_file <sky.y.m.318@gmail.com> * fix : properly colorized Signed-off-by: YusukeMizoguchi <sky.y.m.318@gmail.com> Signed-off-by: swift_file <sky.y.m.318@gmail.com> * fix normalize process Signed-off-by: YusukeMizoguchi <sky.y.m.318@gmail.com> Signed-off-by: swift_file <sky.y.m.318@gmail.com> * fix bug Signed-off-by: YusukeMizoguchi <sky.y.m.318@gmail.com> Signed-off-by: swift_file <sky.y.m.318@gmail.com> * fix typo Signed-off-by: YusukeMizoguchi <sky.y.m.318@gmail.com> Signed-off-by: swift_file <sky.y.m.318@gmail.com> * update set initial parameter Signed-off-by: YusukeMizoguchi <sky.y.m.318@gmail.com> Signed-off-by: swift_file <sky.y.m.318@gmail.com> * update: change the number of frames to variable Signed-off-by: YusukeMizoguchi <sky.y.m.318@gmail.com> Signed-off-by: swift_file <sky.y.m.318@gmail.com> * feat :Periodically add frames to the buffer ,style Signed-off-by: YusukeMizoguchi <sky.y.m.318@gmail.com> Signed-off-by: swift_file <sky.y.m.318@gmail.com> * chore rename variable Signed-off-by: YusukeMizoguchi <sky.y.m.318@gmail.com> Signed-off-by: swift_file <sky.y.m.318@gmail.com> * add Diagnostics item Signed-off-by: YusukeMizoguchi <sky.y.m.318@gmail.com> Signed-off-by: swift_file <sky.y.m.318@gmail.com> * add debug statement of rosparam Signed-off-by: YusukeMizoguchi <sky.y.m.318@gmail.com> Signed-off-by: swift_file <sky.y.m.318@gmail.com> * update : time series processing integrated to blockage diag Signed-off-by: YusukeMizoguchi <sky.y.m.318@gmail.com> Signed-off-by: swift_file <sky.y.m.318@gmail.com> * chore Signed-off-by: YusukeMizoguchi <sky.y.m.318@gmail.com> Signed-off-by: swift_file <sky.y.m.318@gmail.com> * refactor: change variable name Signed-off-by: YusukeMizoguchi <sky.y.m.318@gmail.com> Signed-off-by: swift_file <sky.y.m.318@gmail.com> * delete non used publisher Signed-off-by: YusukeMizoguchi <sky.y.m.318@gmail.com> Signed-off-by: swift_file <sky.y.m.318@gmail.com> * docs: add description about new parameter Signed-off-by: YusukeMizoguchi <sky.y.m.318@gmail.com> Signed-off-by: swift_file <sky.y.m.318@gmail.com> * update flowchart Signed-off-by: YusukeMizoguchi <sky.y.m.318@gmail.com> Signed-off-by: swift_file <sky.y.m.318@gmail.com> * fix: delete unnecessary item of Diagnotics Signed-off-by: swift_file <sky.y.m.318@gmail.com> * update:calc blockage_ratio by multi frame blockage mask Signed-off-by: swift_file <sky.y.m.318@gmail.com> * ci(pre-commit): autofix Signed-off-by: swift_file <sky.y.m.318@gmail.com> Signed-off-by: YusukeMizoguchi <sky.y.m.318@gmail.com> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Description
This change in blockage-diag is to reduce false positives.
In the previous implementation, areas that did not return Lidar reflections, such as the sky, were also considered as blockages (false positives). because they were considered as blockages where there were no reflections in a single frame.
However, the new implementation detects blockages from multi-frame depth maps, so even areas like the sky are less likely to be considered blockage.
This is because even if a single frame points to the sky and has no reflections, another frame will have reflections from a building or traffic sign.
Related links
Pull Request #63 · tier4/aip_launcher - feat: add parameter about blockage_diag by swiftfile
#1002 (this PRis invalid. So,I close this PR)
Tests performed
The top row is the depth map, the middle row is single frame blockage detection (old implementation), and the bottom row is multiple frame blockage detection (new implementation).
Take the right column as an example.
When the lidar is pointing to the sky all the time and no reflection is obtained, both single-frame and multiple-frame blockage detection are judged to be blockage (red pixel). However, in multi-frame blockage detection, if there is a reflection from a building or other object in another frame, it will not be detected as a blockage (blue pixel).
In addition, this implementation will not recognize a blockage as not blockage, even when there is actually a blockage, such as in the left column.
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.
Post-review checklist for the PR author
The PR author must check the checkboxes below before merging.
After all checkboxes are checked, anyone who has write access can merge the PR.