我在我的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.
有什么想法吗?