koide3 / hdl_graph_slam

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

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

Closed sonphambk closed 1 year ago

sonphambk commented 1 year 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 1 year ago

@koide3 Please have a check this PR

koide3 commented 1 year ago

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