Ubuntu18.04新装了ros,而且装的是完整版本(ros-melodic-desktop-full),在用catkin_make编译自己的代码的时候报了下面的错误:
-- Could NOT find jsk_recognition_msgs (missing: jsk_recognition_msgs_DIR)
-- Could not find the required component 'jsk_recognition_msgs'. The following CMake error indicates that you either need to install the package with the same name or change your environment so that it can be found.
CMake Error at /opt/ros/melodic/share/catkin/cmake/catkinConfig.cmake:83 (find_package):
Could not find a package configuration file provided by
"jsk_recognition_msgs" with any of the following names:
jsk_recognition_msgsConfig.cmake
jsk_recognition_msgs-config.cmake
jsk_recognition是用于JSK实验室的感知包的堆栈,说到底就是jsk_recognition这个package没有装,解决方法也比较简单手动安装。
sudo apt-get install ros-melodic-jsk-recognition-msgs
sudo apt-get install ros-melodic-jsk-rviz-plugins
但是,为什么我明明装的是完整版本的ros还是会漏掉这个package呢?很大可能是apt update部分未更新。