ROS 相關問題記錄

1、卸載ROS

sudo apt-get remove -f ros-<distro>-desktop-full
sudo apt-get remove -f ros-<distro>-*
sudo rm -r /opt/ros/<distro>/

2、<AAA>_msgs can't be found

錯誤:

CMake Error at /opt/ros/indigo/share/catkin/cmake/catkinConfig.cmake:83 (find_package):
  Could not find a package configuration file provided by "<AAA>_msgs" with
  any of the following names:

    <AAA>_msgsConfig.cmake
    <AAA>_msgs-config.cmake

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

原因:可能是版本問題

解決:1)修改cmakelist

                    將find_package中<AAA>_msgs 改爲 message_generation

                    將catkin_package中<AAA>_msgs 改爲 message_runtime        

           2 )對應修改.xml

           3 )將使用到<AAA>_msgs 的頭文件或源文件中的<AAA>_msgs改爲該包/工程名(project name)       

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章