天天看点

CMake error with move_base_msgs

在ROS-SLAM navigation模块的学习过程中,编译程序过程中报错,如下:

CMake Warning at /opt/ros/kinetic/share/catkin/cmake/catkinConfig.cmake:76 (find_package):
  Could not find a package configuration file provided by "move_base_msgs"
  with any of the following names:

    move_base_msgsConfig.cmake
    move_base_msgs-config.cmake

  Add the installation prefix of "move_base_msgs" to CMAKE_PREFIX_PATH or set
  "move_base_msgs_DIR" to a directory containing one of the above files.  If
  "move_base_msgs" provides a separate development package or SDK, be sure it
  has been installed.

           

打开一个新的终端,输入

rospack find move_base_msgs
           
CMake error with move_base_msgs

缺啥补啥,查询了要安装的包,开始安装,继续输入指令:

sudo apt-get install ros-kinetic-navigation