koide3 / hdl_graph_slam

3D LIDAR-based Graph SLAM
BSD 2-Clause "Simplified" License
2.02k stars 728 forks source link

Add missing eigen header when compile interactive-slam with original g2o #242

Closed sonphambk closed 2 years ago

sonphambk commented 2 years ago

Hello This PR for fix eigen error when we compile interactive-slam with original g2o instead of use libg2o from ROS. Because libg2o from ROS doesn't use latest commit from original g2o source code. After I integrated original g2o from source and compiled my workspace. hdl_graph_slam appeared this error: image And I fixed this problem by adding this line #include <Eigen/Dense> in graph_slam.hpp

sonphambk commented 2 years ago

@koide3 Please have a check this PR

koide3 commented 2 years ago

Thanks for your PR. I'll merge it soon 👍