PX4 Development

Ubuntu Development Environment

On a clean Ubuntu environment (e.g., 18.04 LTS), we need to

Notes

  • ubuntu.sh is needed for both hardware and simulation

  • ubuntu_sim_ros_melodic.sharrow-up-right is not used/recommended

    • To have more flexibility, we install three parts separately: ROS, sim dependencies, and MAVROS

Gazebo SITL Simulation

In order to run PX4 in Gazebo simulation, we have three more steps.

  • build PX4 source code to generate a Iris quadrotor model in Gazebo (i.e. the target)

  • set up environment variables

  • roslaunch Gazebo simulation and run offboard control program

Build Iris quadrotor model in Gazebo

Ser up environment variables

Run Offboard Control

References

Last updated