类似Could not find a package configuration file provided by “nav_core“ with any of the following names
报错
Errors << gazebo_plugins:cmake /home/zhangjiabao/catkin_ws/logs/gazebo_plugins/build.cmake.002.log
CMake Error at /opt/ros/noetic/share/catkin/cmake/catkinConfig.cmake:83 (find_package):
Could not find a package configuration file provided by "nav_msgs" with any
of the following names:
nav_msgsConfig.cmake
nav_msgs-config.cmake
Add the installation prefix of "nav_msgs" to CMAKE_PREFIX_PATH or set
"nav_msgs_DIR" to a directory containing one of the above files. If
"nav_msgs" provides a separate development package or SDK, be sure it has
been installed.
解决方法
sudo apt-get install ros-noetic-moveit
sudo apt-get install ros-noetic-gazebo-ros-pkgs ros-noetic-gazebo-ros-control