写在前面
自己的测试环境:
Ubuntu20.04
ROS-Noetic
一、问题描述
CMake Error at /***/devel/share/catkin_simple/cmake/catkin_simple-extras.cmake:38 (find_package):
By not providing "Findnumpy_eigen.cmake" in CMAKE_MODULE_PATH this project
has asked CMake to find a package configuration file provided by
"numpy_eigen", but CMake did not find one.
Could not find a package configuration file provided by "numpy_eigen" with
any of the following names:
numpy_eigenConfig.cmake
numpy_eigen-config.cmake
Add the installation prefix of "numpy_eigen" to CMAKE_PREFIX_PATH or set
"numpy_eigen_DIR" to a directory containing one of the above files. If
"numpy_eigen" provides a separate development package or SDK, be sure it
has been installed.
二、解决方法
出现这个问题的原因主要是缺少 numpy_eigen
包,但是使用 sudo apt-get install ros-noetic-numpy-eigen
并不能找到 glog_catkin
包,因此需要下载源码,然后再使用。
首先从 https://github.com/ethz-asl/numpy_eigen
下载 numpy_eigen
包,并把 numpy_eigen
包 与自己的 package 放在同一位置。然后再次编译即可。
参考链接
[1] ethz-asl. numpy_eigen. https://github.com/ethz-asl/numpy_eigen, 2023-11-13/2024-07-28. (commit ID: f63b1df)