ika-rwth-aachen/mqtt_client
ROS 2 C++ Node for bi-directionally bridging messages between ROS and MQTT
What it solves
This package bridges the gap between ROS 2 systems and the MQTT protocol. It allows ROS-based robots and devices to communicate with non-ROS systems by exchanging messages through an MQTT broker, enabling interoperability in environments where ROS is not the only software stack.
How it works
The package provides a ROS 2 component node that acts as a bridge. You configure it using YAML files to map specific ROS topics to MQTT topics and vice versa. It supports three primary modes of communication:
- ROS-to-ROS: Transmits arbitrary ROS message types between ROS systems.
- JSON: Converts ROS messages into JSON strings for non-ROS clients, or parses incoming JSON into ROS messages.
- Primitive: Exchanges simple data types (like integers, floats, or booleans) directly as strings with non-ROS devices.
Who it’s for
It is designed for robotics engineers and researchers working with ROS 2 who need to integrate their systems with external devices, sensors, or cloud services that communicate via the standard MQTT protocol.
Highlights
- Native ROS 2 component node integration.
- Supports arbitrary ROS message types.
- Configurable JSON and primitive data exchange for non-ROS interoperability.
- Built-in support for TLS/SSL encryption for secure broker connections.
- Includes message buffering capabilities for when the broker connection is interrupted.
- Available as an official ROS 2 package and via Docker.
Related
- Project
- Project
- Project
- Project