Open EH-HU opened 4 months ago
Add. This code will produce a corresponding error self.reg.set_input_target(points)
Segmentation fault (core dumped)
Did you clone and install the fast_gicp in the gs_icp_slam branch? (Not in the main branch)
Thank you for your response, the first error has been fixed, but the second error is still not fixed.
How to solve this problem??? I also have this problem. I found that the official code of fase_gicp used the main branch. But when I run the command "bash tum.sh", it was not well running. It endless loop(it seems that) at the second iter(current_pose = self.reg.align(initial_pose)). The console has no log output. When I change the fase_gicp brance of gs_gicp_slam, the error changed as : AttributeError: 'pygicp.FastGICP' object has no attribute 'set_max_knn_distance'.
What should I do???
Thread 1 "python" received signal SIGSEGV, Segmentation fault. 0x00007fffc3b0221c in bool fast_gicp::FastGICP<pcl::PointXYZ, pcl::PointXYZ, pcl::search::KdTree<pcl::PointXYZ, pcl::KdTreeFLANN<pcl::PointXYZ, flann::L2_Simple > >, pcl::search::KdTree<pcl::PointXYZ, pcl::KdTreeFLANN<pcl::PointXYZ, flann::L2_Simple > > >::calculate_source_covariances_with_filterpcl::PointXYZ(pcl::PointCloudpcl::PointXYZ::ConstPtr const&, pcl::search::Searchpcl::PointXYZ&, std::vector<Eigen::Matrix<double, 4, 4, 0, 4, 4>, Eigen::aligned_allocator<Eigen::Matrix<double, 4, 4, 0, 4, 4> > >&, std::vector<float, std::allocator >&, std::vector<float, std::allocator >&, std::vector<int, std::allocator >&) [clone ._omp_fn.0] () from /home/gvlib_ljh/3DGS-SLAM/GS_ICP_SLAM/submodules/fast_gicp/build/lib.linux-x86_64-cpython-310/libfast_gicp.so (gdb) backtrace
at /home/gvlib_ljh/3DGS-SLAM/GS_ICP_SLAM/submodules/fast_gicp/build/lib.linux-x86_64-cpython-310/libfast_gicp.so
at /home/gvlib_ljh/3DGS-SLAM/GS_ICP_SLAM/submodules/fast_gicp/build/lib.linux-x86_64-cpython-310/libfast_gicp.so
at /home/gvlib_ljh/3DGS-SLAM/GS_ICP_SLAM/submodules/fast_gicp/build/lib.linux-x86_64-cpython-310/libfast_gicp.so
(main=0x555555780c70, argc=6, argv=0x7fffffffdfb8, init=, fini=, rtld_fini=, stack_end=0x7fffffffdfa8) at ../csu/libc-start.c:392
AttributeError: 'pygicp.FastGICP' object has no attribute 'set_max_knn_distance'
How can I solve this problem?