CMake error with move_base_msgs問題解決


錯誤

    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

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM