錯誤
CMake Error at /opt/ros/groovy/share/catkin/cmake/catkinConfig.cmake:72 (find_package): Could not find a configuration file for package move_base_msgs. Set move_base_msgs_DIR to the directory containing a CMake configuration file for move_base_msgs. The file will have one of the following names: move_base_msgsConfig.cmake move_base_msgs-config.cmake Call Stack (most recent call first): simple_navigation_goals/CMakeLists.txt:7 (find_package) -- Configuring incomplete, errors occurred! Invoking "cmake" failed
這個問題是由於move_base_msgs功能包缺失引起的,我們可以用rospack find命令嘗試去尋找這個功能包
zn@zn-ThinkPad-R480:~$ rospack find move_base_msgs
/opt/ros/kinetic/share/move_base_msgs
zn@zn-ThinkPad-R480:~$
因為我已經安裝,所以會輸出功能包的路徑
如果你搜索不到,需要安裝此功能包
sudo apt-get install ros-kinetic-navigation