laser_geometry icon indicating copy to clipboard operation
laser_geometry copied to clipboard

#include <Eigen/Core> has moved to <eigen3/Eigen/Core> on some (?) Ubuntu distributions

Open brianjzhang opened this issue 4 years ago • 2 comments

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.

brianjzhang avatar Aug 24 '21 05:08 brianjzhang

still broken for foxy as well

kikass13 avatar Jan 03 '23 11:01 kikass13

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

daizhirui avatar Jun 21 '23 18:06 daizhirui