我正在为我的 C++ 项目使用 roscpp (ros indigo)。在我的 cmake 文件中,我添加了
find_package(catkin REQUIRED COMPONENTS std_msgs roscpp)
但得到以下错误:
CMake Error at /opt/ros/indigo/share/catkin/cmake/catkinConfig.cmake:
75 (find_package): Could not find a package configuration file provided
by "std_msgs" with any of the following names:
std_msgsConfig.cmake
std_msgs-config.cmake
Add the installation prefix of "std_msgs" to CMAKE_PREFIX_PATH or set
"std_msgs_DIR" to a directory containing one of the above files. If
"std_msgs" provides a separate development package or SDK, be sure it has
been installed.
有任何想法吗?