当前位置:网站首页>2.0 detailed explanation of ROS and Px4 communication
2.0 detailed explanation of ROS and Px4 communication
2022-06-11 01:43:00 【Mbot】
**
ROS And PX4 Communication for introduction :
**
Video Explanation link :ROS And PX4 Communication for introduction
This part is mainly divided into three parts , It mainly includes ROS Configuration of the environment 、PX4 Configuration of the environment , as well as MAVROS Installation , Scholars can configure by themselves according to the following links , The complete configuration of link bits is given below , Readers can view the entire configuration process in detail , Avoid spending too much time on environment configuration .
( Be careful : The following configuration process can be realized through simulation PX4 and ROS Communication for , And complete the simple offboard Control mode , But in the process of physical connection , Still slightly different from the simulation environment , Please check this chapter carefully )
**
Simulation environment :
**
1、ROS Installation tutorial (ROS Melodic + Ubuntu18.04)
https://www.cnblogs.com/cporoske/p/11612158.html
2、[Pixhawk/PX4] Development environment construction (Ubuntu 18.04)
https://www.cnblogs.com/cporoske/p/11630426.html
3、[PX4]mavros install +offboard Control process records
https://www.cnblogs.com/cporoske/p/11641477.html
Physical part : After configuring the above environment , Can pass USB First connect the laptop to the flight control , In the process of connecting , It should be turned off QGC Ground station , Otherwise, a serial port connection conflict will occur .
Step one : Pass the assembled physical UAV USB The cable is connected to the main control end , It should be noted that , Connect PC Of USB mouth , Use as much as possible PC Self contained USB mouth , Through one turn of multiple boards , There may be a problem with the connection .
Step two : Open the terminal , Check whether flight control is recognized , Enter the command ll /dev/ttyACM*
Step three : After detection , Add permissions , Otherwise it won't start , The terminal command is as follows :
sudo chmod 777 /dev/ttyACM0
Specific permissions can be configured by yourself 
Step four : start-up mavros node , The terminal command is as follows :
roslaunch mavros px4.launch _fcu_url:=/dev/ttyACM0:57600
The baud rate can be configured after you are familiar with it , In this paper, we have 57600 For example , Need and PX4 Agreement .
After successfully starting the node , You can see the feedback version number and other information , thus , Have gone through MAVROS Realized ROS And PX4 Communication for .

**
MAVROS Introduce
**
introduction :
Realization ROS and PX4 Firmware communication requires certain protocol conversion ,PX4 It's using MAVLINK agreement , In order to realize the communication between the two , Usually use MAVROS As a bridge , Concrete MAVROS Introduce , Relevant links will be given below , What you are interested in can be studied in depth , For general use , To understand its function as a whole, just pay attention to it .
This part is mainly divided into three parts , It mainly includes ROS Configuration of the environment 、PX4 Configuration of the environment , as well as MAVROS Installation , Scholars can configure by themselves according to the following links , The complete configuration of link bits is given below , Readers can view the entire configuration process in detail , Avoid spending too much time on environment configuration .
( Be careful : The following configuration process can be realized through simulation PX4 and ROS Communication for , And complete the simple offboard Control mode , But in the process of physical connection , Still slightly different from the simulation environment , Please check this chapter carefully )
Simulation environment :
1、MAVROS brief introduction
https://www.ncnynl.com/archives/201709/2077.html
2、MAVROS Official website
http://wiki.ros.org/mavros
**
MAVROS Common topics and services
**
introduction
It's going on MAVROS Before learning , First, please ROS Do a simple study . In understanding ROS On the basis of MAVROS Learning from , Can quickly master MAVROS Development of communication protocol .
be based on ROS+PX4 Development mode , Communication between the two is indispensable , This summary mainly introduces some commonly used methods MAVROS Topics and services related to controlling UAV movement . Need a detailed and in-depth understanding , Please refer to the MAVROS Official website .
In the next summary , A specific topic will be selected for introduction , Other topics and services are essentially the same , Not much to say , Give the link directly .
1、MAVROS Common topics and service introduction
https://blog.csdn.net/qq_26550927/article/details/102993703
边栏推荐
- HandlerMethodArgumentResolver(参数解析器)的作用+使用小案例
- Detectron2 trains its own dataset and converts it to coco format
- 云呐|庆远固定资产管理及条码盘点系统
- [path planning] week 1: Path Planning open source code summary (ROS) version
- 对象存储 S3 在分布式文件系统中的应用
- Leetcode binary tree problem
- 1.6、 PX4初始化校准
- node和express实现mySql模糊搜索
- 1.2、ROS+PX4预备基础知识
- Px4 installation tutorial (VI) vertical fixed wing (tilting)
猜你喜欢

Once you know these treasure websites, you can't live without them!!!

Multi interest recall model practice | acquisition technology

項目_基於網絡爬蟲的疫情數據可視化分析

Web3 ecological decentralized financial platform sealem Finance

threejs:流光效果封装

QGC ground station tutorial

2.2、ROS+PX4仿真多点巡航飞行----正方形
![[recommended by Zhihu knowledge master] castle in UAV - focusing on the application of UAV in different technical fields](/img/c6/f1cec6de62e85de446dba7ea8675f0.jpg)
[recommended by Zhihu knowledge master] castle in UAV - focusing on the application of UAV in different technical fields

Yunna Qingyuan fixed assets management and barcode inventory system

From "0" to "tens of millions" concurrency, 14 technological innovations of Alibaba distributed architecture
随机推荐
[path planning] week 1: hodgepodge
Role of handlermethodargumentresolver + use case
PX4装机教程(六)垂起固定翼(倾转)
2022.6.6-----leetcode. seven hundred and thirty-two
Some tips for programmers to deal with stress
Brief description of custom annotations
About mobx
Multi interest recall model practice | acquisition technology
QGC ground station tutorial
ROS参数服务器
Middleware_ Redis_ 06_ Redis transactions
IRS application release 15: application security self test guide
Classic questions: 01 backpack, complete backpack, multiple backpack, two-dimensional cost Backpack
数字ic设计自学ing
Be careful, these hidden "bugs" of "array" to "collection"“
Daily problem essay | 21.11.29: use resttemplate to call external put request, and prompt '400 bad request'
2.1 ros+px4 simulation - Fixed Point flight control
Current limiting and download interface request number control
Introduction to the subsidy fund for leading technological innovation of Beijing enterprises, with a subsidy of 5million yuan
Detailed explanation of classic papers on OCR character recognition