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

闭环时代码崩溃 #38

Open
firefly-hub opened this issue Jul 26, 2024 · 6 comments
Open

闭环时代码崩溃 #38

firefly-hub opened this issue Jul 26, 2024 · 6 comments

Comments

@firefly-hub
Copy link

firefly-hub commented Jul 26, 2024

@kahowang 谢谢您提供的优秀的代码。但这几天在程序运行时,遇到闭环时就立马崩溃的问题(在ubuntu18.04和ubuntu20.04上都进行了测试)。用gdb进行排查,结果显示跟踪到闭环部分的函数loopFindNearKeyframes中 pcl::PointCloud::Ptr cloud_temp(new pcl::PointCloud())问题,但这样定义变量是没问题的呀。想问下是否您在测试过程中也遇到这种问题,或者提供解决办法的思路。以下是gdb的结果:


1

下面是崩溃时rviz上轨迹显示:

2

@kahowang
Copy link
Owner

您好,非常感谢您的关注,我在测试中并没有发现这个问题。暂时通过您的描述无法判断问题的原因,可否检查一些PCL库版本 或 GTSAM 版本?再次感谢您的关注~

@sunshihao1010
Copy link

sunshihao1010 commented Aug 30, 2024

微信图片_20240830145426 我也遇到了同样的问题,我使用的是pcl 1.8与gtsam 4.0.3,请问您有解决这个问题吗?是否确认是库版本的问题呢@firefly-hub

@cc1630
Copy link

cc1630 commented Nov 19, 2024

image
我用自己录制的闭环数据,单步调试到这一行然后崩溃。请问怎么解决,谢谢。

@cc1630
Copy link

cc1630 commented Nov 19, 2024

image 我用自己录制的闭环数据,单步调试到这一行然后崩溃。请问怎么解决,谢谢。

我把pcl::PointCloud::Ptr cloud_temp(new pcl::PointCloud());设置为全局变量,每次赋完值清空,请问这样可以吗

@xchwang1998
Copy link

我也是在这里遇到了类似的问题,大家有好的解决方法吗

@xchwang1998
Copy link

在CSDN中看到大佬用此方案,转换下采样处的数据类型,解决了问题。
https://blog.csdn.net/weixin_42325783/article/details/134369931

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

5 participants