-
Notifications
You must be signed in to change notification settings - Fork 679
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(image_projection_based_fusion): add objects filter by rois #4546
Conversation
WalkthroughThe changes include modifications to the Changes
|
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.
Files selected (4)
- perception/image_projection_based_fusion/include/image_projection_based_fusion/roi_detected_object_fusion/node.hpp (3)
- perception/image_projection_based_fusion/launch/roi_detected_object_fusion.launch.xml (2)
- perception/image_projection_based_fusion/package.xml (1)
- perception/image_projection_based_fusion/src/roi_detected_object_fusion/node.cpp (10)
Files ignored due to filter (1)
- perception/image_projection_based_fusion/config/roi_detected_object_fusion.param.yaml
Files not summarized due to errors (1)
- perception/image_projection_based_fusion/src/roi_detected_object_fusion/node.cpp (diff tokens exceeds limit)
Files skipped from review due to trivial changes (1)
- perception/image_projection_based_fusion/package.xml
Review comments generated (10)
- Review: 9
- LGTM: 1
Tips
Chat with
CodeRabbit Bot (@coderabbitai
)
- Reply on review comments left by this bot to ask follow-up questions. A review comment is a comment on a diff or a file.
- Invite the bot into a review comment chain by tagging
@coderabbitai
in a reply.
Code suggestions
- The bot may make code suggestions, but please review them carefully before committing since the line number ranges may be misaligned.
- You can edit the comment made by the bot and manually tweak the suggestion if it is slightly off.
Pausing incremental reviews
- Add
@coderabbitai: ignore
anywhere in the PR description to pause further reviews from the bot.
perception/image_projection_based_fusion/launch/roi_detected_object_fusion.launch.xml
Show resolved
Hide resolved
...ction_based_fusion/include/image_projection_based_fusion/roi_detected_object_fusion/node.hpp
Show resolved
Hide resolved
...ction_based_fusion/include/image_projection_based_fusion/roi_detected_object_fusion/node.hpp
Outdated
Show resolved
Hide resolved
...ction_based_fusion/include/image_projection_based_fusion/roi_detected_object_fusion/node.hpp
Outdated
Show resolved
Hide resolved
...ction_based_fusion/include/image_projection_based_fusion/roi_detected_object_fusion/node.hpp
Outdated
Show resolved
Hide resolved
...ction_based_fusion/include/image_projection_based_fusion/roi_detected_object_fusion/node.hpp
Outdated
Show resolved
Hide resolved
perception/image_projection_based_fusion/src/roi_detected_object_fusion/node.cpp
Show resolved
Hide resolved
perception/image_projection_based_fusion/src/roi_detected_object_fusion/node.cpp
Outdated
Show resolved
Hide resolved
perception/image_projection_based_fusion/src/roi_detected_object_fusion/node.cpp
Outdated
Show resolved
Hide resolved
I want to merge PR ASAP, so it's opened now. But I need to tune params. |
b7ceaae
to
db6fcb6
Compare
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
perception/image_projection_based_fusion/src/roi_detected_object_fusion/node.cpp
Outdated
Show resolved
Hide resolved
Signed-off-by: yukke42 <yukke42@users.noreply.github.com>
Signed-off-by: yukke42 <yukke42@users.noreply.github.com>
Signed-off-by: yukke42 <yukke42@users.noreply.github.com>
Signed-off-by: yukke42 <yusuke.muramatsu@tier4.jp>
Signed-off-by: yukke42 <yusuke.muramatsu@tier4.jp>
Signed-off-by: yukke42 <yusuke.muramatsu@tier4.jp>
Signed-off-by: yukke42 <yusuke.muramatsu@tier4.jp>
2d8cb9d
to
dbb6058
Compare
Signed-off-by: yukke42 <yusuke.muramatsu@tier4.jp>
c2eef28
to
e27c1a8
Compare
Codecov ReportPatch coverage has no change and project coverage change:
Additional details and impacted files@@ Coverage Diff @@
## main #4546 +/- ##
==========================================
- Coverage 14.81% 14.76% -0.05%
==========================================
Files 1527 1532 +5
Lines 105671 105973 +302
Branches 32100 32100
==========================================
- Hits 15650 15649 -1
- Misses 72943 73245 +302
- Partials 17078 17079 +1
*This pull request uses carry forward flags. Click here to find out more.
☔ View full report in Codecov by Sentry. |
Signed-off-by: yukke42 <yusuke.muramatsu@tier4.jp>
Signed-off-by: yukke42 <yusuke.muramatsu@tier4.jp>
Signed-off-by: yukke42 <yusuke.muramatsu@tier4.jp>
I have added thrust_distance and updated description. |
...ction_based_fusion/include/image_projection_based_fusion/roi_detected_object_fusion/node.hpp
Outdated
Show resolved
Hide resolved
Signed-off-by: yukke42 <yusuke.muramatsu@tier4.jp>
perception/image_projection_based_fusion/config/roi_detected_object_fusion.param.yaml
Show resolved
Hide resolved
Signed-off-by: yukke42 <yusuke.muramatsu@tier4.jp>
perception/image_projection_based_fusion/config/roi_detected_object_fusion.param.yaml
Outdated
Show resolved
Hide resolved
…bject_fusion.param.yaml Co-authored-by: Shunsuke Miura <37187849+miursh@users.noreply.github.com>
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
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
…warefoundation#4546) * tmp Signed-off-by: yukke42 <yukke42@users.noreply.github.com> style(pre-commit): autofix update Signed-off-by: yukke42 <yukke42@users.noreply.github.com> style(pre-commit): autofix * fix: fix association bug Signed-off-by: yukke42 <yukke42@users.noreply.github.com> * feat: add prob_threshold for each class Signed-off-by: yukke42 <yukke42@users.noreply.github.com> * feat: use class label association between roi and object Signed-off-by: yukke42 <yukke42@users.noreply.github.com> * feat: add to tier4_perception_launch Signed-off-by: yukke42 <yusuke.muramatsu@tier4.jp> * chore: disable debug_mode Signed-off-by: yukke42 <yusuke.muramatsu@tier4.jp> * docs: update params Signed-off-by: yukke42 <yusuke.muramatsu@tier4.jp> * fix: apply suggestion Signed-off-by: yukke42 <yusuke.muramatsu@tier4.jp> * chore: update prob_thresholds of bicycle Signed-off-by: yukke42 <yusuke.muramatsu@tier4.jp> * feat: add thresut_distance for each class Signed-off-by: yukke42 <yusuke.muramatsu@tier4.jp> * docs: add thrust_distances Signed-off-by: yukke42 <yusuke.muramatsu@tier4.jp> * style(pre-commit): autofix * chore: remove unnecessary variable Signed-off-by: yukke42 <yusuke.muramatsu@tier4.jp> * chore: rename to trust Signed-off-by: yukke42 <yusuke.muramatsu@tier4.jp> * style(pre-commit): autofix * chore: add param Signed-off-by: yukke42 <yusuke.muramatsu@tier4.jp> * Update perception/image_projection_based_fusion/config/roi_detected_object_fusion.param.yaml Co-authored-by: Shunsuke Miura <37187849+miursh@users.noreply.github.com> --------- Signed-off-by: yukke42 <yukke42@users.noreply.github.com> Signed-off-by: yukke42 <yusuke.muramatsu@tier4.jp> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Shunsuke Miura <37187849+miursh@users.noreply.github.com>
…warefoundation#4546) * tmp Signed-off-by: yukke42 <yukke42@users.noreply.github.com> style(pre-commit): autofix update Signed-off-by: yukke42 <yukke42@users.noreply.github.com> style(pre-commit): autofix * fix: fix association bug Signed-off-by: yukke42 <yukke42@users.noreply.github.com> * feat: add prob_threshold for each class Signed-off-by: yukke42 <yukke42@users.noreply.github.com> * feat: use class label association between roi and object Signed-off-by: yukke42 <yukke42@users.noreply.github.com> * feat: add to tier4_perception_launch Signed-off-by: yukke42 <yusuke.muramatsu@tier4.jp> * chore: disable debug_mode Signed-off-by: yukke42 <yusuke.muramatsu@tier4.jp> * docs: update params Signed-off-by: yukke42 <yusuke.muramatsu@tier4.jp> * fix: apply suggestion Signed-off-by: yukke42 <yusuke.muramatsu@tier4.jp> * chore: update prob_thresholds of bicycle Signed-off-by: yukke42 <yusuke.muramatsu@tier4.jp> * feat: add thresut_distance for each class Signed-off-by: yukke42 <yusuke.muramatsu@tier4.jp> * docs: add thrust_distances Signed-off-by: yukke42 <yusuke.muramatsu@tier4.jp> * style(pre-commit): autofix * chore: remove unnecessary variable Signed-off-by: yukke42 <yusuke.muramatsu@tier4.jp> * chore: rename to trust Signed-off-by: yukke42 <yusuke.muramatsu@tier4.jp> * style(pre-commit): autofix * chore: add param Signed-off-by: yukke42 <yusuke.muramatsu@tier4.jp> * Update perception/image_projection_based_fusion/config/roi_detected_object_fusion.param.yaml Co-authored-by: Shunsuke Miura <37187849+miursh@users.noreply.github.com> --------- Signed-off-by: yukke42 <yukke42@users.noreply.github.com> Signed-off-by: yukke42 <yusuke.muramatsu@tier4.jp> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Shunsuke Miura <37187849+miursh@users.noreply.github.com>
Description
summary
passthrough_lower_bound_probability_threshold
can be used for each classincluding #4057
behavior
to show an image on screenshot, please change debug_mode=true on roi_detected_object_fusion.launch.xml
trust_distances
If the distance of obejct is greater than the threshold (50.0m for pedestrian), it's not discared by this package.
In the screenshot below, a pedestrian is filtered by this pacakge since YOLOX can not detect it even though pointpainting can detect it correctly. After adding trust distance, it cloud be output correctly from this package.
Related links
Tests performed
Notes for reviewers
Interface changes
Effects on system behavior
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.
Summary by CodeRabbit
Release Notes:
generateDetectedObjectRoIs
andfuseObjectsOnImage
functions to accept aDetectedObjects
message instead of a vector ofDetectedObject
objects.can_assign_matrix
of typeEigen::MatrixXi
.passthrough_object_flags_
,fused_object_flags_
, andignored_object_flags_
to be maps withint64_t
keys instead of vectors.param_path
with a default value to the launch file.roi_detected_object_fusion_node
now reads parameters from the launch file.debug_mode
parameter totrue
by default.object_recognition_utils
in the package manifest file.