-
Notifications
You must be signed in to change notification settings - Fork 668
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(compare_map_segmentation): throw runtime error when using non-split map pointcloud for DynamicMapLoader #9024
Conversation
…it map pointcloud for DynamicMapLoader Signed-off-by: badai-nguyen <[email protected]>
Thank you for contributing to the Autoware project! 🚧 If your pull request is in progress, switch it to draft mode. Please ensure:
|
Signed-off-by: badai-nguyen <[email protected]>
Signed-off-by: badai-nguyen <[email protected]>
Documentation URL: https://autowarefoundation.github.io/autoware.universe/pr-9024/ |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #9024 +/- ##
==========================================
- Coverage 27.09% 26.33% -0.76%
==========================================
Files 1300 1301 +1
Lines 95810 95905 +95
Branches 39122 38656 -466
==========================================
- Hits 25955 25253 -702
- Misses 67257 68093 +836
+ Partials 2598 2559 -39
*This pull request uses carry forward flags. Click here to find out more. ☔ View full report in Codecov by Sentry. |
@@ -270,6 +271,10 @@ class VoxelGridDynamicMapLoader : public VoxelGridMapLoader | |||
{ | |||
map_grid_size_x_ = map_cell_to_add.metadata.max_x - map_cell_to_add.metadata.min_x; | |||
map_grid_size_y_ = map_cell_to_add.metadata.max_y - map_cell_to_add.metadata.min_y; | |||
if (map_grid_size_x_ > max_map_grid_size_ || map_grid_size_y_ > max_map_grid_size_) { | |||
throw std::runtime_error( |
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.
Please use RCLCPP_ERROR
to handle ROS2 error like other nodes.
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.
Should this error invoke with dynamic map loading mode?
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.
Should this error invoke with dynamic map loading mode?
Yes, Since function addMapCellAndFilter
is member of VoxelGridDynamicMapLoade
Class so this error invoked during Dynamic map loader mode.
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.
Please use
RCLCPP_ERROR
to handle ROS2 error like other nodes.
I fixed at 1416bfb
...autoware_compare_map_segmentation/schema/voxel_distance_based_compare_map_filter.schema.json
Outdated
Show resolved
Hide resolved
…ance_based_compare_map_filter.schema.json Co-authored-by: Yoshi Ri <[email protected]>
Signed-off-by: badai-nguyen <[email protected]>
@yukkysaito Could you review this PR also as codeowner? |
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. We should fix launcher caller, right?
@YoshiRi Thank you for your review. I disabled the use_dynamic_map_loading in default and tested on Evaluator. All tests were passed for PerceptionPerformancTest. However, IMO, on evaluator's side, it's better to execute test with customizable @yukkysaito Could you approve this PR as codeowner? |
Description
dynamic_map_loader
incompare_map_segmentation
. Otherwise, ERROR message will be output as belowRelated links
Parent Issue:
How was this PR tested?
Notes for reviewers
None.
Interface changes
None.
Effects on system behavior
None.