urml-vda5050-runtime 0.5.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (24) hide show
  1. urml_vda5050_runtime-0.5.0/.gitignore +117 -0
  2. urml_vda5050_runtime-0.5.0/PKG-INFO +121 -0
  3. urml_vda5050_runtime-0.5.0/README.md +87 -0
  4. urml_vda5050_runtime-0.5.0/SPEC-GAPS.md +45 -0
  5. urml_vda5050_runtime-0.5.0/pyproject.toml +77 -0
  6. urml_vda5050_runtime-0.5.0/src/urml_vda5050_runtime/__init__.py +34 -0
  7. urml_vda5050_runtime-0.5.0/src/urml_vda5050_runtime/_version.py +3 -0
  8. urml_vda5050_runtime-0.5.0/src/urml_vda5050_runtime/adapter.py +636 -0
  9. urml_vda5050_runtime-0.5.0/src/urml_vda5050_runtime/config.py +182 -0
  10. urml_vda5050_runtime-0.5.0/src/urml_vda5050_runtime/messages.py +168 -0
  11. urml_vda5050_runtime-0.5.0/src/urml_vda5050_runtime/py.typed +0 -0
  12. urml_vda5050_runtime-0.5.0/src/urml_vda5050_runtime/sim.py +265 -0
  13. urml_vda5050_runtime-0.5.0/src/urml_vda5050_runtime/transport.py +117 -0
  14. urml_vda5050_runtime-0.5.0/tests/__init__.py +0 -0
  15. urml_vda5050_runtime-0.5.0/tests/integration/__init__.py +0 -0
  16. urml_vda5050_runtime-0.5.0/tests/integration/test_live_broker.py +60 -0
  17. urml_vda5050_runtime-0.5.0/tests/test_end_to_end.py +93 -0
  18. urml_vda5050_runtime-0.5.0/tests/test_vda5050_adapter.py +455 -0
  19. urml_vda5050_runtime-0.5.0/tests/vda5050_schemas/LICENSE.txt +7 -0
  20. urml_vda5050_runtime-0.5.0/tests/vda5050_schemas/README.md +16 -0
  21. urml_vda5050_runtime-0.5.0/tests/vda5050_schemas/connection.schema +54 -0
  22. urml_vda5050_runtime-0.5.0/tests/vda5050_schemas/instantActions.schema +129 -0
  23. urml_vda5050_runtime-0.5.0/tests/vda5050_schemas/order.schema +454 -0
  24. urml_vda5050_runtime-0.5.0/tests/vda5050_schemas/state.schema +913 -0
@@ -0,0 +1,117 @@
1
+ # --- Python ---
2
+ __pycache__/
3
+ *.py[cod]
4
+ *$py.class
5
+ *.so
6
+ .Python
7
+ build/
8
+ dist/
9
+ develop-eggs/
10
+ downloads/
11
+ eggs/
12
+ .eggs/
13
+ lib/
14
+ lib64/
15
+ parts/
16
+ sdist/
17
+ var/
18
+ wheels/
19
+ *.egg-info/
20
+ .installed.cfg
21
+ *.egg
22
+ MANIFEST
23
+
24
+ # Virtual envs
25
+ .venv/
26
+ venv/
27
+ env/
28
+ ENV/
29
+ .python-version
30
+
31
+ # Test / coverage / mypy / pyright
32
+ .coverage
33
+ .coverage.*
34
+ .cache
35
+ .pytest_cache/
36
+ .mypy_cache/
37
+ .dmypy.json
38
+ .pyre/
39
+ .pyright/
40
+ htmlcov/
41
+ nosetests.xml
42
+ coverage.xml
43
+ *.cover
44
+ .hypothesis/
45
+ .tox/
46
+
47
+ # --- Node / web tooling (kept out of core repo; here for safety) ---
48
+ node_modules/
49
+ .pnp.*
50
+ .yarn/cache/
51
+ .yarn/unplugged/
52
+ .yarn/build-state.yml
53
+ .yarn/install-state.gz
54
+ npm-debug.log*
55
+ yarn-debug.log*
56
+ yarn-error.log*
57
+
58
+ # --- C++ / Rust build artifacts (in case reference runtimes land here in early Phase 1) ---
59
+ target/
60
+ *.o
61
+ *.obj
62
+ *.a
63
+ *.lib
64
+ *.dll
65
+ *.dylib
66
+ *.exe
67
+ *.pdb
68
+ cmake-build-*/
69
+ CMakeCache.txt
70
+ CMakeFiles/
71
+ CMakeScripts/
72
+ Testing/
73
+ cmake_install.cmake
74
+ install_manifest.txt
75
+ compile_commands.json
76
+
77
+ # --- ROS 2 build dirs ---
78
+ build/
79
+ install/
80
+ log/
81
+
82
+ # --- Editor and OS junk ---
83
+ .vscode/
84
+ .idea/
85
+ *.swp
86
+ *.swo
87
+ *~
88
+ .DS_Store
89
+ Thumbs.db
90
+ desktop.ini
91
+
92
+ # --- Local-only artifacts ---
93
+ .env
94
+ .env.*
95
+ *.log
96
+ *.tmp
97
+ .local/
98
+ .scratch/
99
+
100
+ # --- Outreach campaign artifacts (operational, not part of the open standard) ---
101
+ # Target lists, message drafts, tracking data, and the launch-approval record
102
+ # stay local. They are private to the maintainer; committing them would
103
+ # telegraph the campaign before launch and could embarrass listed projects.
104
+ outreach/
105
+
106
+ # Outreach dashboard SQLite mirror (RFC-0275). Derived from
107
+ # examples/lighthouses/outreach*.yaml via tools/scripts/refresh_outreach_db.py.
108
+ # Regenerated on demand by `make outreach-refresh`.
109
+ tools/outreach.db
110
+ tools/.outreach.db
111
+
112
+ # Local Claude Code settings (per-machine; permission rules, etc.). Not committed.
113
+ .claude/settings.json
114
+ .claude/settings.local.json
115
+
116
+ # Claude Code session worktrees (`claude -w <name>`); see AGENTS.md "Parallel sessions".
117
+ .claude/worktrees/
@@ -0,0 +1,121 @@
1
+ Metadata-Version: 2.5
2
+ Name: urml-vda5050-runtime
3
+ Version: 0.5.0
4
+ Summary: VDA 5050 fleet-control reference runtime for URML: AMRs and AGVs over MQTT, zero ROS.
5
+ Project-URL: Homepage, https://github.com/urml-dev/URML
6
+ Project-URL: Repository, https://github.com/urml-dev/URML
7
+ Project-URL: Issues, https://github.com/urml-dev/URML/issues
8
+ Author: URML Maintainers
9
+ License: BUSL-1.1
10
+ Keywords: agv,amr,fleet,intralogistics,mqtt,robotics,runtime,urml,vda5050
11
+ Classifier: Development Status :: 3 - Alpha
12
+ Classifier: Intended Audience :: Developers
13
+ Classifier: License :: Other/Proprietary License
14
+ Classifier: Operating System :: OS Independent
15
+ Classifier: Programming Language :: Python :: 3 :: Only
16
+ Classifier: Programming Language :: Python :: 3.11
17
+ Classifier: Programming Language :: Python :: 3.12
18
+ Classifier: Topic :: Scientific/Engineering
19
+ Requires-Python: >=3.11
20
+ Requires-Dist: pydantic<3,>=2.6
21
+ Requires-Dist: pyyaml<7,>=6.0
22
+ Requires-Dist: urml-ros2-runtime>=0.5.0
23
+ Requires-Dist: urml-validator>=0.5.0
24
+ Provides-Extra: dev
25
+ Requires-Dist: jsonschema>=4.18; extra == 'dev'
26
+ Requires-Dist: mypy>=1.10; extra == 'dev'
27
+ Requires-Dist: pytest-cov>=5; extra == 'dev'
28
+ Requires-Dist: pytest>=8; extra == 'dev'
29
+ Requires-Dist: ruff>=0.5; extra == 'dev'
30
+ Requires-Dist: types-pyyaml; extra == 'dev'
31
+ Provides-Extra: mqtt
32
+ Requires-Dist: paho-mqtt<3,>=2.0; extra == 'mqtt'
33
+ Description-Content-Type: text/markdown
34
+
35
+ <p align="center">
36
+ <a href="https://urml.dev"><img src="https://urml.dev/favicon.svg" alt="URML" width="72" height="72"></a>
37
+ </p>
38
+
39
+ <p align="center">
40
+ A small, opinionated, human-readable language for describing robot intent.
41
+ </p>
42
+
43
+ <p align="center">
44
+ <a href="https://urml.dev"><b>urml.dev</b></a>
45
+ </p>
46
+
47
+ ---
48
+
49
+ # urml-vda5050-runtime
50
+
51
+ **VDA 5050 reference runtime for URML.** `Vda5050Adapter` drives AMRs and AGVs that speak [VDA 5050](https://github.com/VDA5050/VDA5050), the open interface between a fleet control and mobile robots, over MQTT. No ROS 2 dependency.
52
+
53
+ ## What it does
54
+
55
+ In VDA 5050 the fleet control owns the route graph. It sends each vehicle an `order` (a path of nodes and edges, with actions on them) and reads progress from the vehicle's `state`. This adapter plays the fleet control for one vehicle. The URML runtime calls it only after the validator has accepted the program; each dispatch step then becomes one order. A step succeeds only when the vehicle's own state says the order reached its last node and every action is `FINISHED`.
56
+
57
+ ```
58
+ URML program --validate--> URMLRuntime --> Vda5050Adapter --order / instantActions--> vehicle
59
+ ^------------------state---------------'
60
+ ```
61
+
62
+ It targets VDA 5050 **3.0.0** (2026-03-18). `protocol_version` and `interface_name` in the config set the topic prefix for 2.x vehicles; the message shape is 3.0.0's, which 2.x vehicles have not been tested against.
63
+
64
+ ## Method coverage
65
+
66
+ | URML primitive | VDA 5050 |
67
+ |---|---|
68
+ | `move_to` | an order along the shortest configured route from the vehicle's `lastNodeId`; URML `speed` caps each edge's `maximumSpeed` |
69
+ | `dock` | an order to the station ending in the service's action (`charge` is `startCharging`, `park` is none); `until: full` waits on `powerSupply.stateOfCharge` |
70
+ | `grasp` / `release` (and so `pick_from` / `place_at`) | `pick` / `drop` at the current node, with its `stationName` / `stationType` and the object class as `loadType` |
71
+ | `detect` | `detectObject` at the current node, when the vehicle declares it |
72
+ | `measure` | a fresh `state`: `battery`, `voltage`, `current`, `position` |
73
+ | `call_program` | a configured vendor action (RFC-0015) |
74
+ | `wait` | local sleep (the vehicle holds at its node) |
75
+ | `report` | local record, no cloud |
76
+
77
+ Returned as not supported, with a reason: `wait_for` (the vehicle interface carries no external events), `scan`, `capture`, `speak`, `listen`, release `hand_to_user`. The drone trio returns `not_applicable_vda5050`.
78
+
79
+ **Before every order** the adapter asks for a fresh state (`stateRequest`) and refuses to send if the vehicle is not in an operating mode that accepts orders, has an active emergency stop, reports an `URGENT` / `CRITICAL` / `FATAL` error, is still running an order, or stands on a node the config does not know. (A vehicle that ignores `stateRequest` still works, but each step then waits `state_timeout_seconds` before the adapter falls back to the last state it received.) **After sending** it reports a vehicle rejection with the vehicle's own error type (for example `INVALID_ORDER_ACTION`). When an order does not finish within `order_timeout_seconds`, it sends `cancelOrder` before reporting the failure.
80
+
81
+ ## Configuration
82
+
83
+ Node ids, edges, stations and the vehicle's action set are deployment facts, so they live in a `vda5050_adapter.yaml` next to the URML artifacts, not in the program or manifest. See [`examples/vda5050/vda5050_adapter.yaml`](../../examples/vda5050/vda5050_adapter.yaml) for a commented example. `supported_actions` is the vehicle factsheet's `protocolFeatures.agvActions`; an action outside it is refused before anything is sent.
84
+
85
+ ## Install and run
86
+
87
+ ```bash
88
+ pip install -e reference/vda5050-runtime # hermetic: simulated vehicle, in-memory broker
89
+ pip install -e "reference/vda5050-runtime[mqtt]" # real broker via paho-mqtt
90
+ python examples/vda5050/run_demo.py # the warehouse example as VDA 5050 orders
91
+ ```
92
+
93
+ ```python
94
+ from urml_vda5050_runtime import Vda5050Adapter, load_vda5050_config
95
+
96
+ config = load_vda5050_config("vda5050_adapter.yaml")
97
+ with Vda5050Adapter(config) as amr: # connects to config.broker_host
98
+ print(amr.send_navigation_goal(location="shelf_a3"))
99
+ ```
100
+
101
+ ## Tested
102
+
103
+ - **Hermetic suite** (`tests/`): the adapter against `SimulatedVehicle` on an `InMemoryBroker`. Every message either side publishes is validated against the official VDA 5050 JSON schemas for 3.0.0, as upstream maintains them on its `main` branch ([`tests/vda5050_schemas/`](tests/vda5050_schemas/), MIT, pinned to a commit). Includes the repository's unchanged warehouse example run end to end through the validator and `URMLRuntime`, and a validator rejection that sends nothing to the vehicle.
104
+ - **Live broker** (`tests/integration/`, `URML_VDA5050_BROKER=host:port`): adapter and simulated vehicle on separate `paho-mqtt` connections to a real Mosquitto 2.0 broker. Run weekly by [`vda5050-integration.yml`](../../.github/workflows/vda5050-integration.yml).
105
+ - **Not yet:** a real vendor vehicle, or a vendor's VDA 5050 simulator. The vehicle on the other side of every test is this package's own simulator, which follows the protocol rules a fleet control depends on but is not a vehicle model.
106
+
107
+ ## Scope
108
+
109
+ One order per dispatch step, fully released, no horizon. That is enough to drive a vehicle through a URML program; it is not traffic management. Multi-vehicle deconfliction, horizon streaming and order updates belong to a fleet manager (openTCS, Open-RMF, a vendor fleet manager). URML's own cross-robot checks (RFC-0286, RFC-0291) run in the validator before anything is sent, and a site's mobile-robot rules (after ISO 3691-4 and ANSI/A3 R15.08) load as a rulebook: start from [`examples/rulebooks/amr-template.yaml`](../../examples/rulebooks/amr-template.yaml). Open questions are recorded in [`SPEC-GAPS.md`](SPEC-GAPS.md).
110
+
111
+ **ISO 21423:2026** (industrial mobile robot communications and interoperability) has its own runtime, [`iso21423-runtime`](../iso21423-runtime/), because its model differs: every participant publishes its own state and any one may send another a request. That runtime is built from public material based on the standard's draft, and its validation against the published standard is in progress.
112
+
113
+ ## License
114
+
115
+ Business Source License 1.1: free for non-production use, commercial license for production (see [`LICENSING.md`](../../LICENSING.md)). `paho-mqtt` (EPL-2.0 or EDL-1.0) is an optional extra, imported lazily. The VDA 5050 schemas in `tests/vda5050_schemas/` are MIT-licensed test fixtures and are not shipped in the wheel.
116
+
117
+ ## Related
118
+
119
+ - [RFC-0297](../../docs/rfcs/0297-vda5050-outreach.md): the URML to VDA 5050 mapping this runtime implements.
120
+ - [RFC-0022](../../docs/rfcs/0022-warehouse-domain-profile.md): the warehouse profile; no new primitives were needed.
121
+ - [`/reference/opcua-runtime/`](../opcua-runtime/): the zero-ROS sibling whose structure this mirrors.
@@ -0,0 +1,87 @@
1
+ <p align="center">
2
+ <a href="https://urml.dev"><img src="https://urml.dev/favicon.svg" alt="URML" width="72" height="72"></a>
3
+ </p>
4
+
5
+ <p align="center">
6
+ A small, opinionated, human-readable language for describing robot intent.
7
+ </p>
8
+
9
+ <p align="center">
10
+ <a href="https://urml.dev"><b>urml.dev</b></a>
11
+ </p>
12
+
13
+ ---
14
+
15
+ # urml-vda5050-runtime
16
+
17
+ **VDA 5050 reference runtime for URML.** `Vda5050Adapter` drives AMRs and AGVs that speak [VDA 5050](https://github.com/VDA5050/VDA5050), the open interface between a fleet control and mobile robots, over MQTT. No ROS 2 dependency.
18
+
19
+ ## What it does
20
+
21
+ In VDA 5050 the fleet control owns the route graph. It sends each vehicle an `order` (a path of nodes and edges, with actions on them) and reads progress from the vehicle's `state`. This adapter plays the fleet control for one vehicle. The URML runtime calls it only after the validator has accepted the program; each dispatch step then becomes one order. A step succeeds only when the vehicle's own state says the order reached its last node and every action is `FINISHED`.
22
+
23
+ ```
24
+ URML program --validate--> URMLRuntime --> Vda5050Adapter --order / instantActions--> vehicle
25
+ ^------------------state---------------'
26
+ ```
27
+
28
+ It targets VDA 5050 **3.0.0** (2026-03-18). `protocol_version` and `interface_name` in the config set the topic prefix for 2.x vehicles; the message shape is 3.0.0's, which 2.x vehicles have not been tested against.
29
+
30
+ ## Method coverage
31
+
32
+ | URML primitive | VDA 5050 |
33
+ |---|---|
34
+ | `move_to` | an order along the shortest configured route from the vehicle's `lastNodeId`; URML `speed` caps each edge's `maximumSpeed` |
35
+ | `dock` | an order to the station ending in the service's action (`charge` is `startCharging`, `park` is none); `until: full` waits on `powerSupply.stateOfCharge` |
36
+ | `grasp` / `release` (and so `pick_from` / `place_at`) | `pick` / `drop` at the current node, with its `stationName` / `stationType` and the object class as `loadType` |
37
+ | `detect` | `detectObject` at the current node, when the vehicle declares it |
38
+ | `measure` | a fresh `state`: `battery`, `voltage`, `current`, `position` |
39
+ | `call_program` | a configured vendor action (RFC-0015) |
40
+ | `wait` | local sleep (the vehicle holds at its node) |
41
+ | `report` | local record, no cloud |
42
+
43
+ Returned as not supported, with a reason: `wait_for` (the vehicle interface carries no external events), `scan`, `capture`, `speak`, `listen`, release `hand_to_user`. The drone trio returns `not_applicable_vda5050`.
44
+
45
+ **Before every order** the adapter asks for a fresh state (`stateRequest`) and refuses to send if the vehicle is not in an operating mode that accepts orders, has an active emergency stop, reports an `URGENT` / `CRITICAL` / `FATAL` error, is still running an order, or stands on a node the config does not know. (A vehicle that ignores `stateRequest` still works, but each step then waits `state_timeout_seconds` before the adapter falls back to the last state it received.) **After sending** it reports a vehicle rejection with the vehicle's own error type (for example `INVALID_ORDER_ACTION`). When an order does not finish within `order_timeout_seconds`, it sends `cancelOrder` before reporting the failure.
46
+
47
+ ## Configuration
48
+
49
+ Node ids, edges, stations and the vehicle's action set are deployment facts, so they live in a `vda5050_adapter.yaml` next to the URML artifacts, not in the program or manifest. See [`examples/vda5050/vda5050_adapter.yaml`](../../examples/vda5050/vda5050_adapter.yaml) for a commented example. `supported_actions` is the vehicle factsheet's `protocolFeatures.agvActions`; an action outside it is refused before anything is sent.
50
+
51
+ ## Install and run
52
+
53
+ ```bash
54
+ pip install -e reference/vda5050-runtime # hermetic: simulated vehicle, in-memory broker
55
+ pip install -e "reference/vda5050-runtime[mqtt]" # real broker via paho-mqtt
56
+ python examples/vda5050/run_demo.py # the warehouse example as VDA 5050 orders
57
+ ```
58
+
59
+ ```python
60
+ from urml_vda5050_runtime import Vda5050Adapter, load_vda5050_config
61
+
62
+ config = load_vda5050_config("vda5050_adapter.yaml")
63
+ with Vda5050Adapter(config) as amr: # connects to config.broker_host
64
+ print(amr.send_navigation_goal(location="shelf_a3"))
65
+ ```
66
+
67
+ ## Tested
68
+
69
+ - **Hermetic suite** (`tests/`): the adapter against `SimulatedVehicle` on an `InMemoryBroker`. Every message either side publishes is validated against the official VDA 5050 JSON schemas for 3.0.0, as upstream maintains them on its `main` branch ([`tests/vda5050_schemas/`](tests/vda5050_schemas/), MIT, pinned to a commit). Includes the repository's unchanged warehouse example run end to end through the validator and `URMLRuntime`, and a validator rejection that sends nothing to the vehicle.
70
+ - **Live broker** (`tests/integration/`, `URML_VDA5050_BROKER=host:port`): adapter and simulated vehicle on separate `paho-mqtt` connections to a real Mosquitto 2.0 broker. Run weekly by [`vda5050-integration.yml`](../../.github/workflows/vda5050-integration.yml).
71
+ - **Not yet:** a real vendor vehicle, or a vendor's VDA 5050 simulator. The vehicle on the other side of every test is this package's own simulator, which follows the protocol rules a fleet control depends on but is not a vehicle model.
72
+
73
+ ## Scope
74
+
75
+ One order per dispatch step, fully released, no horizon. That is enough to drive a vehicle through a URML program; it is not traffic management. Multi-vehicle deconfliction, horizon streaming and order updates belong to a fleet manager (openTCS, Open-RMF, a vendor fleet manager). URML's own cross-robot checks (RFC-0286, RFC-0291) run in the validator before anything is sent, and a site's mobile-robot rules (after ISO 3691-4 and ANSI/A3 R15.08) load as a rulebook: start from [`examples/rulebooks/amr-template.yaml`](../../examples/rulebooks/amr-template.yaml). Open questions are recorded in [`SPEC-GAPS.md`](SPEC-GAPS.md).
76
+
77
+ **ISO 21423:2026** (industrial mobile robot communications and interoperability) has its own runtime, [`iso21423-runtime`](../iso21423-runtime/), because its model differs: every participant publishes its own state and any one may send another a request. That runtime is built from public material based on the standard's draft, and its validation against the published standard is in progress.
78
+
79
+ ## License
80
+
81
+ Business Source License 1.1: free for non-production use, commercial license for production (see [`LICENSING.md`](../../LICENSING.md)). `paho-mqtt` (EPL-2.0 or EDL-1.0) is an optional extra, imported lazily. The VDA 5050 schemas in `tests/vda5050_schemas/` are MIT-licensed test fixtures and are not shipped in the wheel.
82
+
83
+ ## Related
84
+
85
+ - [RFC-0297](../../docs/rfcs/0297-vda5050-outreach.md): the URML to VDA 5050 mapping this runtime implements.
86
+ - [RFC-0022](../../docs/rfcs/0022-warehouse-domain-profile.md): the warehouse profile; no new primitives were needed.
87
+ - [`/reference/opcua-runtime/`](../opcua-runtime/): the zero-ROS sibling whose structure this mirrors.
@@ -0,0 +1,45 @@
1
+ <p align="center">
2
+ <a href="https://urml.dev"><img src="https://urml.dev/favicon.svg" alt="URML" width="72" height="72"></a>
3
+ </p>
4
+
5
+ <p align="center">
6
+ A small, opinionated, human-readable language for describing robot intent.
7
+ </p>
8
+
9
+ <p align="center">
10
+ <a href="https://urml.dev"><b>urml.dev</b></a>
11
+ </p>
12
+
13
+ ---
14
+
15
+ # SPEC-GAPS: urml-vda5050-runtime
16
+
17
+ Per the spec-gap protocol (RFC-0014), this runtime is built against the frozen substrate Protocol. Where VDA 5050 and URML do not line up, the mismatch is recorded here for a maintainer decision, not patched over in the adapter. None of these is filed as an RFC yet.
18
+
19
+ ## 1. `pick_from` needs `detectObject`
20
+
21
+ `pick_from` is composed in the runtime as navigate, then `detect`, then `grasp` (RFC-0013). On a VDA 5050 vehicle the `pick` action locates the load itself; many vehicles do not offer a separate `detectObject`. On such a vehicle `pick_from` fails at the detect step with `action_not_supported_by_vehicle`, though the vehicle could do the pick.
22
+
23
+ The adapter does not fake the detection to keep `pick_from` working. A detection result with no detection behind it would put an invented object in the program's bindings.
24
+
25
+ **Options for a decision:** (a) leave it, and document that `pick_from` on VDA 5050 needs `detectObject`; (b) let an adapter declare that its grasp includes detection, so `pick_from` skips the separate detect (a substrate Protocol change, RFC-0014); (c) have the `pick_from` executor fall back to grasp-only when detection is not supported, binding a result marked unverified.
26
+
27
+ ## 2. `wait_for` events have no source
28
+
29
+ The warehouse profile's handoff pattern (RFC-0022) uses `wait_for: { event: partner_ready }`. In VDA 5050 the fleet control is the party that knows a partner is ready; the vehicle interface carries no such events, so the adapter returns `not_supported_on_vda5050`. The fleet runtime (`urml_ros2_runtime.fleet`) is the natural place to resolve cross-robot events. This is a gap in which layer resolves events, not in the primitive.
30
+
31
+ ## 3. One order per dispatch step
32
+
33
+ Each URML step becomes its own fully released order with no horizon. VDA 5050's order updates (extending the base while the vehicle drives) would let a `move_to` followed by `place_at` run without a stop between them, and would let a traffic manager hold the horizon. The Protocol dispatches one step at a time and has no look-ahead, so the adapter cannot stitch steps into one order. Deliberately out of scope for v0.1; traffic management belongs to a fleet manager.
34
+
35
+ ## 4. The factsheet is not read
36
+
37
+ `supported_actions` is configured by hand from the vehicle's factsheet. The adapter could request the factsheet (`factsheetRequest`) and check the config against it, or a tool could generate the URML manifest's capability blocks from it. Not built yet.
38
+
39
+ ## Upstream: VDA 5050 3.0.0 schemas (resolved)
40
+
41
+ The `order`, `factsheet` and `visualization` schemas at tag `3.0.0` contain trailing commas and do not parse. This was already reported upstream ([VDA5050/VDA5050#660](https://github.com/VDA5050/VDA5050/issues/660)) and fixed on `main` ([#599](https://github.com/VDA5050/VDA5050/pull/599)). The core team will not re-release the schemas: they live on the branch, not in releases. The test fixtures are therefore copied unmodified from `main` at a pinned commit ([`tests/vda5050_schemas/README.md`](tests/vda5050_schemas/README.md)).
42
+
43
+ ## ISO 21423:2026
44
+
45
+ ISO 21423:2026 (Robotics, Industrial mobile robots, Communications and interoperability) is implemented separately, in [`reference/iso21423-runtime/`](../iso21423-runtime/), because its request model differs from VDA 5050's orders. That runtime is built from public material based on the ISO/FDIS 21423 draft; its validation against the published standard is in progress, and it makes no conformance claim until that is done.
@@ -0,0 +1,77 @@
1
+ [build-system]
2
+ requires = ["hatchling>=1.27"]
3
+ build-backend = "hatchling.build"
4
+
5
+ [project]
6
+ name = "urml-vda5050-runtime"
7
+ version = "0.5.0"
8
+ description = "VDA 5050 fleet-control reference runtime for URML: AMRs and AGVs over MQTT, zero ROS."
9
+ readme = "README.md"
10
+ license = { text = "BUSL-1.1" }
11
+ requires-python = ">=3.11"
12
+ authors = [{ name = "URML Maintainers" }]
13
+ keywords = ["robotics", "vda5050", "amr", "agv", "fleet", "mqtt", "intralogistics", "urml", "runtime"]
14
+ classifiers = [
15
+ "Development Status :: 3 - Alpha",
16
+ "Intended Audience :: Developers",
17
+ "License :: Other/Proprietary License",
18
+ "Operating System :: OS Independent",
19
+ "Programming Language :: Python :: 3 :: Only",
20
+ "Programming Language :: Python :: 3.11",
21
+ "Programming Language :: Python :: 3.12",
22
+ "Topic :: Scientific/Engineering",
23
+ ]
24
+ dependencies = [
25
+ "pydantic>=2.6,<3",
26
+ "PyYAML>=6.0,<7",
27
+ "urml-validator>=0.5.0",
28
+ "urml-ros2-runtime>=0.5.0",
29
+ ]
30
+
31
+ [project.optional-dependencies]
32
+ # VDA 5050 rides MQTT. paho-mqtt (Eclipse, EPL-2.0 OR BSD-3-Clause via
33
+ # EDL-1.0) is imported lazily through this extra, never at module load,
34
+ # so the package imports and the hermetic suite runs without it.
35
+ mqtt = [
36
+ "paho-mqtt>=2.0,<3",
37
+ ]
38
+ dev = [
39
+ "jsonschema>=4.18",
40
+ "pytest>=8",
41
+ "pytest-cov>=5",
42
+ "ruff>=0.5",
43
+ "mypy>=1.10",
44
+ "types-PyYAML",
45
+ ]
46
+
47
+ [project.urls]
48
+ Homepage = "https://github.com/urml-dev/URML"
49
+ Repository = "https://github.com/urml-dev/URML"
50
+ Issues = "https://github.com/urml-dev/URML/issues"
51
+
52
+ [tool.hatch.build.targets.wheel]
53
+ packages = ["src/urml_vda5050_runtime"]
54
+
55
+ [tool.ruff]
56
+ line-length = 120
57
+ target-version = "py311"
58
+ src = ["src", "tests"]
59
+
60
+ [tool.ruff.lint]
61
+ select = ["E", "F", "W", "I", "B", "UP", "N", "ANN", "RUF"]
62
+ ignore = ["ANN401"]
63
+
64
+ [tool.ruff.lint.per-file-ignores]
65
+ "tests/*" = ["ANN"]
66
+
67
+ [tool.mypy]
68
+ strict = true
69
+ python_version = "3.11"
70
+ plugins = ["pydantic.mypy"]
71
+ mypy_path = "src"
72
+ packages = ["urml_vda5050_runtime"]
73
+
74
+ [tool.pytest.ini_options]
75
+ minversion = "8.0"
76
+ testpaths = ["tests"]
77
+ addopts = ["-q", "--strict-markers"]
@@ -0,0 +1,34 @@
1
+ """urml_vda5050_runtime: VDA 5050 fleet-control reference runtime for URML.
2
+
3
+ Vda5050Adapter (+ Vda5050Config, load_vda5050_config)
4
+ Turns URML dispatch steps into VDA 5050 ``order`` / ``instantActions``
5
+ messages for one mobile robot and judges success from the robot's own
6
+ ``state``. **No ROS 2 dependency.** MQTT goes through ``paho-mqtt``,
7
+ imported lazily (the [mqtt] extra), so this module loads on every host.
8
+
9
+ InMemoryBroker + SimulatedVehicle
10
+ A hermetic stand-in for the broker and a VDA 5050 vehicle, for tests
11
+ and the offline demo.
12
+ """
13
+
14
+ from __future__ import annotations
15
+
16
+ from urml_vda5050_runtime._version import __version__
17
+ from urml_vda5050_runtime.adapter import Vda5050Adapter
18
+ from urml_vda5050_runtime.config import ActionSpec, EdgeSpec, NodeSpec, Vda5050Config, load_vda5050_config
19
+ from urml_vda5050_runtime.sim import SimulatedVehicle
20
+ from urml_vda5050_runtime.transport import InMemoryBroker, PahoTransport, Transport
21
+
22
+ __all__ = [
23
+ "ActionSpec",
24
+ "EdgeSpec",
25
+ "InMemoryBroker",
26
+ "NodeSpec",
27
+ "PahoTransport",
28
+ "SimulatedVehicle",
29
+ "Transport",
30
+ "Vda5050Adapter",
31
+ "Vda5050Config",
32
+ "__version__",
33
+ "load_vda5050_config",
34
+ ]
@@ -0,0 +1,3 @@
1
+ """Package version. Bumped per release."""
2
+
3
+ __version__ = "0.5.0"