今天爱分享给大家带来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
缺啥补啥,查询了要安装的包,开始安装,继续输入指令:
sudo apt-get install ros-kinetic-navigation
原文链接:https://blog.itblood.com/906.html,转载请注明出处。

![虚拟少女开发计划V1.5.2 官方中文步兵版[更新][电脑/2.4G] [3D互动SLG/中文/动态]](/wp-content/uploads/replace/2025/10/08/582ca2f8cd4fb1929555defad5c5a224.webp)