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

terminate called after throwing an instance of 'pcl::IOException' what(): : [pcl::PCDWriter::writeBinary] Input point cloud has no data! #275

Open
kim-hyunse opened this issue Dec 10, 2023 · 2 comments

Comments

@kim-hyunse
Copy link

this exception keep occurs when make a map (ctrl c). how can i fix this error?
An exception has occurred and the final map is not saved.
image

@kim-hyunse
Copy link
Author

kim-hyunse commented Dec 14, 2023

i solved this issue. i changed code mapOptmization.cpp. in line 755, 756, 757, 783(map saving part), change like this pcl::io::savePCDFileASCII("/tmp/finalCloud.pcd", *globalMapCloud);.
If you change the path of the pcd validly, the exception will be resolved

@DeepDuke
Copy link

DeepDuke commented Jan 1, 2024

It seems globalMapCloud may be empty. I save other pcds successfully after commenting this line like :

// pcl::io::savePCDFileASCII("/tmp/finalCloud.pcd", *globalMapCloud);.

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

2 participants