Skip to content

Software

launch_frontend_py

By ROS 2 Tooling Working Groups, from github.com/ros-tooling/launch_frontend_py (opens in a new tab)

  • Middleware
  • Tool
  • Apache-2.0

A Python frontend for the ROS 2 launch system that lets launch files be written in Python with the same actions and substitutions as the XML and YAML frontends.

  • Stale. No commit in 12 months: the newest is from 22 Oct 2025.

Facts

GitHub stars
14read on 28 Nov 2026
Last update
22 Oct 2025Newest commit on main
Maintenance
Staleno commit in 12 months
Difficulty
Intermediate

Checked on GitHub on 28 Nov 2026.

Licenses

Code
Apache-2.0 (opens in a new tab)

Read by Robotheca from LICENSE (opens in a new tab) (Apache-2.0) at commit 3b15078 (opens in a new tab), on 16 Oct 2026.

Commercial use
Yes

At a glance

What it is
  • Provides a Python-language frontend to ROS 2 launch, identical in usage to the XML and YAML versions.
  • Helps teams that already rely on Python launch files, easing migration to the official frontends.
  • Offers the same concise, declarative style while keeping launch files in Python.
  • Reserved Python keywords are handled by appending an underscore, such as for_ for the for action and if_ for conditions.
  • Example usage defines arguments and executables with conditional execution via if_.

Robotheca's summary of the project's documents, not the creator's words.

Robots on Robotheca
No robot on Robotheca uses it yet.
Licence
Apache-2.0. Commercial use: Yes. Where it was read
Install
In the creator's words: The project's README (opens in a new tab)
Maintenance
Stale, last commit on 22 Oct 2025.

Use it

How to install it, in the creator's words: The project's README (opens in a new tab)

Robotheca doesn't review code. Read it before running it.

Files and versions

Facts read at commit 3b15078

Robotheca never hosts the code: each link goes to the creator's own page.

The README

The creator's own README, copied as written: README.md by ROS 2 Tooling Working Groups, at commit 3b15078, under Apache-2.0 (opens in a new tab). The original on GitHub (opens in a new tab).

Read the README here

Python frontend for ROS 2 Launch

The package launch (opens in a new tab) is the implementation, the "plumbing" of the ROS 2 launch system.

XML (opens in a new tab) and YAML (opens in a new tab) on the other hand are frontends to launch. That is, they are the intended user-facing API. However, much of the community got hooked on Python launchfiles due to early adoption when the frontends were incomplete. With that in mind, and the extensive explicit use of exact filenames and PythonLaunchDescriptionSource, migration to these frontends is difficult for packages with downstream consumers.

Enter launch_frontend_py - this package provides a Python-language frontend to launch, with identical usage to the XML and YAML versions. It provides the same benefits of conciseness, declarative style, while allowing launchfiles to stay in Python.

Usage

The available actions and substitutions are identical to XML and YAML launchfiles, with one caveat:

[!NOTE] Some launch Actions and their attributes use reserved Python keywords, the known cases are for Action and if attribute for conditions. For all cases, an underscore _ is added at the end: for_, if_.

Here is an example launchfile with a few features:

from launch_frontend_py import arg, executable, launch


def generate_launch_description():
    return launch([
        arg(name='message', default='hello world'),
        arg(name='condition', default='True'),
        executable(cmd='echo $(var message)', output='both'),
        executable(cmd='echo hello conditional', if_='$(var condition)', output='both'),
        executable(cmd='echo hello not-condition', if_='$(not $(var condition))', output='both'),
    ])
Release Status

Robotheca lists software as a reference: nothing is hosted or run here, and every fact links to where it was read.