laser_geometry
laser_geometry copied to clipboard
#include <Eigen/Core> has moved to <eigen3/Eigen/Core> on some (?) Ubuntu distributions
When trying to use the package, I got an include error that I fixed based on this similar error: https://github.com/opencv/opencv/issues/14868
It's just a change to line 47 in laser_geometry.h:
#include <**eigen3**/Eigen/Core>
I am on ROS Noetic/Ubuntu 20.04. It doesn't look like there is a branch for noetic, but there is a ros-noetic-laser-geometry package that might be broken for others as well, so this might be a nice little fix if you have a moment. Alternatively, it might break others' setups - not too sure, sorry.
still broken for foxy as well
A quick workaround is
sudo ln -s /usr/include/eigen3/Eigen /usr/include/Eigen
or
sudo ln -s /usr/local/include/eigen3/Eigen /usr/local/include/Eigen