
Download cortex-drones-assets-v12.zip below. It is the only file you need.
sim/ Docker stack: ArduPilot SITL + Gazebo Harmonic, the perimeter world, the Iris airframepackages/ the six ROS 2 packages from Sections 3 and 4, buildable with colconros2/ the seven standalone mission scripts from Sections 9 to 13launch/ MAVROS bringup, TF config, RViz2 layoutStart it: cd sim && ./run.sh up, then ./run.sh status. Wait for a GPS fix (fix_type 6, 10 sats) before flying.
Build the packages: mkdir -p ~/drone_ws/src && cp -r packages/* ~/drone_ws/src/, then cd ~/drone_ws && colcon build.
The README inside maps every file to the lecture that builds it. It also lists ros-<distro>-mavros and its GeographicLib datasets as a Requirement, since anything under packages/ that imports mavros_msgs (including 3.5 and 3.10) needs it.
v12: QGroundControl now connects by itself, and there is a Gazebo window command. If you have v11 or earlier, replace it. With ./run.sh gui, MAVProxy now pushes the telemetry to the QGroundControl container, which was previously waiting for a connection that never came. New: ./run.sh gazebo-gui opens the Gazebo window on your display (the world itself runs without one). It needs DISPLAY set in your shell and the container created with it, so run ./run.sh down then ./run.sh up after setting it. On WSL with WSLg, export DISPLAY=:0 is usually all it takes.
v11 fixed the QGroundControl container exiting at once. If you have v10 or earlier, replace it. QGroundControl refuses to run as root, and the container ran as root, so ./run.sh gui started and stopped immediately with "You are running QGroundControl as root". The image now runs as an unprivileged user and sets a UTF-8 locale. It also was missing libxcb-cursor0, which Qt needs to open its window. v11 includes everything from v10.
v10 fixed ./run.sh up never finishing. If you have v9 or earlier, replace it. Two bugs. First, up waited for the words Detected vehicle in the ArduCopter log, but those words are printed by MAVProxy, and ArduCopter pauses at Waiting for connection until MAVProxy connects, so the wait could never succeed. It now waits for ArduCopter's own SERIAL0 on TCP port line, starts MAVProxy, then confirms the heartbeat in the MAVProxy log and tells you whether it is flowing. Second, ArduCopter was started with a detached docker compose exec that had a pseudo terminal attached, and it could vanish with no log line and no process left. All three detached launches now use the no-TTY flag. ./run.sh status now reads the heartbeat from the MAVProxy log.
v9 fixed the SITL launch diagnostics. If you have v8 or earlier, replace it. An empty arducopter log used to be reported as "SITL started and died", but it is a TRANSIENT state: resolving the gazebo container can block for ten seconds, and the launch wrote nothing before that. The log now always starts with a resolving gazebo line and a timestamp, names any failing precondition by name, and records the exit code if SITL quits. The readiness wait covers that ten second timeout and stops immediately on a FATAL line instead of waiting out the clock. New: run the script with the sitl-debug argument to run SITL in the foreground with no redirect at all.
v8 fixed three things that stopped the stack building, starting or connecting.
./run.sh gui failed with 403 Forbidden while downloading the AppImage: QGroundControl withdrew that CDN path, so it was dead for everyone, not just you. It now pulls from the official GitHub release. The base image also moved from ubuntu:22.04 to ubuntu:24.04, because current QGroundControl needs GLIBC 2.38 and 22.04 ships 2.35: with only the URL fixed it downloaded and then died with 31 "version not found" errors. Two libraries were added for the same reason./mavros topic stayed silent. If you are on lecture 3.5 (altitude_hold_demo) or 3.10 (takeoff_mavros) and your topics are empty, this is why./mavros topics several steps later. One of the two failure modes also produced no log file at all, which is indistinguishable from never having run. The launch now always writes its log and names what failed, and up stops instead of continuing. If your dc-ardupilot container is idle and /tmp is empty, that is this bug, and it usually means the image carrying the tag is stale: rebuild with docker compose build --no-cache ardupilot.One thing that is not a bug: before you run ./run.sh up, the dc-ardupilot container has no ArduCopter process in it and docker logs is empty. That is correct. The container's command is just bash; run.sh up starts the firmware afterwards, once it has cleared the stale eeprom.bin and waited for the Gazebo handshake. Check it with ./run.sh status. Do not run sim_vehicle.py from lecture 2.7 inside this container: that is the native workflow, and this stack starts the SITL binary directly so it can point --sim-address at the Gazebo container.
All three bugs were reported by students in this course's Q&A. Thank you, please keep them coming.
This course contains the use of artificial intelligence.
Narrated with a synthetic voice. The robotics, the code and every measured result are the instructor's, produced by running the tools shown on screen. If you need a human instructor on camera, this course is not for you.
Ever wondered how a drone holds a precise altitude while wind pushes it sideways, plans a survey that covers an entire perimeter without wasting a single second of battery, and tells an intruder apart
from a fence post? In this course, you'll build and fly a fully simulated autonomous drone from the ground up, using the exact industrial stack real aerial robotics teams run: ROS2 Jazzy, Gazebo Harmonic,
ArduPilot SITL, and QGroundControl.
This isn't a vibe-coding course. Every hard topic is taught in three layers: the intuition (a picture or a live sim demo), the numbers (the actual math, derived plainly, worked on screen term by term),
and the code/config (how it maps to ROS2, Gazebo, and ArduPilot, and what breaks when you change it).
You'll start from zero installing ROS2, Gazebo, and Docker and work up through:
- Core ROS2 concepts: nodes, topics, services, parameters, launch files, TF2 gimbal frames, and DDS/QoS
- Reading and modifying a real multirotor's URDF/Xacro description, including mass, inertia, and collision physics
- Standing up the same Dockerized ArduPilot + Gazebo + QGroundControl stack used in real aerial robotics
- Control theory taught properly: state-space modeling, PID derived from scratch, cascaded loops, and Bode intuition
- The real aerodynamics at play: momentum theory, blade element theory, power curves, and thrust-to-weight
- Motor mixing across 6 degrees of freedom, flight modes, and wind disturbance rejection
- State estimation with GPS trilateration and an Extended Kalman Filter, plus GPS-denied flight using optical flow
- Coverage geometry: the boustrophedon sweep derived from camera footprint and altitude, and geofence enforcement in code
- Training and evaluating a YOLO-based object detector for aerial intrusion detection
- Swarm coordination as a real distributed-systems problem: consensus, task allocation, collision avoidance, and communication constraints
- A capstone mission where you fuse piloting, coverage, detection, and multi-drone handover into one autonomous run you own end-to-end
Along the way I share real war stories from building actual autonomous vehicles: a detector that flagged a fence post as a person, GPU render crashes, geofences that silently refuse commands, and a fleet
handover that left a coverage gap.
By the end, you'll have hands-on, physics-grounded experience with the same tools and techniques used in real aerial robotics and physical AI, a strong foundation for further study or a portfolio-ready
capstone project.