Tutorial

ROS 2 Basics: Nodes, Topics & Services

Learn the core ideas of ROS 2 by building a tiny publisher, subscriber and service you can run on any laptop.

ROS 2 looks intimidating until you see that it is mostly one idea: small programs that pass messages to each other. This tutorial builds the smallest useful example of each core concept so the vocabulary makes sense before you touch a real robot.

Everything runs on a laptop with no hardware required.

What You'll Cover

  1. 01 Why robots use middleware
  2. 02 Installing ROS 2 and the workspace layout
  3. 03 Writing a publisher node
  4. 04 Writing a subscriber node
  5. 05 Services and parameters
  6. 06 Launch files
  7. 07 Visualising data with rqt and RViz

← Back to All Tutorials

Got a Robot Idea or Question?

Tell us what you're building — we'd love to hear about it.

Get in Touch →