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

Cannot create a KDTree with an empty input cloud! #49

Open
Minsu-Kim1822 opened this issue Mar 27, 2023 · 19 comments
Open

Cannot create a KDTree with an empty input cloud! #49

Minsu-Kim1822 opened this issue Mar 27, 2023 · 19 comments

Comments

@Minsu-Kim1822
Copy link

Minsu-Kim1822 commented Mar 27, 2023

Hi all,

I try to generate a map with LIO-LIVOX using HAP.
I ran my custom rosbag files, and it works well with this error.
I think memory leak is occurred due to this problem, but I do not have an idea to solve this problem

Any solutions?

image

@zhSlamer
Copy link

Me too

@whyscience
Copy link

just change

kdtreeNonFeatureFromLocal->setInputCloud(laserCloudNonFeatureFromLocal);

to

  if(!laserCloudNonFeatureFromLocal->empty())
    kdtreeNonFeatureFromLocal->setInputCloud(laserCloudNonFeatureFromLocal);

@Minsu-Kim1822
Copy link
Author

@whyscience
Thank you for your reply, but it does not work for me

@whyscience
Copy link

you can add log to all the setInputCloud used, then use if(!cloud->empty()) to avoid the ERROR

@Minsu-Kim1822
Copy link
Author

Minsu-Kim1822 commented Mar 27, 2023

@whyscience , Thanks it works! :)

Btw, due to the memory increases exponentially, it suddenly shut downed itself.
Do you have any idea or experienced such things?

@whyscience
Copy link

Not yet

@runjtu
Copy link

runjtu commented Mar 29, 2023

Use_seg: 1 # use segment algorithm
try this

@HowoongJun
Copy link

This error is because there is no assigned value to 'laserCloudCornerLast' variable in <Estimator.cpp> .
There is no corner related code in this repository, so you can just use FeatureExtract_with_segment function instead of FeatureExtract_with_segment_hap function.

@dbaldzhiev
Copy link

using mid360 I get:
[pcl::KdTreeFLANN::setInputCloud] Cannot create a KDTree with an empty input cloud!
[PoseEstimation-3] process has died [pid 104728, exit code -11, cmd /home/dimitar/ws_lio-livox/devel/lib/lio_livox/PoseEstimation __name:=PoseEstimation __log:=/home/dimitar/.ros/log/1054c492-dfa7-11ed-8fe5-29e2e6177416/PoseEstimation-3.log].
log file: /home/dimitar/.ros/log/1054c492-dfa7-11ed-8fe5-29e2e6177416/PoseEstimation-3*.log

roslaunch-tec-djin-104672.log

compilelog.log

@Cxz-dev
Copy link

Cxz-dev commented Apr 25, 2023

I have the same problem in mid360. Have you tried in outdoor scene?

@dbaldzhiev
Copy link

I have the same problem in mid360. Have you tried in outdoor scene?

No I haven't. Indoor only.

@wzt991101
Copy link

Hello, I have the same problem about HAP, have you solved it now?

1 similar comment
@wzt991101
Copy link

Hello, I have the same problem about HAP, have you solved it now?

@WH30
Copy link

WH30 commented Aug 3, 2023

This error is because there is no assigned value to 'laserCloudCornerLast' variable in <Estimator.cpp> . There is no corner related code in this repository, so you can just use FeatureExtract_with_segment function instead of FeatureExtract_with_segment_hap function.

thx, it works!

@brandon-lawrence96
Copy link

laserCloudCornerLast

Hi. What do you mean by this? If there is no assigned value to 'laserCloudCornerLast' Variable, then how does that link with the FeatureExtract_with_segment function. Could you explain more of how to resolve the issue? Thank you :)

@abhishekt711
Copy link

This error is because there is no assigned value to 'laserCloudCornerLast' variable in <Estimator.cpp> . There is no corner related code in this repository, so you can just use FeatureExtract_with_segment function instead of FeatureExtract_with_segment_hap function.

I am getting the same error can u please explain what changes to be done in code?

@abhishekt711
Copy link

Screenshot from 2023-08-09 23-56-04
I have used the same function as u said but after some frame process has died

This error is because there is no assigned value to 'laserCloudCornerLast' variable in <Estimator.cpp> . There is no corner related code in this repository, so you can just use FeatureExtract_with_segment function instead of FeatureExtract_with_segment_hap function.

@NHMMing
Copy link

NHMMing commented Sep 14, 2023

Screenshot from 2023-08-09 23-56-04 I have used the same function as u said but after some frame process has died

This error is because there is no assigned value to 'laserCloudCornerLast' variable in <Estimator.cpp> . There is no corner related code in this repository, so you can just use FeatureExtract_with_segment function instead of FeatureExtract_with_segment_hap function.

me too. I try this way, but I met the same problem. Have u solved it?

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
@midiexiangxxx
Copy link

Screenshot from 2023-08-09 23-56-04 I have used the same function as u said but after some frame process has died

This error is because there is no assigned value to 'laserCloudCornerLast' variable in <Estimator.cpp> . There is no corner related code in this repository, so you can just use FeatureExtract_with_segment function instead of FeatureExtract_with_segment_hap function.

me too. I try this way, but I met the same problem. Have u solved it?

hi, have you solved it plz?

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