colcon-notification

0.3.1 · active · verified Thu Apr 16

colcon-notification is an extension for the `colcon` meta build tool, primarily used within the Robot Operating System (ROS) ecosystem, to provide status notifications. It enables desktop notifications and updates a status line in the terminal title during `colcon` invocations like `build` or `test`. The current version is 0.3.1, and it maintains an active development and release cadence in line with the broader `colcon` and ROS projects.

Common errors

Warnings

Install

Imports

Quickstart

colcon-notification provides event handlers for the `colcon` command-line tool. To use its features, you typically invoke `colcon` with specific `--event-handlers` arguments. `desktop_notification+` enables desktop pop-up notifications, while `status+` shows a continuously updating status line in your terminal title.

# This is not a Python import, but how to use the notification feature through colcon CLI.
# To build a workspace and enable desktop notifications:
mkdir -p ~/my_ros2_ws/src
cd ~/my_ros2_ws
# Populate src/ with colcon-compatible packages (e.g., ROS 2 examples)
# git clone https://github.com/ros2/examples src/examples

# Build with desktop notifications enabled
colcon build --event-handlers desktop_notification+

# Or to only show a status line in the terminal title
colcon build --event-handlers status+

view raw JSON →