ros eigen 添加

在CMakeList文件中分別添加以上三處

find_package(catkin REQUIRED COMPONENTS
cmake_modules
)

find_package(Eigen REQUIRED)

include_directories(
${EIGEN_INCLUDE_DIRS}
)
如果不加第一句,會出現錯誤

By not providing “FindEigen.cmake” in CMAKE_MODULE_PATH this project has
asked CMake to find a package configuration file provided by “Eigen”, but
CMake did not find one.

Could not find a package configuration file provided by “Eigen” with any of
the following names:

EigenConfig.cmake
eigen-config.cmake

參考:http://wiki.ros.org/eigen

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章