在src中删掉mavros包后编译,提示Errors << rotors_gazebo_plugins:cmake /home/liulu/catkin_ws/logs/rotors_gazebo_plugins/build.cmake.000.log WARNGAZEBO Version 7.0.0 WARNGAZEBO older than v9 detected. Autobackporting source files CMake Error at /home/liulu/catkin_ws/devel/share/yaml_cpp_catkin/cmake/yaml_cpp_catkinConfig.cmake:148 (message): Project 'rotors_gazebo_plugins' tried to find library 'yaml-cpp0.5'. The library is neither a target nor built/installed properly. Did you compile project 'yaml_cpp_catkin'? Did you find_package() it before the subdirectory containing its code is included? Call Stack (most recent call first): CMakeLists.txt:163 (find_package)
按照提示,首先升级gazebo
参考https://blog.csdn.net/riancy_riancy/article/details/84568322
在执行update的时候遇到报错ppa问题,在软件源里把相关的ppa删掉,再重新更新。
参考
https://www.cnblogs.com/long5683/p/11452567.html
https://itsfoss.com/failed-to-download-repository-information-ubuntu-13-04/
再重复安装gazebo的步骤,ok。