Udemy
Turn what you know into an opportunity and reach millions around the world.
Learn More
Your cart is empty.
Keep shopping
Multi-Robot Coverage & Formation with ROS 2 Nav2
New

Multi-Robot Coverage & Formation with ROS 2 Nav2

Build a 3-robot ROS 2 Jazzy fleet: one Nav2 stack per robot, coverage planning, formation control and a costmap plugin
Created byNEXK Labs
Last updated 11/2026
English
English

What you'll learn

  • Run three TurtleBot3 robots in Gazebo Harmonic, each with its own namespaced Nav2 stack, on one shared TF tree
  • Generate a matching Gazebo world and Nav2 occupancy map from a single YAML file
  • Split a map into equal-work zones and plan boustrophedon (lawn-mower) coverage lanes with Python
  • Assign work optimally with the Hungarian algorithm and rebalance it at run time with work stealing
  • Write a coverage coordinator that drives Nav2 through action clients and handles cancels, timeouts and offline robots
  • Derive and implement a look-ahead-point (feedback linearisation) leader-follower formation controller
  • Write a C++ Nav2 costmap layer plugin so robots see each other and inflation keeps them apart
  • Debug multi-robot ROS 2 systems hop by hop: topics, TF, clocks, lifecycle nodes and parameters

Course content

11 sections • 44 lectures • 3h 22m total length
  • Course Introduction2:36

Requirements

  • Basic ROS 2 knowledge: nodes, topics, launch files and colcon
  • Comfortable reading Python; some C++ helps for the costmap plugin section
  • Ubuntu 24.04 with ROS 2 Jazzy, Nav2 and Gazebo Harmonic (installation is covered briefly)
  • A PC with a decent CPU and a GPU for Gazebo; no physical robots needed

Description

This course contains the use of artificial intelligence.

Three robots, one map, two missions. In this course you build a complete multi-robot system in ROS 2 Jazzy: three TurtleBot3 robots in Gazebo Harmonic that split up a floor and sweep every reachable square metre of it, then regroup and drive a route in a tight V formation.

Nothing here is a toy. Every line of code, every parameter and every terminal you see comes from a real, working project, recorded running on a real machine. The verified result: 100% coverage of the free floor, a 2.5 cm mean formation error through a U-turn, and zero failed Nav2 goals.

What you will build

  • A Gazebo world and a matching Nav2 map, both generated from one YAML file

  • Three namespaced TurtleBot3 robots on a single shared TF tree with prefixed frames

  • One full Nav2 stack per robot (AMCL, planner, Regulated Pure Pursuit, smoother, collision monitor) from a single parameter template

  • A coverage planner: distance transform, equal-work zones, boustrophedon lanes

  • A coverage coordinator: Hungarian assignment, work stealing, cancel handling, offline robots

  • A leader-follower formation controller based on a look-ahead point (feedback linearisation), derived step by step

  • PeerLayer, a C++ Nav2 costmap plugin that lets robots see each other

How the course works

Core lectures walk through the real source code line by line, with the maths written out and worked with real numbers. Every lecture ends with common mistakes, a hands-on exercise and key takeaways, and many include the interview questions this project is typically asked about. The final sections run the whole mission end to end, give you a debugging playbook (topics, TF, clocks, lifecycle, parameters) and explain what it takes to move the system to real robots.

Who this course is for

ROS 2 developers who have used Nav2 with one robot and want to scale to a fleet, robotics students working on multi-robot coverage or formation control, and engineers who want a complete, working multi-robot reference system they understand end to end.

Who this course is for:

  • ROS 2 developers who have used Nav2 with one robot and want to scale to a fleet
  • Robotics students working on multi-robot coverage, coordination or formation control
  • Engineers preparing multi-robot projects or robotics interviews who want a complete, working reference system