参考:
https://codeleading.com/article/25476530064/
https://zhuanlan.zhihu.com/p/595144759?utm_id=0
源码安装mavros 二次开发
sudo apt-get install python3-wstool
mkdir -p ~/catkin_ws/src
cd ~/catkin_ws
catkin init
wstool init src
sudo apt-get install python3-catkin-tools python3-rosinstall-generator -y
注意,后面的操作都在catkin_ws目录下执行
wstool init src
rosins