A small, opinionated, human-readable language for describing robot intent.
ROS 2 Reference Runtime
Status: alpha, on PyPI as urml-ros2-runtime (pip install urml-ros2-runtime). Versions are 0.x, so a release may break compatibility; the changelog says what each one changed. It ships the runtime (URMLRuntime, with sequence, branch, parallel and retry composition), the substrate Protocol every adapter implements, the hermetic MockROSAdapter, and RclpyAdapter for a real ROS 2 system. RclpyAdapter has run end to end in simulation only, through Nav2; Substrate says what it covers and what has been run.
What this is
The first URML reference runtime. Translates a validated URML program into ROS 2 actions and topics. It checks the program against the declared capabilities and the active safety envelope before the first command, and an optional envelope shield (RFC-0667) gates each step while the program runs.
ROS 2 is the first reference runtime because its community is the largest, not because it is privileged. The substrate-neutrality acid test in CLAUDE.md explicitly requires that every Layer-2 primitive be implementable on a runtime with zero ROS dependencies. This runtime is one of many possible Layer-0 targets.
Substrate
RclpyAdapter is the adapter for a real ROS 2 system. rclpy is not a dependency of this package: it comes with a ROS 2 distribution, and the adapter imports it only when constructed, so the package installs and the mock runs on a machine without ROS 2.
- ROS 2 Jazzy is the distribution the adapter is developed and tested on. Other distributions are untested.
- Nav2 for
move_toandhover(NavigateToPose),dock(DockRobot) and the waypoints of ascan. - A gripper action server for
graspandrelease(control_msgs/GripperCommand: close or open). The adapter plans no arm motion and does not call MoveIt 2. - Topics for the rest:
vision_msgsdetections fordetect, a camera image topic forcaptureandscan(photos; video is refused), sensor topics formeasure, and string topics forreport,speakandlisten.
What it does not do: the drone primitives return a not-supported failure (use urml-px4-runtime), and so does call_program until a deployment overrides it for its driver. drive, turn, look_at, gesture, plan_path, follow_trajectory, set_output and winch or latch releases need adapter extensions that RclpyAdapter does not implement; the mock does.
What has been run: unit tests against a mocked rclpy on every host, and the ros2-integration workflow (weekly and on demand), whose gazebo-e2e job drives a simulated TurtleBot 4 through Nav2 with one conformance fixture, home/nav_patrol_positive. A scan through Nav2's loopback simulator, with test publishers standing in for the camera and a sensor, was run by hand on 2026-09-29. The repository records no simulator run of gripper commands, object detection, docking or speech, and no run on a physical robot. INTEGRATION.md has the per-method mapping and the adapter configuration.
Language
Python only: the runtime, both adapters and the tests. The package ships no C++ node.
The code follows the conventions in CLAUDE.md §Working conventions: type annotations on the public API and mypy --strict.
Conformance contract
This runtime is conformant when it passes the published conformance suite at the declared URML spec versions. Conformance is per-spec-version: a runtime that passes Layer-2 v0.1 but not Layer-2 v0.2 declares conformance to v0.1 and is honest about it.
The runtime's declaration is in CONFORMANCE.md, next to this README:
declares:
layer-1-hal: 0.1.0
layer-2-primitives: 0.1.0
layer-3-behavior: 0.1.0
layer-4-nl-grammar: 0.1.0
profiles:
home: 0.1.0
drone: 0.1.0
The run behind it uses MockROSAdapter. A report produced with the mock describes the mock, so this runtime has no entry in the URML registry.
Architecture
The runtime is a thin Layer-0 translator with three responsibilities:
- Validate. Before executing anything, run the URML program through
/reference/validator/against the connected robot's capability manifest. If validation fails, the runtime refuses to execute and raisesValidationRejectedError, which carries the structured errors for whatever produced the program (often the LLM bridge). - Translate. Dispatch each primitive through one adapter method, which
RclpyAdaptermaps to ROS 2:move_to(kitchen)becomes a Nav2NavigateToPosegoal;grasp(target, force: gentle)becomes aGripperCommandgoal with that force as its maximum effort;detect(object: mug)waits for a matching detection on the perception topic. - Honor composition. Run Layer-3
sequence,branch,parallelandretrywith theon_errorpolicies (abort_and_report,continue,retry). Fleet programs (on,barrier) run throughFleetRuntime.
The validator runs in the same process as the runtime. URMLRuntime.execute re-validates every program against the manifest, envelope and policy it is given before its first adapter call, so a rejected program raises ValidationRejectedError and the adapter receives nothing. The conformance goal-line lane (python -m urml_conformance --goal-line) checks this for every rejected fixture. Skipping the check takes an explicit revalidate=False in code.
License
This runtime is licensed under the Business Source License 1.1: free for non-production use, commercial license for production (see LICENSING.md). No vendor coupling, no cloud dependency.
Related documents
/spec/layer-1-hal/: what manifests this runtime reads./spec/layer-2-primitives/: what primitives it compiles./spec/layer-3-behavior/: composition semantics it implements./conformance/: the test suite that decides conformance.
Metadata
Release files for urml-ros2-runtime 0.5.4
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 |
|---|---|---|---|---|
| urml_ros2_runtime-0.5.4.tar.gz | 124.0 kB | Without provenance | Details for urml_ros2_runtime-0.5.4.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| urml_ros2_runtime-0.5.4-py3-none-any.whl | Python 3 | none | any | Details for urml_ros2_runtime-0.5.4-py3-none-any.whl |
Total release size: 205.2 kB
Release files / urml_ros2_runtime-0.5.4.tar.gz
| Download URL | urml_ros2_runtime-0.5.4.tar.gz |
|---|---|
| Size | 124.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
fe4fe1e2c87433b32c3d4607e52650fcfc30a615685bcf147ef460026cdaf68d
|
|
BLAKE2b-256 checksum How to use checksums |
0fc3e22d6039440ea1569ba3c79017b09b33a883c43909dd9eb7219790f716eb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.16
|
Release files / urml_ros2_runtime-0.5.4-py3-none-any.whl
| Download URL | urml_ros2_runtime-0.5.4-py3-none-any.whl |
|---|---|
| Size | 81.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
275a7c50bc194a376b90c3c80b25d894703307a6a9bd2cf98f90bafe4bd95b6f
|
|
BLAKE2b-256 checksum How to use checksums |
d31506061271f6bc21e496b3c4362232fd21e1a986115ae94465d62602c9ce36
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.16
|
Security for urml-ros2-runtime 0.5.4
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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A 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.