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

[pcl::KdTreeFLANN::setInputCloud] Cannot create a KDTree with an empty input cloud! #61

Open
abhishekt711 opened this issue Aug 9, 2023 · 4 comments

Comments

@abhishekt711
Copy link

abhishekt711 commented Aug 9, 2023

Getting this error with hap lidar , on ubuntu 20. I am getting odometry trajectory in rviz but map is not seen.

@abhishekt711 abhishekt711 changed the title Nothing is coming on rviz , map is not building launching hap.launch getting this error [ScanRegistration-2] process has died [pid 7136, exit code -6, cmd /home/abhishek/lio-livox2/devel/lib/lio_livox/ScanRegistration __name:=ScanRegistration __log Aug 9, 2023
@abhishekt711 abhishekt711 changed the title launching hap.launch getting this error [ScanRegistration-2] process has died [pid 7136, exit code -6, cmd /home/abhishek/lio-livox2/devel/lib/lio_livox/ScanRegistration __name:=ScanRegistration __log [pcl::KdTreeFLANN::setInputCloud] Cannot create a KDTree with an empty input cloud! Aug 9, 2023
@NHMMing
Copy link

NHMMing commented Sep 14, 2023

have you solved it? I have the same problem, on HAP, I even can not get odometry trajectory.

@Shidabot
Copy link

in Estimator.cpp,line 930:
kdtreeNonFeatureFromLocal->setInputCloud(laserCloudNonFeatureFromLocal);
before this line, add:
if(!laserCloudNonFeatureFromLocal->empty())

you can try it!

@NHMMing
Copy link

NHMMing commented Sep 26, 2023

in Estimator.cpp,line 930: kdtreeNonFeatureFromLocal->setInputCloud(laserCloudNonFeatureFromLocal); before this line, add: if(!laserCloudNonFeatureFromLocal->empty())

you can try it!

thanks, I try it and it works. But I just run on "IMU Mode 0" and "IMU Mode 1". On "IMU Mode 2", it doesn't work. Do you have this problem?

@FPSychotic
Copy link

if(!laserCloudNonFeatureFromLocal->empty())

same problem any definitive solution , thanks by this software

charlescochran added a commit to BadgerTechnologies/LIO-Livox that referenced this issue May 23, 2024
charlescochran added a commit to BadgerTechnologies/LIO-Livox that referenced this issue May 23, 2024
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