Simulation using Offboard Control
Run simulations in Offboard mode.
Firstly, follow this page to put the drone in offboard control mode through PX4:
The following page shows how to run the drone in offboard control using ROS:
PX4 Development | PX4 User Guide
To run a simulation using Gazebo, enter the following commands in your terminal:
cd <path_to_Firmware>/Firmware
make posix_sitl_default gazebo
This will bring up the PX4 shell:
[init] shell id: 140735313310464
[init] task name: px4
______ __ __ ___
| ___ \ \ \ / / / |
| |_/ / \ V / / /| |
| __/ / \ / /_| |
| | / /^\ \ \___ |
\_| \/ \/ |_/
px4 starting.
pxh>
Type help for more information on the PX4 shell and its commands.
For further instructions follow this page:
PX4 Development | PX4 User Guide
Copy link