Declarative ROS 2 Launch: YAML, XML and Cleaner Python Patterns

A concept guide to writing cleaner ROS 2 launch files: the frontends versus the Python API, what you give up, migration tactics, extension points and where launch tooling is heading.

In this article

  • Key idea
  • When to use it
  • The exercise
  • How we ended up here
  • Why declarative is better
  • Migrating without breaking users
  • If you must keep writing Python launch
  • Extending launch for the frontends
  • The ROS Graph working group
  • Takeaways
  • Our take: where this fits
  • Further reading