Udemy
Turn what you know into an opportunity and reach millions around the world.
Learn More
Your cart is empty.
Keep shopping
Fly a Drone Using an LLM with ROS 2 + Gazebo
Rating: 3.9 out of 5(7 ratings)
31 students

Fly a Drone Using an LLM with ROS 2 + Gazebo

Build an LLM powered drone with ROS 2, PX4, Gazebo, Ollama and YOLO using natural-language commands and computer vision
Last updated 9/2026
English
English [Auto],

What you'll learn

  • Control a simulated drone using natural-language commands and a local LLM
  • Set up and run a PX4 drone simulation using ROS 2 Jazzy and Gazebo
  • Use YOLO and the drone camera to detect objects and react to visual observations
  • Translate English instructions into multi-step drone missions such as takeoff, search, and flight patterns

Course content

1 section • 6 lectures • 56m total length
  • Introduction2:51
  • How the LLM-Controlled Drone System Works7:36

    Learn how the complete LLM-powered drone system works using ROS 2, PX4, Gazebo, Ollama, YOLO, and computer vision. Understand how natural-language prompts are converted into drone commands, how PX4 communicates with ROS 2 through the Micro XRCE-DDS Agent, and how camera images and YOLO detections are used for autonomous drone behavior.

  • Set Up ROS 2, Gazebo, and PX412:02

    Set up the core drone simulation environment on Ubuntu 24.04 by installing and configuring ROS 2 Jazzy, Gazebo, and PX4 Autopilot. Prepare the required dependencies, connect ROS 2 with Gazebo, and get the system ready for PX4 drone simulation and later LLM-based control.

  • Test PX4 Drone Simulation with Gazebo & QGroundControl7:59

    Launch and test the PX4 drone simulation in Gazebo using the X500 drone, verify arming and takeoff, and learn how to use QGroundControl to monitor the simulated vehicle and manually control its flight.

  • Set Up Ollama and the Local LLM for Drone Control9:10

    Install Ollama and configure a local Large Language Model (LLM) for the drone project. Learn how the LLM interprets natural-language prompts and prepares them for use by the ROS 2 drone control system.

  • Control the Drone with Natural Language, YOLO, and ROS 216:38

    Launch the complete LLM-controlled drone system and control the simulated PX4 drone using natural-language prompts. Test autonomous flight patterns, multi-step missions, YOLO object detection, vision-based search and approach behaviors, and visualize the drone path using RViz, ROS 2, Gazebo, and PX4.

Requirements

  • No previous experience with ROS 2, Gazebo, PX4, or LLM-based robotics is required

Description

Learn how to build and control an AI-powered simulated drone using Large Language Models, ROS 2, PX4, Gazebo, Ollama, and YOLO.

You will be able to give instructions such as:

  • “Take off and hover at 5 meters.”

  • “Fly in a heart shape.”

  • “Search for a person, then approach the person.”

This beginner-friendly course takes you from a clean Ubuntu 24.04 installation to a complete drone system that can understand natural-language instructions, execute autonomous flight behaviors, and react to objects detected through its camera.

You will begin by setting up ROS 2 Jazzy, Gazebo, and PX4 Autopilot, then launch and test a simulated X500 drone. You will also learn how PX4 communicates with ROS 2 through the Micro XRCE-DDS Agent and how the simulated camera is bridged from Gazebo into ROS 2.

Next, you will install Ollama and run a local Large Language Model that converts simple English instructions into drone actions. Instead of writing low-level commands.

You will also integrate YOLO object detection with the drone camera, allowing the system to detect objects such as people and vehicles and use those detections during autonomous missions.

Finally, you will launch the complete LLM-controlled drone system and experiment with flight patterns, object search and approach behaviors, multi-step missions, camera visualization, and drone path visualization using RViz.

No previous experience with ROS 2, PX4, Gazebo, or LLM-based robotics is required. The course is designed to give beginners a practical robotics and AI project they can extend, demonstrate in a portfolio, or discuss during robotics and AI job interviews.

Who this course is for:

  • Beginners interested in drones, robotics, ROS 2, and AI
  • Students who want to build a practical LLM-powered drone project for their CV or portfolio
  • Robotics and AI learners who want hands-on experience with ROS 2, PX4, Gazebo, YOLO, and local LLMs