Can the UAV Toolbox Support Package for PX4 Autopilots be used with px4 SITL?

조회 수: 25 (최근 30일)
I wanted to modify the code for PX4 controller and then use the build firmware with gazebo. Is it possible to do? So, can the UAV Toolbox Support Package for PX4 Autopilots be used with px4 SITL? Also, if yes, are there any tutorials for the same?

답변 (2개)

Ankur Bose
Ankur Bose 2021년 10월 19일
The UAV Toolbox Support Package for PX4 Autopilots supports PX4 SITL. See below MATLAB documentations and examples
We support the low fidelity jMAVSim Simulator or you can use the plant designed in Simulink. If you need Gazebo,
  • Build the Simulink model as documented above.
  • Close jMAVSim
  • Build the firmware with gazebo as input (make px4_sitl gazebo)
  댓글 수: 5
Sebast
Sebast 2025년 10월 31일
@Ankur Bose do I build the gazebo build 'make px4_sitl gazebo' seperate? So I run the simulation with 'Run with IO' and then I open a terminal in enter there 'make px4_sitl gazebo'' or kann I manipualte the 'make' command in Matlab/Simulink so the Simulation will open at the start up?
Ankur Bose
Ankur Bose 2025년 11월 5일
@Sebast, Since R2024b, the SITL build from PX4 hardware support package by default uses SIH, which means that the physics is already contained inside the PX4 executable. If you want Gazebo, you need to run ''make px4_sitl gazebo' again in WSL after code-generation from Simulink is completed

댓글을 달려면 로그인하십시오.


John conner
John conner 2024년 2월 28일
yes it is possible.

제품


릴리스

R2021a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by