Skip to main content

URML

A small, opinionated, human-readable language for describing robot intent.

urml.dev


ROS 2 Reference Runtime

Status: Phase 1 in flight. Skeleton + substrate Protocol + hermetic MockROSAdapter + end-to-end red-mug execution + full composition (Sequence + Branch + Parallel + Retry) landed at 0.1.0a0 (pre-alpha). The real rclpy-backed adapter is the next milestone.

What this is

The first URML reference runtime. Translates a validated URML program into ROS 2 actions, services, and topics; honors declared capabilities and the active safety envelope at every step.

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

  • ROS 2 (Humble, Iron, Jazzy, and later LTS releases). The runtime tracks LTS releases.
  • Nav2 for navigation primitives (move_to).
  • MoveIt 2 for manipulation primitives (grasp, arm control).
  • Perception pipelines per profile (object detection for detect).

Language

  • C++17 for nodes on the critical path (anything per-tick or per-message).
  • Python for orchestration, the URML-to-ROS-2 compiler, tests, and the bridge to the validator.

Both follow the conventions in CLAUDE.md §Working Conventions — type annotations, mypy --strict for Python, concepts where reasonable for C++.

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 ships its declared conformance in a CONFORMANCE.md file alongside this README when the first version cuts. Example:

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

Architecture (planned)

The runtime is a thin Layer-0 translator with three responsibilities:

  1. 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 returns the structured error to whatever produced the program (often the LLM bridge).
  2. Translate. Compile each primitive into its ROS-2 equivalent: move_to(kitchen) becomes a Nav2 NavigateToPose goal; grasp(target, force: gentle) becomes a MoveIt 2 plan with a configured gripper command; detect(object: mug) becomes a perception-pipeline query.
  3. Honor composition. Implement Layer-3 sequence / branch / parallel / retry / on-error against ROS-2 lifecycle and action semantics.

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.

Core Commitment

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.

Metadata

Release files for urml-ros2-runtime 0.5.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for urml-ros2-runtime 0.5.1
File Size Uploaded Provenance Actions
urml_ros2_runtime-0.5.1.tar.gz 120.1 kB Without provenance Details for urml_ros2_runtime-0.5.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for urml-ros2-runtime 0.5.1
File Interpreter ABI Platform Actions
urml_ros2_runtime-0.5.1-py3-none-any.whl Python 3 none any Details for urml_ros2_runtime-0.5.1-py3-none-any.whl

Total release size: 197.8 kB

Release files / urml_ros2_runtime-0.5.1.tar.gz

Download URL urml_ros2_runtime-0.5.1.tar.gz
Size 120.1 kB
Tags Source
SHA-256 checksum
How to use checksums
01295bf9ef05de69580f81f50f174308f21329683d81a728409b2bb5d0b0aa3a
BLAKE2b-256 checksum
How to use checksums
a70c6254d361e66c6aec65c4fe58320b517add2aa4bc3b6f6b881ec6927c03d6
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.1-py3-none-any.whl

Download URL urml_ros2_runtime-0.5.1-py3-none-any.whl
Size 77.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f9a10d5bbd4e98eeb69942d6e6edaa4c07f9f8130f5d8b32953c2b7c3b2c8b86
BLAKE2b-256 checksum
How to use checksums
b8dfa9a8bdd2ddc9c234359652e85134bb01ffd30e2808eae810562575b79379
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.1

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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page