Udemy
Turn what you know into an opportunity and reach millions around the world.
Learn More
Your cart is empty.
Keep shopping
ROS 2 Robotics DevOps: Docker, CI/CD and Fleet Deployment
New
4 students

ROS 2 Robotics DevOps: Docker, CI/CD and Fleet Deployment

Containerise ROS 2, build it in CI, cross-compile for ARM, boot it with systemd, update a fleet and roll back safely.
Last updated 11/2026
English

What you'll learn

  • Write a ROS 2 Dockerfile that builds a real colcon workspace, and know why each line is in that order
  • Cut image size and rebuild time with multi-stage builds and correct layer ordering, measured not guessed
  • Run a multi-node stack with Compose, and get DDS discovery working across containers
  • Build and test ROS 2 in CI, including caching the underlay and reading a failed run
  • Test nodes with no robot attached: unit tests, launch tests, faked sensors and bag regression
  • Cross-compile for ARM and Jetson, and know the real cost of QEMU versus native runners
  • Start a robot stack at boot with systemd, with restart policy and watchdogs that behave on a power cut
  • Ship an over-the-air update to a fleet, verify it, and roll it back automatically when it fails
  • Get metrics, logs and alerts off a robot so you can tell which one is broken without driving to it
  • Manage per-robot config and secrets across a fleet without hand-editing machines

Course content

9 sections • 89 lectures • 6h 55m total length
  • 1.1 The Works-on-my-laptop Problem4:43

    Code and exercise for this section: Resources tab, s01_containers.zip.

  • 1.2 Volumes: What Survives a Restart4:37
  • 1.3 Your First ROS 2 Dockerfile4:48
  • 1.4 Layer Caching, Measured4:56
  • 1.5 Multi-stage Builds That Actually Run4:44
  • 1.6 Dockerignore and the 141 MB Context5:00
  • 1.7 Choosing a Base Image4:56
  • 1.8 Running Containers4:44
  • 1.9 Debugging Containers4:57
  • 1.10 Tags and Digests4:45

Requirements

  • You can write and run a basic ROS 2 node in Python or C++
  • Comfortable on the Linux command line
  • Docker installed; everything else is installed on screen
  • No robot hardware required: the whole course runs in simulation and containers

Description

This course contains the use of artificial intelligence.

Most ROS 2 courses stop at the point where the code runs on your laptop. This one starts there. It is about everything between a node that works on your machine and a fleet of robots running that node in the field, where you cannot plug in a keyboard and a bad update means a van journey.

Nothing here is a slide of advice. Every claim is run, measured and shown. You will watch a naive ROS 2 image go from 897.5 MB to 492.1 MB with a multi-stage build, see a cold build drop from 21.55s to 9.35s, and see why one line in the wrong order turns a 1.79s rebuild into a 9.39s one.

What the course covers, in nine sections:

  • Containers for ROS 2 - Dockerfiles that build a real package, layer caching, multi-stage builds, base image choice, tags and digests

  • Compose and multi-node systems - several nodes as one stack, DDS across containers, host vs bridge networking, domain IDs, recording bags

  • CI for ROS 2 - colcon in CI, caching the underlay, matrix builds, linting, build and push, branch protection, reading a failed run

  • Testing - unit tests with no robot, launch testing, faking sensors, bag regression, timing and deadlines, flaky tests, coverage

  • Cross-compiling - x86 to ARM, buildx and QEMU, measuring the penalty, native runners, multiarch manifests, Jetson and CUDA

  • Boot and systemd - unit files, restart policy, start order and hardware, logs and disk, device permissions, watchdogs, resource limits

  • OTA and rollback - pull-based updates, staged rollout, health checks, automatic rollback, updating mid-mission, migrations, signing

  • Fleet observability - which robot is broken, metrics off the robot, Prometheus exporters, dashboards, alerting, log shipping, bag triage, remote access, post-incident

  • Multi-robot - one robot to a fleet, Open-RMF, fleet adapters, per-robot config, secrets, fleet-wide upgrades, what it costs

What you get: a downloadable asset pack with the runnable Dockerfiles, compose files, systemd units and CI configs used on screen, so you can reproduce every measurement rather than take my word for it.

What this course is not: it is not a Docker fundamentals course that happens to mention robots, and it is not a slideshow of best practices. If you have never written a ROS 2 node, start elsewhere and come back.

Who this course is for:

  • ROS 2 developers whose code works locally and now has to run on a real robot
  • Robotics engineers who have been handed deployment and have no DevOps background
  • Teams moving from one robot to a fleet and hitting update, config and observability problems
  • Backend or DevOps engineers moving into robotics who want the ROS 2 specifics