Skip to content

Software

bob_launch

From github.com/bob-ros2/bob_launch (opens in a new tab)

  • Middleware
  • Tool
  • Apache-2.0

A meta-launcher for ROS 2 that builds and starts whole robot graphs from YAML or JSON config files, without hand-written Python launch files.

Facts

GitHub stars
0read on 27 Nov 2026
Last update
28 Mar 2026Newest commit on main
Maintenance
Maintaineda commit in the last 12 months
Difficulty
Intermediate

Checked on GitHub on 27 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 b3a07fc (opens in a new tab), on 16 Oct 2026.

Commercial use
Yes

At a glance

What it is
  • Spawns nodes or includes other launch files according to an external configuration.
  • Can launch from a config file, a global parameter file, or a string piped in on standard input.
  • Can merge several config fragments into one pipe to compose system layers.
  • Resolves package share directory placeholders in parameters and arguments.
  • Substitutes shell-style environment variables in configuration fields, with defaults.
  • Can shut down the whole launch tree when a critical node exits, useful in Docker or CI.

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
Maintained, last commit on 28 Mar 2026.

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 b3a07fc

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 @bob-ros2, at commit b3a07fc, under Apache-2.0 (opens in a new tab). The original on GitHub (opens in a new tab).

Read the README here

ROS Package bob_launch (opens in a new tab)

(opens in a new tab) (opens in a new tab)

bob_launch is a powerful meta-launcher for ROS 2 that enables dynamic system orchestration using YAML or JSON configuration files. It allows you to define, compose, and launch complex ROS 2 graphs without writing boilerplate Python launch files.

High-Level Capabilities
  • Dynamic Orchestration: Spawn nodes or include other launch files based on external configuration.
  • Composition over Coding: Define your entire ROS system in simple YAML.
  • Streamlined Workflow: Use the launch.sh wrapper or native ROS 2 launch arguments.
  • Auto-Abort Protection: Optionally shut down the entire launch tree if any critical node exits (ideal for Docker/CI).
  • Global Parameters: Inject a shared parameter file into all nodes launched within a configuration.
  • Path Placeholders: Use //PKGSHARE/ (current node package) or //PKGSHARE:pkg/ to dynamically resolve ROS 2 package share directories in parameters and arguments.
  • Environment Substitution: Support for shell-like ${VAR} or ${VAR:-default} syntax in all configuration fields and relevant launch arguments.
Native ROS 2 Usage (Preferred)

You can call the launch file directly using standard ROS 2 launch arguments:

ros2 launch bob_launch generic.launch.py config:=my_config.yaml

To pass an optional global node parameter file:

ros2 launch bob_launch generic.launch.py config:=my_config.yaml config_nodes:=node_params.yaml

Note: You can also use the environment variable BOB_LAUNCH_CONFIG=./my_config.yaml as an alternative to the config:= argument.

Fast Execution: launch.sh

The launch.sh script is a convenient wrapper that simplifies execution by handling environment variables and temporary file management for you.

1. Launch from a file
ros2 run bob_launch launch.sh my_config.yaml
2. Launch with a global parameter file
ros2 run bob_launch launch.sh my_config.yaml global_params.yaml
3. Launch from a JSON config file
ros2 run bob_launch launch.sh my_config.json
Advanced Usage

bob_launch is designed to be highly scriptable, making it an ideal tool for AI Agents needing to spawn ROS components on the fly.

Pipe a String Directly (Dynamic Spawning)

An agent can generate a YAML string and pipe it directly to the launcher without creating a persistent file:

echo "- name: talker
  package: demo_nodes_cpp
  executable: talker" | ros2 run bob_launch launch.sh
Multi-File Composition

You can quickly composite different system "layers" (e.g., base drivers + perception + mission logic) by concatenating files into the pipe:

cat base_robot.yaml nav2_stack.yaml custom_logic.yaml | ros2 run bob_launch launch.sh
Dynamic Substitution & Placeholders

bob_launch supports powerful dynamic string substitution in all configuration fields and launcher arguments (like config:= and config_nodes:=).

Environment Variables (${VAR})

Supports shell-like syntax for dynamic values:

  • ${MYVAR}: Replaces with the value or an empty string.
  • ${MYVAR:-/default/path/}: Replaces with the value or the specified default if unset.
Path Placeholders (//PKGSHARE)

Avoid hardcoded absolute paths by dynamically resolving ROS 2 package share directories:

  • //PKGSHARE/: Resolves to the share directory of the package defined for the current entity (implicit).
  • //PKGSHARE:pkg_name/: Resolves to the share directory of pkg_name (explicit).
Combination & CLI Usage

These mechanisms can be combined and even used directly in the ros2 launch command arguments:

ros2 launch bob_launch generic.launch.py \
  config:='//PKGSHARE:my_pkg/config/${ROBOT_ENV:-dev}.yaml'

To disable environment substitution, set BOB_SUBSTITUTE_ENV_VARS=0.

Configuration Schema
Spawning Nodes
- name: usb_cam               # Optional: defaults to executable_name + random suffix
  package: usb_cam
  executable: usb_cam_node_exe
  arguments:                  # Optional: list of CLI arguments
    - --ros-args
    - /path/to/params.yaml
  respawn: false              # Optional: default is false
  respawn_delay: 2.0          # Optional: seconds to wait before respawn (default 0.0)
  prefix: 'xterm -e'          # Optional: runs node in xterm (or gdb, nice, etc.)
  parameters:                 # Optional: inline node parameters
    background_r: 255
    background_g: 0
    background_b: 0
    scalar_param: 1.5
    some_string: "hello bob"
  remappings:                 # Optional: list of pairs [old, new] or dictionary
    - ["input_topic", "/bot/input_topic"]
    - ["internal/data", "~/input_topic"]
  output: log                 # Optional: 'log' or 'screen'
Topic Remappings

Nodes can be launched with custom topic remappings using the remappings: field. You can provide them as a list of pairs (recommended for dynamic remappings) or as a dictionary.

- name: my_node
  package: my_pkg
  executable: my_exe
  remappings:
    - ["/old/chatter", "/new/chatter"]  # List of pairs [from, to]
    - ["~/status", "${STATUS_TOPIC}"]   # List format supports placeholders in both fields
    # OR Dictionary format:
    # chatter: /global/chatter          # Note: placeholders work in values only
Including Launch Files
- launch_file: 
    package_name: bob_llm
    launch_name: llm.launch.py
  launch_args:                # Optional: arguments passed to the included launch
    model: 'gpt-4'
  launch_ns: /llm_group       # Optional: pushes everything into this namespace
Advanced YAML: Anchors & Aliases

Great for reusing common namespaces or remappings across many nodes:

- &common_ns __ns:=/robot_1

- name: drive_node
  package: my_pkg
  executable: driver
  arguments: ["--ros-args", "-r", *common_ns]

- name: sensor_node
  package: my_pkg
  executable: sensor
  arguments: ["--ros-args", "-r", *common_ns]
Launch Arguments & Environment Variables
Argument / VariableDescriptionDefault
configPath to YAML/JSON config file or raw string.BOB_LAUNCH_CONFIG
config_nodesPath to an optional global parameter file.BOB_LAUNCH_CONFIG_NODES
BOB_LAUNCH_AUTOABORTEnvironment variable: if 1, shuts down if any node exits.1
BOB_SUBSTITUTE_ENV_VARSEnvironment variable: if 1, resolves ${VAR} placeholders in config.1

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