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! #3

Open
DioBakery opened this issue Nov 21, 2024 · 2 comments

Comments

@DioBakery
Copy link

您好作者,我运行online的时候出现以下问题,请问是什么原因?
Key Frame:24, cloud size:19315
proj normal: 0.970955 -0.238857 0.0139405
[pcl::KdTreeFLANN::setInputCloud] Cannot create a KDTree with an empty input cloud!
num_of_images: 10
[pcl::KdTreeFLANN::setInputCloud] Cannot create a KDTree with an empty input cloud!
[Loop Fail] 24 -- -1, plane-plane overlap:0
[Time] build descriptor:0.391289, update database:0.52323, extract 3d keypt from cloud geometry:6.33429, extract 2d keypt from images:2.48562, depth matrix calculation:1.28495, loop candidate search:0.60394, triangle ransac:0, plane-plane verification:0, average total time:4.95081 ms

@DioBakery
Copy link
Author

DioBakery commented Nov 25, 2024

发现是这一行中的v一直大于v_up_bound,导致无法建立正确的depth_vec
我的/camera/image_color_compressed和/camera/poses_inworld应该是没有问题的,在rviz中也能够正常显示,cloud选择使用的是cloud_registered
是否有其他地方我没有注意的?

@zuhaozou2017
Copy link
Collaborator

你好, 这应该是因为你的点云没有被投影到相机平面里。先注释掉这一行://generate_depthmask(depth_mask_list[i], ptcloud, rotation, translation, sorter[img_t].m_pose_w_2_c_t); 然后看看深度图正常吗?如果没有点云投影到这里,那就是你的相机的fx fy cx cy或者相机到点云的转换有问题(相机外参有问题)。

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