Skip to content

Software

qml6_ros2_plugin

From github.com/StefanFabian/qml6_ros2_plugin (opens in a new tab)

  • Middleware
  • Library
  • MIT

A plugin that connects QML user interfaces to ROS 2, letting QML apps talk to ROS 2 topics, services, actions and transforms. Successor to the Qt5 version.

Facts

GitHub stars
11read on 28 Nov 2026
Last update
30 Oct 2026Newest commit on rolling
Maintenance
Activea commit in the last 90 days
Difficulty
Intermediate
Hardware it needs, as the project states it
A ROS 2 environment is required when the plugin is loaded so it can load message libraries.

Checked on GitHub on 28 Nov 2026.

Licenses

Code
MIT (opens in a new tab)

Read by Robotheca from LICENSE (opens in a new tab) (MIT) at commit 98d9135 (opens in a new tab), on 31 Oct 2026.

Commercial use
Yes

At a glance

What it is
  • Provides logging from QML that reports the originating QML file and line, with adjustable logger levels.
  • Offers publishers, subscriptions, image transport subscriptions, service clients, action clients and TF transform lookups.
  • Can subscribe to any topic and message type available on the system, without knowing the type at compile time.
  • Supports querying topics, services and actions, and the Ament index.
  • Includes an example turtle control interface in the examples folder, built with TF and a velocity publisher.
  • Can be built as part of a ROS 2 workspace, or installed globally by setting the GLOBAL_INSTALL CMake option.

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

Robots on Robotheca
No robot on Robotheca uses it yet.
Licence
MIT. Commercial use: Yes. Where it was read
Install
In the creator's words: The project's README (opens in a new tab)
Maintenance
Active, last commit on 30 Oct 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 98d9135

Robotheca read the repository at two versions: the summary at aabe8e1 and the facts and the README at 98d9135 (read on 28 Nov 2026).

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 @StefanFabian, at commit 98d9135, under MIT (opens in a new tab). The original on GitHub (opens in a new tab).

Read the README here

Image: Quality Gate Status (opens in a new tab) (opens in a new tab) Image: Maintainability Rating (opens in a new tab) (opens in a new tab) Image: Reliability Rating (opens in a new tab) (opens in a new tab) Image: Security Rating (opens in a new tab) (opens in a new tab) Image: Documentation Status (opens in a new tab) (opens in a new tab)

Scientific Works

If you are using this module in a scientific context, feel free to cite this paper (opens in a new tab):

@INPROCEEDINGS{fabian2021hri,
  author = {Stefan Fabian and Oskar von Stryk},
  title = {Open-Source Tools for Efficient ROS and ROS2-based 2D Human-Robot Interface Development},
  year = {2021},
  booktitle = {2021 European Conference on Mobile Robots (ECMR)},
}

QML ROS2 Plugin

Connects QML user interfaces to the Robot Operating System 2 (ROS2). Please be aware that this loses some of the semantic information that the message type would normally provide, since you can subscribe to any message without specifying the type, and the type is only checked if you do specify it.

Currently, has support for the following:
Logging, Publisher, Subscription, ImageTransportSubscription, Service Client, Action Client, TfTransform, Ament Index, and querying topics, services, and actions.

https://github.com/StefanFabian/qml6_ros2_plugin/assets/2090520/c45280cf-24fe-4ff1-8423-30035deda10d (opens in a new tab)

This demo interface utilizes Tf and a velocity publisher to control and display the turtle demo, requiring less than 200 lines of code for the entire interface. It is available in the examples folder as turtle_demo_control.qml.

Logging

Logging is supported and correctly reports from which QML file and line the message came!

import Ros2 1.0

Item {
  function doesWork() {
    Ros2.debug("A debug message")
    // Set the logging level to Debug (default is usually Info)
    Ros2.getLogger().setLoggerLevel(Ros2LoggerLevel.Debug);
    Ros2.debug("A debug message that is actually logged.")
    Ros2.info("I have some information")
    Ros2.warn("This is the last warning")
    Ros2.error("Great! Now there's an error.")
    Ros2.fatal("I'm dead")
    Ros2.info("Just so you know, fatal does not kill a node. Though they usually die after logging fatal")
  }
  // ...
}

Check the logging example in the examples (opens in a new tab) directory!

Quickstart

Check the examples in the examples (opens in a new tab) directory for a quick introduction on how to use this module. Can be used to create a Subscription to any topic and message type that is available on your system.
The type does not need to be known at the time of compilation.

Installation

You can either build this repository as part of your ROS2 workspace as you would any other ROS2 package, or set the CMake option GLOBAL_INSTALL to ON, which installs the plugin in your global qml module directory.
Please note that the plugin will still require a ROS2 environment when loaded to be able to load the message libraries.

You can install the dependencies using rosdep:
The following command assumes you are in the src folder of your ROS 2 workspace

rosdep install --from-paths . --ignore-packages-from-source
Documentation

You can find the documentation on readthedocs.io (opens in a new tab).

Alternatively, you can follow the steps below to build it yourself.

Dependencies
  • Doxygen
  • Sphinx
  • sphinx_rtd_theme
  • Breathe

Example for Ubuntu
Install dependencies

sudo apt install doxygen python3-sphinx python3-sphinx-rtd-theme python3-breathe 
Build documentation
cd REPO/docs
make html
Known limitations
  • JavaScript doesn't have long double, hence, they are cast to double with a possible loss of precision

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