catkin_make时候出现下列错误:
-- Could not find the required component 'rail_manipulation_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/indigo/share/catkin/cmake/catkinConfig.cmake:83 (find_package):
Could not find a package configuration file provided by
"rail_manipulation_msgs" with any of the following names:
rail_manipulation_msgsConfig.cmake
rail_manipulation_msgs-config.cmake
Add the installation prefix of "rail_manipulation_msgs" to
CMAKE_PREFIX_PATH or set "rail_manipulation_msgs_DIR" to a directory
containing one of the above files. If "rail_manipulation_msgs" provides a
separate development package or SDK, be sure it has been installed.
看错误提示,少了rail_manipulation_msgs这个组件,执行指令:
sudo apt-get install ros-indigo-rail-manipulation-msgs
再次catkin_make
这个错误没有了。
但是,
新的,类似的错误出现了:
-- Could not find the required component 'controller_manager'. 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/indigo/share/catkin/cmake/catkinConfig.cmake:83 (find_package):
Could not find a package configuration file provided by
"controller_manager" with any of the following names:
controller_managerConfig.cmake
controller_manager-config.cmake
Add the installation prefix of "controller_manager" to CMAKE_PREFIX_PATH or
set "controller_manager_DIR" to a directory containing one of the above
files. If "controller_manager" provides a separate development package or
SDK, be sure it has been installed.
这次是少了controller_manager组件
同样的思路,安装缺失的组件
输入:
sudo apt-get install ros-indigo-controller-manager
问题解决。