-
Notifications
You must be signed in to change notification settings - Fork 683
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): handle projection errors in image fusion nodes #7747
fix(image_projection_based_fusion): handle projection errors in image fusion nodes #7747
Conversation
Thank you for contributing to the Autoware project! 🚧 If your pull request is in progress, switch it to draft mode. Please ensure:
|
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.
https://github.com/autowarefoundation/autoware.universe/pull/7030/files#r1602399641
A little more discussion may be needed on this one.
Because Exception is right in a way, it may be necessary to destroy the root cause.
@kminoda
I disagree with this statement since the ROS is not deterministic. The input cannot be aligned as intended, and therefore, the module need to treat incomplete input possibilities. |
@technolojin As discussed previously, since we are still not sure the exact cause of this error, I propose to make this PR a draft or closed, and re-open once we isolate the real cause. |
@kminoda |
3268716
to
79bc9b9
Compare
79bc9b9
to
34ee5f6
Compare
Autoware Evaluator test has been passed TIER IV Cloud Tester |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #7747 +/- ##
==========================================
+ Coverage 23.90% 23.94% +0.03%
==========================================
Files 1382 1381 -1
Lines 101915 101560 -355
Branches 38808 38614 -194
==========================================
- Hits 24365 24315 -50
+ Misses 75050 74740 -310
- Partials 2500 2505 +5
*This pull request uses carry forward flags. Click here to find out more. ☔ View full report in Codecov by Sentry. |
Signed-off-by: Taekjin LEE <taekjin.lee@tier4.jp>
da4770e
to
72d894d
Compare
perception/autoware_image_projection_based_fusion/src/utils/utils.cpp
Outdated
Show resolved
Hide resolved
perception/autoware_image_projection_based_fusion/src/utils/utils.cpp
Outdated
Show resolved
Hide resolved
@knzo25 Sorry for missing the mention. I think the current validation scheme in this PR is OK, right? (Taekjin-san has fixed it) |
perception/autoware_image_projection_based_fusion/src/utils/utils.cpp
Outdated
Show resolved
Hide resolved
…o function Signed-off-by: Taekjin LEE <taekjin.lee@tier4.jp>
…EAM for unsupported distortion model and coefficients size Signed-off-by: Taekjin LEE <taekjin.lee@tier4.jp>
@yukkysaito Can you review this PR? |
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
… fusion nodes (autowarefoundation#7747) * fix: add check for camera distortion model Signed-off-by: Taekjin LEE <taekjin.lee@tier4.jp> * feat(utils): add const qualifier to local variables in checkCameraInfo function Signed-off-by: Taekjin LEE <taekjin.lee@tier4.jp> * style(pre-commit): autofix * chore(utils): update checkCameraInfo function to use RCLCPP_ERROR_STREAM for unsupported distortion model and coefficients size Signed-off-by: Taekjin LEE <taekjin.lee@tier4.jp> --------- Signed-off-by: Taekjin LEE <taekjin.lee@tier4.jp> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Description
The ROS2 PinholeCameraModel::unrectifyPoint can cause exception
http://docs.ros.org/en/noetic/api/image_geometry/html/c++/pinhole__camera__model_8cpp_source.html#l00423
To prevent the node stop, the camera info is checked before. If distortion_state can be 'UNKNOWN', stop the process.
Reference: http://docs.ros.org/en/diamondback/api/image_geometry/html/c++/pinhole__camera__model_8cpp_source.html#l00110
Test
Related links
#7053
TIER IV INTERNAL
Data:TIER IV INTERNAL
Effects on system behavior
None.