当前位置:网站首页>源码安装MAVROS
源码安装MAVROS
2022-06-29 17:56:00 【Mbot】
ROS melodic
ubuntu 18.04
参考:https://docs.px4.io/master/en/ros/mavros_installation.html
首先检查一下home目录下是否有.catkin_tools文件夹,如果有,就删除,否面后面编译时会报类似下面的错:
[build] Error: Unable to find source space
/home/amov/src
然后新建工作空间,名称可以自己任取
mkdir -p ~/catkin_ws/src
cd ~/catkin_ws
catkin init
wstool init src
安装ROS Python工具
sudo apt-get install python-catkin-tools python-rosinstall-generator -y
初始化源码空间
wstool init ~/catkin_ws/src
注意,后面的操作都在catkin_ws目录下执行
执行下面语句安装mavlink
rosinstall_generator --rosdistro melodic mavlink | tee /tmp/mavros.rosinstall
成功后如下:
执行下面两条语句的其中一条安装mavros
稳定版mavros
rosinstall_generator --upstream mavros | tee -a /tmp/mavros.rosinstall
最新版mavros
rosinstall_generator --upstream-development mavros | tee -a /tmp/mavros.rosinstall
成功后如下:
执行
wstool merge -t src /tmp/mavros.rosinstall
执行过程中输入y,成功后如下:
执行下面语句下载源码
wstool update -t src -j4
成功后如下:
执行
rosdep install --from-paths src --ignore-src -y
成功后如下:
执行
sudo ./src/mavros/mavros/scripts/install_geographiclib_datasets.sh
成功后如下:
执行
catkin build
成功后如下:
最后执行
source devel/setup.bash
roscd mavros
如果安装mavros安装成功的话,显示如下:
边栏推荐
- js两个一维数组合并并去除相同项(整理)
- 3H proficient in opencv (IX) - the simplest face detection
- Goldfish rhca memoirs: do447 build advanced job workflow -- create job template survey to set work variables
- C comparison of the performance of dapper efcore sqlsugar FreeSQL hisql sqlserver, an ORM framework at home and abroad
- jdbc_相关代码
- Serial port experiment based on stm32f103zet6 library function
- 分布式 | 几步快速拥有读写分离
- On adding and subtracting dates
- js两个二维数组合并并去除相同项(整理)
- 最受欢迎的30款开源软件
猜你喜欢

Kubekey2.2.1 kubernetes1.23.7 offline package production +harbor Department summer and upload image

Request header field xxxx is not allowed by Access-Control-Allow-Headers in preflight response问题

js两个二维数组合并并去除相同项(整理)

Adobe Premiere基础-不透明度(蒙版)(十一)

Adobe Premiere基础-炫酷文字快闪(十四)

Detailed introduction and Simulation of bitmap

VB.Net读写NFC Ntag标签源码

How QQ opens online customer service

Image migration and data migration synchronization of old and new servers with different Alibaba cloud accounts
MySql存储过程循环的使用分析详解
随机推荐
Jar package background startup and log output
Xiaomai technology x hologres: high availability of real-time data warehouse construction of ten billion level advertising
Adobe Premiere基础-常用的视频特效(边角定位,马赛克,模糊,锐化,手写工具,效果控件层级顺序)(十六)
Kubekey2.2.1 kubernetes1.23.7 offline package production +harbor Department summer and upload image
Maxcompute string replacement function -replace
jdbc_相关代码
Sister Juan takes you to learn database -- 5-day sprint Day1
Image feature computation and representation -- content based image retrieval
图像特征计算与表示——基于内容的图像检索
The soft youth under the blessing of devcloud makes education "smart" in the cloud
YoloV6+TensorRT+ONNX:基于WIN10+TensorRT8+YoloV6+ONNX的部署
Adobe Premiere基础-不透明度(蒙版)(十一)
Abc253 D fizzbuzz sum hard (tolerance exclusion theorem)
行程卡“摘星”热搜第一!刺激旅游产品搜索量齐上涨
软件测试——基础理论知识你都不一定看得懂
工作流模块Jar包启动报错:liquibase – Waiting for changelog lock….
Automatic software test - read SMS verification code using SMS transponder and selenium
lodash深拷贝使用
[wangdingbei 2020 Qinglong formation]areuserialz
分布式 | 几步快速拥有读写分离