October 9, 2023

Blog

ROS2 XML Launch File Example

In this tutorial I will show you how to write, install and run a ROS2 XML launch file.

Whenever you start to have multiple nodes (with parameters, arguments, …) in your application, creating a launch file becomes an almost mandatory step to be able to scale and go beyond 2-3 nodes without creating a huge mess.

And in ROS2, you have the choice: you can create a launch file in Python, XML, and even YAML. The default was first Python, but XML is coming back strongly (XML was the default in ROS1). I’ll compare XML and Python for launch files quickly in this tutorial.

Scroll to Top