-
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(autoware_pointcloud_preprocessor): blockage diag node add runtime error when the parameter is wrong #8564
fix(autoware_pointcloud_preprocessor): blockage diag node add runtime error when the parameter is wrong #8564
Conversation
Signed-off-by: vividf <yihsiang.fang@tier4.jp>
Thank you for contributing to the Autoware project! 🚧 If your pull request is in progress, switch it to draft mode. Please ensure:
|
sensing/autoware_pointcloud_preprocessor/src/blockage_diag/blockage_diag_node.cpp
Outdated
Show resolved
Hide resolved
Co-authored-by: badai nguyen <94814556+badai-nguyen@users.noreply.github.com>
@badai-nguyen Could you recheck this, thanks! |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #8564 +/- ##
==========================================
- Coverage 24.11% 23.93% -0.19%
==========================================
Files 1399 1400 +1
Lines 102423 101971 -452
Branches 38926 38765 -161
==========================================
- Hits 24702 24402 -300
+ Misses 75223 75118 -105
+ Partials 2498 2451 -47
*This pull request uses carry forward flags. Click here to find out more. ☔ View full report in Codecov by Sentry. |
sensing/autoware_pointcloud_preprocessor/src/blockage_diag/blockage_diag_node.cpp
Outdated
Show resolved
Hide resolved
sensing/autoware_pointcloud_preprocessor/src/blockage_diag/blockage_diag_node.cpp
Outdated
Show resolved
Hide resolved
Signed-off-by: vividf <yihsiang.fang@tier4.jp>
Signed-off-by: vividf <yihsiang.fang@tier4.jp>
@badai-nguyen Thanks for your suggestion!! I added the logging message. Thanks! |
@vividf Yes, I agree, actually I missed |
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
… error when the parameter is wrong (autowarefoundation#8564) * fix: add runtime error Signed-off-by: vividf <yihsiang.fang@tier4.jp> * Update blockage_diag_node.cpp Co-authored-by: badai nguyen <94814556+badai-nguyen@users.noreply.github.com> * fix: add RCLCPP error logging Signed-off-by: vividf <yihsiang.fang@tier4.jp> * chore: remove unused variable Signed-off-by: vividf <yihsiang.fang@tier4.jp> --------- Signed-off-by: vividf <yihsiang.fang@tier4.jp> Co-authored-by: badai nguyen <94814556+badai-nguyen@users.noreply.github.com>
… error when the parameter is wrong (autowarefoundation#8564) * fix: add runtime error Signed-off-by: vividf <yihsiang.fang@tier4.jp> * Update blockage_diag_node.cpp Co-authored-by: badai nguyen <94814556+badai-nguyen@users.noreply.github.com> * fix: add RCLCPP error logging Signed-off-by: vividf <yihsiang.fang@tier4.jp> * chore: remove unused variable Signed-off-by: vividf <yihsiang.fang@tier4.jp> --------- Signed-off-by: vividf <yihsiang.fang@tier4.jp> Co-authored-by: badai nguyen <94814556+badai-nguyen@users.noreply.github.com> Signed-off-by: Batuhan Beytekin <batuhanbeytekin@gmail.com>
… error when the parameter is wrong (autowarefoundation#8564) * fix: add runtime error Signed-off-by: vividf <yihsiang.fang@tier4.jp> * Update blockage_diag_node.cpp Co-authored-by: badai nguyen <94814556+badai-nguyen@users.noreply.github.com> * fix: add RCLCPP error logging Signed-off-by: vividf <yihsiang.fang@tier4.jp> * chore: remove unused variable Signed-off-by: vividf <yihsiang.fang@tier4.jp> --------- Signed-off-by: vividf <yihsiang.fang@tier4.jp> Co-authored-by: badai nguyen <94814556+badai-nguyen@users.noreply.github.com>
Description
TIER4_INTERNAL_LINK
When the user sets the parameter "vertical_bins" less than the number of LiDAR's channel, it will output a runtime error to let the user know they should set the vertical_bins correctly instead of only getting the
malloc()
error.Related links
Parent Issue:
How was this PR tested?
Notes for reviewers
None.
Interface changes
None.
Effects on system behavior
None.