ROS功能包在使用catkin_make编译的过程中,有时候会经常出现找不到包的情况。如下图所示:
CMake Error at vision_visp/visp_bridge/CMakeLists.txt:16 (find_package):
By not providing "FindVISP.cmake" in CMAKE_MODULE_PATH this project has
asked CMake to find a package configuration file provided by "VISP", but
CMake did not find one.
Could not find a package configuration file provided by "VISP" with any of
the following names:
VISPConfig.cmake
visp-config.cmake
Add the installation prefix of "VISP" to CMAKE_PREFIX_PATH or set
"VISP_DIR" to a directory containing one of the above files. If "VISP"
provides a separate development package or SDK, be sure it has been
installed.
这种情况是因为缺少对应的依赖包VISP,对于ubuntu16.04下的ROS kinetic,使用下面的命令便可以完成vision_visp功能包的编译。如果使用的是其他的ROS版本,将kinetic更改为对应的(melodic /noetic)即可。
sudo apt-get install ros-kinetic-visp