当前位置:网站首页>Px4 multi computer simulation (gazebo)
Px4 multi computer simulation (gazebo)
2022-06-25 23:41:00 【Blue sky】
Version Description :
operating system
The host machine ( Or development machine ):ubuntu server 20.0.04, thinkpad
Target machine ( Airborne computer ):ubuntu server 20.0.04, Shumei school 3b+
Flight control software :px4 autopilot 1.11.3
Simulation software :gazebo 9
Application software running environment :mavsdk
mavlink Data flow routing software :mavlink-router
The first part , Flight control application and gazebo The software simulation environment runs on the same machine
Flight controller software (PX4 Autopilot)
Simulation software (gazebo)
Flight control application software ,MAVSDK Running environment and application
All the above software runs in one machine , Here is thinkpad+ubuntu server.
1. Start on the development machine gazebo Software simulation environment
stay PX4-Autopilot Execute command under directory :
$./Tools/gazebo_sitl_multiple_run.sh -w baylands
gazebo Three four axis aircrafts appear in the simulation graphical interface
2. Launch the flight control application on the development aircraft
stay MAVSDK/examples/takeoff_land/build Execute command under directory
$./takeoff_and_land udp://:14540
from gazebo The first plane can be seen taking off in the simulation graphical interface 、 hover 、 land
stay MAVSDK/examples/multiple_drones/build Execute command under directory
$./multiple_drones udp://:14540 udp://:14541 udp://:14542
from gazebo You can see in the simulation graphical interface 3 Planes take off in turn 、 hover 、 land
The second part . The simulation environment runs on the host computer and the flight control application software runs on the Shumei school
here , The target plane is Shumei sect , It works with the host computer thinkpad Has passed between wifi The router has established a connection , And you can thinkpad On the computer through ssh Log in to Shumei sect remotely .
1. Same as the first part , Start on the host first gazebo Software simulation environment .
2. Establish a relationship between the host computer and the Shumei sect mavlink route
In the host mavlink_router Execute command under directory :
./mavlink-routerd -e 192.168.3.18:14540 0.0.0.0:14540
This order will gazebo The first aircraft used in the simulation environment udp Speak with what will be executed takeoff_and_land Application's udp Mouth to mouth ( Route up ).
Modify the parameters in the above command 14540 by 14541 It corresponds to the second plane ,14542 It corresponds to the third plane .
3. Run the flight control application on Shumei pie
stay MAVSDK/examples/takeoff_land/build Under the table of contents
Take off first command :./takeoff_and_land udp://:14540
Take off the second command :./takeoff_and_land udp://:14541
Take off the third command :./takeoff_and_land udp://:14542
stay MAVSDK/examples/multiple_drones/build Under the table of contents
Take off in turn 3 An order to fly a plane :
$./multiple_drones udp://:14540 udp://:14541 udp://:14542
边栏推荐
- Download the latest V80 version of Google Chrome
- Qt 中文和英文分别使用不同的字体
- 毕业旅行 | 伦敦5日游行程推荐
- Pointer strengthening and improvement
- Analysis on the control condition and mode of go cooperation overtime exit
- 经典图像分割网络:Unet 支持libtorch部署推理【附代码】
- Hbuilderx uses the gaude map to obtain the current location
- OpenJudge NOI 2.1 15:Counterfeit Dollar
- YUV444、YUV422、YUV420、YUV420P、YUV420SP、YV12、YU12、NV12、NV21
- 提取系统apk
猜你喜欢

BI-SQL丨存储过程(一)

实例:用C#.NET手把手教你做微信公众号开发(21)--使用微信支付线上收款:H5方式

(serial port Lora module) centrida rf-al42uh private protocol test at instruction test communication process

Uniapp -- the use of document collation and push of unipush

How does excel translate Chinese words into English automatically? This formula teaches you

Screen recording to GIF is an easy-to-use gadget, screentogif, which is free and easy to use!

经典图像分割网络:Unet 支持libtorch部署推理【附代码】

jdbc常见异常及错误解决办法汇总

The software test interview has been suspended. The interviewer always says that the logical thinking is chaotic. What should I do?

C# IO Stream 流(二)扩展类_封装器
随机推荐
UE4 learning record 2 adding skeleton, skin and motion animation to characters
OBS-Studio-27.2.4-Full-Installer-x64. Exe Download
hiberate架构介绍及环境搭建(非常详细)
Screen recording to GIF is an easy-to-use gadget, screentogif, which is free and easy to use!
经典图像分割网络:Unet 支持libtorch部署推理【附代码】
mysql
The package name of the manifest file in the library project and the app project are not the same
C2. k-LCM (hard version)-Codeforces Round #708 (Div. 2)
提取系统apk
分享一个OSGeo4W64下载好的库,基于qgis3.10的
Classic image segmentation network: UNET supports libtorch deployment reasoning [with code]
(serial port Lora module) centrida rf-al42uh private protocol test at instruction test communication process
UE4 learning records create a role and control its movement
OpenJudge NOI 2.1 15:Counterfeit Dollar
Leetcode 513. 找树左下角的值
Konva series tutorial 2: drawing graphics
Bi-sql stored procedure (I)
golang Make a list of intervals with sequential numbers
Solving typeerror: Unicode objects must be encoded before hashing
idea Kotlin版本升级