OpenSMI-ROS2
OpenSMI-ROS2 serves a ROS 2 system as an OPC UA server. It builds on opensmi.server and the SmartFactory-KL SkillSet information model, so an OPC UA client sees a robot as a Machine with Components that carry Skills, Methods and Monitoring variables instead of a list of topics, services and actions.
You choose what to expose by declaring Bindings on a Component, in Python or in one TOML file. A Binding ties one ROS 2 topic, service, action, parameter set, lifecycle node, TF tree or diagnostics topic to its place in the OPC UA address space.
OpenSMI-ROS2 is the project name. The Python distribution and the command-line executable are named
opensmi-ros2, and the public Python namespace is opensmi.ros2. A Binding maps a ROS 2 interface to
an OPC UA representation; docs/bindings.md lists the eight kinds.
Features
| ROS 2 side | OPC UA side | Direction |
|---|---|---|
| Topic | Monitoring variables | ROS 2 to OPC UA |
| Topic | Skill that publishes while it runs | OPC UA to ROS 2 |
| Service | Method | OPC UA to ROS 2 |
| Action | Skill with feedback and a Result | OPC UA to ROS 2 |
| Lifecycle node or lifecycle manager | StartupSkill | both |
| TF tree | Locations inside a SpatialObject (OPC 10000-210, Relative Spatial Location) | both, per frame |
/diagnostics |
One member per diagnostic id, and an event per level change | ROS 2 to OPC UA |
| A node's ROS 2 parameters | Writable Parameters | both |
A whole server starts from one TOML file with opensmi-ros2 serve, and every Machine carries a
ROS2Introspection Component that lists the ROS 2 graph. The architecture
page has the rest.
Quick start
You need Linux, ROS 2 Jazzy and Python 3.11 or newer. From a clone:
. /opt/ros/jazzy/setup.bash
python3 -m venv --system-site-packages .venv
. .venv/bin/activate
python -m pip install -c constraints.txt -e .
Keep the -c constraints.txt: it pins the opensmi versions the code is tested against. Then save
this as machine.toml:
[machine]
name = "Robot"
[machine.identification]
serial_number = "0001"
manufacturer = "Example"
product_instance_uri = "urn:example:robot"
[[component]]
name = "Platform"
[component.identification]
serial_number = "0001-platform"
manufacturer = "Example"
[[component.monitoring]]
name = "Odom"
path = "/odom"
message_type = "nav_msgs/msg/Odometry"
and start the server:
opensmi-ros2 serve machine.toml
It listens on opc.tcp://localhost:4841/server, and the odometry is the variable
Platform/Monitoring/Odom. Getting started explains the checks and what
you see in a client. To operate a Machine from a client, with the Lock, a Skill and its errors, run the
script in the client quickstart.
Examples
examples/ holds the example Machine in TOML and Python, the Machine and
client of the client quickstart, and two complete simulated robots that
run in Docker with one command. Click a picture for the video of a whole run:
nav2-rox-argo |
moveit-hc10-robotiq |
|---|---|
| A Neobotix ROX Argo with Nav2 in Gazebo | A Yaskawa HC10 with a Robotiq 2F-85 and MoveIt in Gazebo |
Documentation
The documentation covers:
- Getting started: install, serve a Machine, run and stop.
- Client quickstart: a runnable OPC UA client that logs in, takes the Lock, starts a Skill and shows the errors the server answers with.
- Architecture: the two halves and the Bindings.
- Configuration: the machine file,
[ros2]and the opensmi server. - Writing a server in Python.
- Bindings: the reference for all eight kinds, with fields, rules and examples.
- Browse paths and publishing Bindings.
- Deployment: users, encryption, the ROS 2 network and the robot's own safety.
- Testing.
- Changes that break a client.
Versioning
OpenSMI-ROS2 follows Semantic Versioning. Before 1.0.0 a change that breaks the machine file, the OPC UA address space or the Python API raises the minor version and is listed in docs/migration.md; a patch release never breaks anything.
Contributing
CONTRIBUTING.md covers the setup, the checks CI runs, the rules for the public API and the commit conventions (Conventional Commits, with a changelog generated by git-cliff).
Contact
Benjamin Blumhofer, Technologie-Initiative SmartFactory KL e.V., benjamin.blumhofer@smartfactory.de. Report bugs and questions in the issue tracker.
AI disclaimer
OpenSMI-ROS2 builds on two earlier versions of a project that was written by hand. The software design, the architecture and the decisions behind it come from the maintainers. An AI coding assistant (Claude, by Anthropic) helped with the implementation. The maintainers review what is merged and are responsible for it, but code written with AI help can still contain mistakes. Test it before you rely on it, and do not run it on a real machine without safeguards.
License
OpenSMI-ROS2 is licensed under the MIT License; see LICENSES/MIT.txt. Copyright 2026 Technologie-Initiative SmartFactory KL e.V.
Some files in the repository are third-party and keep their own licences, as recorded in
REUSE.toml: the vendored ROS 2 interface definitions in catalog/packages/
(BSD-3-Clause and Apache-2.0) and the vendored ROS 2 parser in tools/catalog/_vendor/ (Apache-2.0).
The licence texts are in LICENSES/.
Metadata
Release files for OpenSMI-ROS2 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| opensmi_ros2-0.1.0.tar.gz | 2.9 MB | With provenance | Details for opensmi_ros2-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| opensmi_ros2-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for opensmi_ros2-0.1.0-py3-none-any.whl |
Total release size: 3.3 MB
Release files / opensmi_ros2-0.1.0.tar.gz
| Download URL | opensmi_ros2-0.1.0.tar.gz |
|---|---|
| Size | 2.9 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
92b7b893bfccd66bd0c4d5c9b4497533586d77e9bf7ead9e7d9106eaaf46954a
|
|
BLAKE2b-256 checksum How to use checksums |
861ef6810f1e5160c58bde554cd00bb8e137dfcf23157015d5d88e5cc6147ad9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 22, 2026.
Transparency logRelease files / opensmi_ros2-0.1.0-py3-none-any.whl
| Download URL | opensmi_ros2-0.1.0-py3-none-any.whl |
|---|---|
| Size | 329.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b26c593c87982e31e5dda8bcad9871d2cdabccb40dc2d29c273169f845a5a614
|
|
BLAKE2b-256 checksum How to use checksums |
18b388ddac44cefec0fb184ef161b9e6dd79b25b4e90f972b254ff1ffa238174
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 22, 2026.
Transparency logSecurity for OpenSMI-ROS2 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for opensmi_ros2-0.1.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 22, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.