当前位置:网站首页>Analysis of startup process of gazebo multi computer simulation
Analysis of startup process of gazebo multi computer simulation
2022-06-30 06:19:00 【Smoking hot】
The website links
The image below shows px4_sitl Connection mode with each module .
Systematic API/Offboard,GCS Partially through UDP Connect , Can run on the same computer or another computer on the same network .
The emulator is partially via local TCP port 4560 And PX4_sitl Connected to a . Then the simulator uses Simulator MAVLink API And PX4 Exchange information .

1. Gazebo Model file
1)gazebo The model is defined as xacro file ,xacro Files can be used to generate urdf file . Path as follows :
Every gazebo The model should have a name mavlink_udp_port Parameters of , It defines the Gazebo And PX4 Node communication UDP port . Model xacro The file will be used to generate the... Containing your choice UDP Port of urdf Model . To define the UDP port , Please set... For each vehicle in the startup file mavlink_udp_port, See here for an example .
2. px4_sitl
1)px4_sitl adopt gazebo Defined in the model mavlink_udp_port And Gazebo Simulator communication .
2) stay PX4 SITL app End settings UDP port , You need to set... In the startup file SITL_UDP_PRT Parameters , Match the previous discussion mavlink_udp_port.
Each aircraft corresponds to a startup file rcs,rcs It contains px4 Parameters of , Path as follows :

param set SITL_UDP_PRT 14562
3)launch Start file in file rcs The path is based on the vehicle and ID Parameter generated , As shown below :
arg name=“rcS” value=" ( f i n d p x 4 ) / p o s i x − c o n f i g s / S I T L / i n i t / (find px4)/posix-configs/SITL/init/ (findpx4)/posix−configs/SITL/init/(arg est)/KaTeX parse error: Expected group after '_' at position 14: (arg vehicle)_̲(arg ID)"
3. MAVROS
- mavros Nodes can be set separately in launch In file , As shown below :

2) If you want to use ROS Control drones , You must be in the boot file rcs Set up independent MAVLink stream Port number
This port number must be the same as the boot port number mavros Of launch The port number in the file is consistent ,

边栏推荐
- 文件操作IO-Part1
- Installation and initialization of MariaDB database
- Potential bottleneck of redis
- A complete performance test process
- Notes of the first week of 2021 Chengdu Arts and Sciences cloud computing intensive training class
- ES6 array traversal and Es5 array traversal
- 关于Glide加载图片模糊不清楚
- VLAN access mode
- Simple example of class template
- [database] transaction
猜你喜欢
随机推荐
Learn fpga---ram IP core and key parameters from the bottom structure
[openstack]-01- basic introduction
ini解析学习文档
Wechat applet mall project
Feisheng: Based on the Chinese word breaker ik-2 ways to build custom hot word separators Showcase & pit arrangement Showtime
Who doesn't want a blog site of their own - build a blog site WordPress
Unable to read file for extraction: gdx64. dll
Idea run SQL file
46. full arrangement -dfs double hundred code
Docker is equipped with the latest MySQL image
One sentence introduction to Trojan horse
ES6 array traversal and Es5 array traversal
Gestion des utilisateurs de la base de données MySQL
Mysql database learning notes - foreign keys, table connections, subqueries, and indexes for MySQL multi table queries
JS prototype chain object function relationship
How does Altium designer hide some temporarily unnecessary classes, such as GND
To: k210 realizes face recognition (code interpretation attached)
requests. The difference between session () sending requests and using requests to send requests directly
观察者模式、状态模式在实际工作中的使用
Switch must be better than if Else fast








