ROS 2 Diagnostics Done Well: Packages, Levels and Design Rules

A concept guide to ROS diagnostics: the packages in the repository, how to choose metrics and levels, how diagnostics differ from logs and bags, and the debate over using them functionally.

In this article

  • Key idea and when to use it
  • What the diagnostics repository contains
  • Design rules for useful diagnostics
  • How diagnostics differ from logging, bags and tests
  • The debated anti-pattern: using diagnostics functionally
  • Q and A highlights
  • Our take: where this fits
  • Further reading
  • My commentary: a starter policy