报错信息
在编译的时候出现以下报错信息:
CMake Error at /opt/ros/noetic/share/catkin/cmake/catkinConfig.cmake:83 (find_package):
Could not find a package configuration file provided by
"moveit_visual_tools" with any of the following names:
moveit_visual_toolsConfig.cmake
moveit_visual_tools-config.cmake
Add the installation prefix of "moveit_visual_tools" to CMAKE_PREFIX_PATH
or set "moveit_visual_tools_DIR" to a directory containing one of the above
files. If "moveit_visual_tools" provides a separate development package or
SDK, be sure it has been installed.
Call Stack (most recent call first):
mutifingerhand_moveit_demo/CMakeLists.txt:4 (find_package)
报错原因
缺失相应的包。
解决方法
终端运行,安装缺失的包即可。
sudo apt-get install ros-noetic-moveit-visual-tools
安装成功之后再重新编译catkin_make即可成功编译。