fast-gicp icon indicating copy to clipboard operation
fast-gicp copied to clipboard

how to solve Invalid (NaN, Inf) point error when I run ndt_cuda (D2D)?

Open ChenHuang20 opened this issue 3 years ago • 0 comments

when I RUN rosrun fast_gicp gicp_align 251370668.pcd 251371071.pcd

target:17047[pts] source:17334[pts]
--- ndt_cuda (D2D) ---
gicp_align: /build/pcl-gWGA5r/pcl-1.10.0+dfsg/kdtree/include/pcl/kdtree/impl/kdtree_flann.hpp:138: int pcl::KdTreeFLANN<PointT, Dist>::nearestKSearch(const PointT&, int, std::vector<int>&, std::vector<float>&) const [with PointT = pcl::PointXYZ; Dist = flann::L2_Simple<float>]: Assertion `point_representation_->isValid (point) && "Invalid (NaN, Inf) point coordinates given to nearestKSearch!"' failed.
Aborted (core dumped)

cmake version is 3.16.3, cuda version is 11.3, ros version is noetic, pcl is 1.10.0

How to solve it? looking forward to your relpy. Thanks!

ChenHuang20 avatar Dec 01 '22 08:12 ChenHuang20