-
-
Notifications
You must be signed in to change notification settings - Fork 4.6k
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
[icp] pcl::IterativeClosestPoint crash when encountering an invalid point in debug mode #6042
Comments
So in release mode, how are the results (the aligned cloud and the final transformation)? Do they make sense? Most users probably use some kind of filter (e.g. PassThrough or VoxelGrid) before ICP, so ICP currently does not check for invalid points. |
The result in Release mode are meaningless. The pcd file is result of filter cropbox. |
Could you describe the crop-box filtering a bit more, perhaps post some code? Did you use a |
Yes,I used pcl::CropBoxpcl::PointXYZI with "keep organized" on. Part of the point cloud in ascii format:
|
There is still something wrong in icp.getFitnessScore(). Fix in #6056 |
pcl::IterativeClosestPoint will crash when encountering an invalid point in debug mode, but not in release mode.
Assertion failed: point_representation_->isValid (point) && "Invalid (NaN, Inf) point coordinates given to nearestKSearch!", file C:\src\vcpkg\buildtrees\pcl\src\head\f84d767a5c-61de3f9c1f.clean\kdtree\include\pcl/kdtree/impl/kdtree_flann.hpp, line 239
code:
pcd file : https://github.com/QiuYilin/test/blob/main/pcl_test/source/croped.pcd
Your Environment (please complete the following information):
The text was updated successfully, but these errors were encountered: