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

fix(image_projection_based_fusion): fix out-of-scope error #4057

Merged

Conversation

yukke42
Copy link
Contributor

@yukke42 yukke42 commented Jun 23, 2023

Description

fix a bug by the update of sync alrogithm of this package

Related links

Tests performed

I have checked with some rosbag that there are no errors.

blue bounding boxes are output objects.
yellow bounding boxes are filtered out objects.

image

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.

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

Summary by CodeRabbit

Release Notes:

  • Refactor: The RoiDetectedObjectFusionNode class in the node.hpp file has been modified. The generateDetectedObjectRoIs and fuseObjectsOnImage functions now accept a DetectedObjects message as input instead of a vector of DetectedObject objects. The member variables passthrough_object_flags_, fused_object_flags_, and ignored_object_flags_ have been changed to maps (passthrough_object_flags_map_, fused_object_flags_map_, and ignored_object_flags_map_) with int64_t keys.

"Code transformed, objects fused,
With maps and messages, it's infused.
Bugs evicted, logic refined,
A celebration of code, we find."

@github-actions github-actions bot added the component:perception Advanced sensor data processing and environment understanding. (auto-assigned) label Jun 23, 2023
@yukke42 yukke42 changed the title fix: fix unexpected matches between roi and detected objects fix(image_projection_based_fusion): fix unexpected matches between roi and detected objects Jul 6, 2023
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
@yukke42 yukke42 force-pushed the fix-roi-detected-objects-fusion branch from 56e9f34 to 026ac95 Compare August 6, 2023 23:04
Signed-off-by: yukke42 <yukke42@users.noreply.github.com>
@yukke42 yukke42 changed the title fix(image_projection_based_fusion): fix unexpected matches between roi and detected objects fix(image_projection_based_fusion): fix out-of-scope error Aug 7, 2023
@yukke42 yukke42 marked this pull request as ready for review August 7, 2023 01:57
@yukke42 yukke42 requested a review from yukkysaito as a code owner August 7, 2023 01:57
@yukke42 yukke42 requested a review from manato August 7, 2023 01:57
@miursh miursh added run:build-and-test-differential Mark to enable build-and-test-differential workflow. (used-by-ci) openai-pr-reviewer labels Aug 7, 2023
@github-actions
Copy link

github-actions bot commented Aug 7, 2023

Image description CodeRabbit

Walkthrough

The changes include modifications to the RoiDetectedObjectFusionNode class in the node.hpp file. The generateDetectedObjectRoIs and fuseObjectsOnImage functions now accept a DetectedObjects message as input instead of a vector of DetectedObject objects. Additionally, the member variables passthrough_object_flags_, fused_object_flags_, and ignored_object_flags_ have been changed to maps (passthrough_object_flags_map_, fused_object_flags_map_, and ignored_object_flags_map_) with int64_t keys.

Changes

File Summary
perception/image_projection_based_fusion/include/image_projection_based_fusion/roi_detected_object_fusion/node.hpp Modifications to the RoiDetectedObjectFusionNode class: generateDetectedObjectRoIs and fuseObjectsOnImage now accept DetectedObjects message as input. Member variables passthrough_object_flags_, fused_object_flags_, and ignored_object_flags_ changed to maps with int64_t keys.

Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

Image description CodeRabbit

Commits Files that changed from the base of the PR and between 404a3b1 and 9af08d5 commits.
Files selected (2)
  • perception/image_projection_based_fusion/include/image_projection_based_fusion/roi_detected_object_fusion/node.hpp (2)
  • perception/image_projection_based_fusion/src/roi_detected_object_fusion/node.cpp (9)
Files not summarized due to errors (1)
  • perception/image_projection_based_fusion/src/roi_detected_object_fusion/node.cpp (diff tokens exceeds limit)
Review comments generated (6)
  • Review: 3
  • LGTM: 3

Tips

Chat with Image description 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.

@codecov
Copy link

codecov bot commented Aug 7, 2023

Codecov Report

Patch coverage: 7.54% and project coverage change: -0.51% ⚠️

Comparison is base (2e5752f) 14.80% compared to head (b3eb283) 14.30%.
Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #4057      +/-   ##
==========================================
- Coverage   14.80%   14.30%   -0.51%     
==========================================
  Files        1527     1557      +30     
  Lines      105643   106941    +1298     
  Branches    32096    30758    -1338     
==========================================
- Hits        15642    15293     -349     
- Misses      72925    75085    +2160     
+ Partials    17076    16563     -513     
Flag Coverage Δ *Carryforward flag
differential 0.00% <0.00%> (?)
total 14.34% <28.57%> (-0.47%) ⬇️ Carriedforward from 9af08d5

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

Files Changed Coverage Δ
...n_based_fusion/roi_detected_object_fusion/node.hpp 0.00% <ø> (ø)
...sed_fusion/src/roi_detected_object_fusion/node.cpp 0.00% <0.00%> (ø)
...lanner/scene_module/avoidance/avoidance_module.hpp 0.00% <ø> (-8.34%) ⬇️
..._planner/utils/avoidance/avoidance_module_data.hpp 0.00% <ø> (ø)
...er/src/scene_module/avoidance/avoidance_module.cpp 4.13% <28.57%> (-7.90%) ⬇️

... and 436 files with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

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

@yukke42 yukke42 enabled auto-merge (squash) August 8, 2023 05:19
@yukke42 yukke42 disabled auto-merge August 8, 2023 05:20
@miursh miursh added run:build-and-test-differential Mark to enable build-and-test-differential workflow. (used-by-ci) and removed run:build-and-test-differential Mark to enable build-and-test-differential workflow. (used-by-ci) labels Aug 8, 2023
@yukke42 yukke42 merged commit 1c529ae into autowarefoundation:main Aug 8, 2023
@yukke42 yukke42 deleted the fix-roi-detected-objects-fusion branch August 8, 2023 16:33
yukke42 added a commit to tier4/autoware.universe that referenced this pull request Aug 9, 2023
…oundation#4057)

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

---------

Signed-off-by: yukke42 <yukke42@users.noreply.github.com>
Co-authored-by: Shunsuke Miura <37187849+miursh@users.noreply.github.com>
yukke42 added a commit to tier4/autoware.universe that referenced this pull request Aug 9, 2023
…oundation#4057)

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

---------

Signed-off-by: yukke42 <yukke42@users.noreply.github.com>
Co-authored-by: Shunsuke Miura <37187849+miursh@users.noreply.github.com>
LeoDriveProject pushed a commit to leo-drive/autoware.universe.golf that referenced this pull request Aug 16, 2023
…oundation#4057)

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

---------

Signed-off-by: yukke42 <yukke42@users.noreply.github.com>
Co-authored-by: Shunsuke Miura <37187849+miursh@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component:perception Advanced sensor data processing and environment understanding. (auto-assigned) run:build-and-test-differential Mark to enable build-and-test-differential workflow. (used-by-ci)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants