Closed LiShuaixin closed 4 years ago
I think the issue may be caused by the too old version of eigen. I set USE_SYSTEM_EIGEN = OFF
in eigen_catkin camkelists and downloaded 3.3.7 eigen instead of 3.2.10. Then set USE_SYSTEM_EIGEN = ON
in gtsam_catkin and specify the eigen_library as the one compiled in the project work space (it can also be checked in the built gtsam-src directory, i.e. check the eigen path in gtsam_extra.cmake). Only when all packages are related to the same eigen lib, the project could be compiled and run normally.
When I run kitti_loop_closure.launch, everything seems right:
But the rviz can only visualize the first segment it extracted and nothing else.
The same issue occurred when I run kitti_localization.launch. After it load the target map, the system seems still running while nothing changed in rviz window. Does anybody know the reason that caused the issue?
-------------------------------Update-------------------------------------- I found the issue occurred when calling
result = incremental_estimator_->estimate(new_factors, new_values, new_scan.time_ns);
after processing current laser scan and pose. It stuck into the graph optimization when callingisam::update()
. The version of gtsam I use is download and compiled when building gtsam_catkin. To ensure the whole project using the same version of eigen, I setUSE_SYSTEM_EIGEN = OFF
in eigen_catkin camkelists to download 3.2.10 eigen and setUSE_SYSTEM_EIGEN = OFF
to use GTSAM-bundled Eigen which is also 3.2.10.