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

13 visualizzazioni (ultimi 30 giorni)
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?

Risposte (2)

Ankur Bose
Ankur Bose il 19 Ott 2021
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)
  3 Commenti
Apostel
Apostel il 23 Giu 2022
Modificato: Apostel il 24 Giu 2022
Hi,
I tried to read out uORB messages and faced @fatih ozkan's issue. I solved the problem by first launching the ROS/Gazebo environment, i.e,
make px4_sitl_default gazebo
and then (afterwards) starting the time unlimited simulation in Simulink. Apparently the start-up order is important here.
Best,
Apostel
fatih ozkan
fatih ozkan il 28 Giu 2022
Hello,
Thank you for your feedback. After trying few things i could run the gazebo model with simulink on px4. But i did it with just connecting option on Hardware section. Are you managing starting with Start button or Step by Step Connect button?
Regards,
Fatih

Accedi per commentare.


John conner
John conner il 28 Feb 2024
yes it is possible.

Prodotti


Release

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by