Skip to content
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

performing global optimization failed #26

Open
zhu-bingo opened this issue May 10, 2020 · 3 comments
Open

performing global optimization failed #26

zhu-bingo opened this issue May 10, 2020 · 3 comments

Comments

@zhu-bingo
Copy link

[pcl::KdTreeFLANN::setInputCloud] Cannot create a KDTree with an empty input cloud!
lidar_align_node: /build/pcl-6_P28C/pcl-1.7.2/kdtree/include/pcl/kdtree/impl/kdtree_flann.hpp:136: int pcl::KdTreeFLANN<PointT, Dist>::nearestKSearch(const PointT&, int, std::vector&, std::vector&) const [with PointT = pcl::PointXYZI; Dist = flann::L2_Simple]: Assertion `point_representation_->isValid (point) && "Invalid (NaN, Inf) point coordinates given to nearestKSearch!"' failed.
[lidar_align-2] process has died [pid 15815, exit code -6, cmd /home/zzy/align_ws/devel/lib/lidar_align/lidar_align_node __name:=lidar_align __log:=/home/zzy/.ros/log/142a24e8-92b8-11ea-99ff-54271e1e6f01/lidar_align-2.log].
log file: /home/zzy/.ros/log/142a24e8-92b8-11ea-99ff-54271e1e6f01/lidar_align-2*.log

how to solve it?
thank you

@eminbogen
Copy link

[pcl::KdTreeFLANN::setInputCloud] Cannot create a KDTree with an empty input cloud!
lidar_align_node: /build/pcl-6_P28C/pcl-1.7.2/kdtree/include/pcl/kdtree/impl/kdtree_flann.hpp:136: int pcl::KdTreeFLANN<PointT, Dist>::nearestKSearch(const PointT&, int, std::vector&, std::vector&) const [with PointT = pcl::PointXYZI; Dist = flann::L2_Simple]: Assertion `point_representation_->isValid (point) && "Invalid (NaN, Inf) point coordinates given to nearestKSearch!"' failed.
[lidar_align-2] process has died [pid 15815, exit code -6, cmd /home/zzy/align_ws/devel/lib/lidar_align/lidar_align_node __name:=lidar_align __log:=/home/zzy/.ros/log/142a24e8-92b8-11ea-99ff-54271e1e6f01/lidar_align-2.log].
log file: /home/zzy/.ros/log/142a24e8-92b8-11ea-99ff-54271e1e6f01/lidar_align-2*.log

how to solve it?
thank you

Did you solve this problem, I also encountered the same problem, I confirmed that removeNaNFromPointCloud has removed the NAN point

@LarryDong
Copy link

Hi, please test author's example.bag. If data provided by author is correct, I guess the problem is in your own data.
#5 (comment)

@ydj520
Copy link

ydj520 commented Nov 13, 2020

I have tested author's example.bag ,but i also encountered the same problem,how to solve it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants