Skip to content

Setup instructions: PX4 SITL

arturotorresg edited this page Apr 24, 2020 · 4 revisions

UAL versions from v4.0 support PX4 v1.10.*

If you intend to use software in the loop with PX4 (for example, to simulate in Gazebo), you also need the PX4 repository. Follow the instruction to install it:

$ sudo apt install libgstreamer1.0-dev python-jinja2 python-pip
$ pip install numpy toml
$ cd ~/catkin_ws/src
$ git clone https://github.com/PX4/Firmware.git
$ cd Firmware
$ git checkout v1.10.2
$ git submodule update --init --recursive
$ make
$ make px4_sitl_default gazebo
$ cd ~/catkin_ws
$ catkin_make

You should be seeing a SITL simulation in Gazebo, but this is not what we want as it's not within ROS, so kill it and continue.

If you also want to use the simulation models provided by PX4 you can follow the installation instructions in dev.px.io. It should still work with UAL.

Clone this wiki locally