ros-perception / laser_geometry

Provides the LaserProjection class for turning laser scan data into point clouds.
BSD 3-Clause "New" or "Revised" License
157 stars 114 forks source link

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

Open brianjzhang opened 3 years ago

brianjzhang commented 3 years ago

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.

kikass13 commented 1 year ago

still broken for foxy as well

daizhirui commented 1 year ago

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