解决方法 在cmakelist.txt里添加绝对路径 include_directories(include ${catkin_INCLUDE_DIRS} /usr/include/eigen3 /opt/ros/kinetic/include )