-
Notifications
You must be signed in to change notification settings - Fork 696
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(ndt_scan_matcher): added error handling about update_ndt #6560
fix(ndt_scan_matcher): added error handling about update_ndt #6560
Conversation
Signed-off-by: Shintaro Sakoda <shintaro.sakoda@tier4.jp>
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #6560 +/- ##
==========================================
- Coverage 15.19% 14.81% -0.39%
==========================================
Files 1851 1917 +66
Lines 128656 132007 +3351
Branches 39297 39239 -58
==========================================
+ Hits 19550 19551 +1
- Misses 87279 90641 +3362
+ Partials 21827 21815 -12
*This pull request uses carry forward flags. Click here to find out more. ☔ View full report in Codecov by Sentry. |
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.
@SakodaShintaro Tested OK on my PC.
1f6ed4a
into
autowarefoundation:main
Added error handling about update_ndt Signed-off-by: Shintaro Sakoda <shintaro.sakoda@tier4.jp> Co-authored-by: Anh Nguyen <anh.nguyen.2@tier4.jp> Signed-off-by: Kotaro Yoshimoto <pythagora.yoshimoto@gmail.com>
…efoundation#6560) Added error handling about update_ndt Signed-off-by: Shintaro Sakoda <shintaro.sakoda@tier4.jp> Co-authored-by: Anh Nguyen <anh.nguyen.2@tier4.jp> Signed-off-by: kaigohirao <kaigo.hirao@proxima-ai-tech.com>
…efoundation#6560) Added error handling about update_ndt Signed-off-by: Shintaro Sakoda <shintaro.sakoda@tier4.jp> Co-authored-by: Anh Nguyen <anh.nguyen.2@tier4.jp>
Description
The current
ndt_scan_matcher
crashes if the initial pose is placed far from the PCD map.This is because in the case where
update_ndt
fails,voxel_centroids_ptr_
of ndt remains nullptr and is referenced in subsequent code.This pull request works around this issue by adding error handling.
Tests performed
It has been confirmed that the
logging_simulator
runs with the same accuracy as before on AWSIM data with GT.Effects on system behavior
Placing the initial position estimate far from the PCD no longer causes a crash.
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.