The Legible ROS 2 Node: Thin Nodes, Declared Interfaces and NoDL

How to make ROS 2 nodes easier to read and test: the thin node pattern, why a node needs a declared interface, and the Node Definition Language.

In this article

  • A node is an API with no header file
  • The thin node pattern
  • Working backwards: recovering a node's interface
  • Working forwards: declare the interface with NoDL
  • What to do in your own packages