Metadata-Version: 2.5
Name: urml-edu-runtime
Version: 0.5.2
Summary: Educational-platform reference runtime for URML — VEX V5, LEGO Mindstorms/SPIKE, Thymio, Robotical Marty, Petoi Bittle / Nybble, zero ROS.
Project-URL: Homepage, https://github.com/urml-dev/URML
Project-URL: Repository, https://github.com/urml-dev/URML
Project-URL: Issues, https://github.com/urml-dev/URML/issues
Author: URML Maintainers
License: BUSL-1.1
Keywords: bittle,education,gopigo,gopigo3,lego,marty,microduck,mindstorms,nybble,opencat,petoi,pollen,robotical,robotics,runtime,spike,thymio,urml,vex
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: Intended Audience :: Education
Classifier: License :: Other/Proprietary License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Topic :: Education
Requires-Python: >=3.11
Requires-Dist: pydantic<3,>=2.6
Requires-Dist: pyyaml<7,>=6.0
Requires-Dist: urml-ros2-runtime>=0.5.2
Requires-Dist: urml-validator>=0.5.2
Provides-Extra: circuitpython
Requires-Dist: pyserial>=3.5; extra == 'circuitpython'
Provides-Extra: dev
Requires-Dist: mypy>=1.10; extra == 'dev'
Requires-Dist: pytest-cov>=5; extra == 'dev'
Requires-Dist: pytest>=8; extra == 'dev'
Requires-Dist: ruff>=0.5; extra == 'dev'
Provides-Extra: gopigo
Requires-Dist: easygopigo3>=1.0; extra == 'gopigo'
Provides-Extra: lego
Requires-Dist: pybricksdev>=1.0; extra == 'lego'
Provides-Extra: marty
Requires-Dist: martypy>=3.6; extra == 'marty'
Provides-Extra: petoi
Requires-Dist: petoi-robot; extra == 'petoi'
Provides-Extra: thymio
Requires-Dist: tdmclient>=0.1.4; extra == 'thymio'
Provides-Extra: vex
Requires-Dist: pyvex>=0.5; extra == 'vex'
Description-Content-Type: text/markdown

<p align="center">
  <a href="https://urml.dev"><img src="https://urml.dev/favicon.svg" alt="URML" width="72" height="72"></a>
</p>

<p align="center">
  A small, opinionated, human-readable language for describing robot intent.
</p>

<p align="center">
  <a href="https://urml.dev"><b>urml.dev</b></a>
</p>

---

# urml-edu-runtime

**Educational-platform reference runtime for URML** — `VexV5Adapter`, `LegoSpikeAdapter`, `ThymioAdapter`, `GoPiGo3Adapter`, `RoboticalMartyAdapter`, **zero ROS**.

The classroom/maker adoption flywheel (RFC-0011). VEX V5 brain (USB/serial via `pyvex`), LEGO SPIKE Prime / Mindstorms hub (BLE via `pybricksdev`), Thymio (Aseba TDM via `tdmclient`), Robotical Marty v1/v2 (USB-serial / socket via `martypy`, per maintainer engagement on [robotical/martypy#52](https://github.com/robotical/martypy/issues/52), 2026-05-25). Each platform's native SDK is imported lazily by its adapter. This module loads on every host without any `[vex]`/`[lego]`/`[thymio]`/`[marty]` extra. Built against the frozen substrate Protocol per [RFC-0014](../../docs/rfcs/0014-substrate-conformance.md). Mirrors `cobot-runtime`'s `_CobotBase` shape.

## Method coverage

| URML primitive | v0.1 |
|---|---|
| `move_to` / `hover` | write the configured firmware command (VEX `run_command` / LEGO `send_command` / Thymio `send_event`) |
| `drive` / `turn` (RFC-0630) | `GoPiGo3Adapter` only: odometric `drive_cm` / `turn_degrees` / `orbit` on a frameless buggy. The first substrate to implement the relative-motion surface |
| `grasp` / `release` | write the configured claw-servo command |
| `wait` | hold (success) |
| `measure` / `wait_for` | one telemetry read |
| `report` | structured record to a local sink (no cloud) |
| `scan` | documented not-supported result: no area-scan controller (a scan is waypoints plus a capture at each one) |
| `look_at` / `gesture` (RFC-0698) | `ReachyMiniAdapter` only: expressive gaze + gesture on the Hugging Face Reachy Mini (`ExpressionAdapter`, `social` profile). The first substrate to implement the expression surface |

`dock`, `detect`, `capture`, `speak`, `listen` return `not_supported_on_edu_platform`. The drone trio returns `not_applicable_edu`.

`ReachyMiniAdapter` is a standalone `ExpressionAdapter` (not an `_EduBase` nav robot): `look_at` orients the head/body (a 4x4 head matrix + body yaw through the SDK's `goto_target`), `gesture` plays a named move mapped in `ReachyConfig.gesture_moves`. The client surface is config-overridable and imported lazily; hardware validation pairs with a live Reachy Mini and is a follow-up.

## Spec gaps (RFC-0014 protocol)

Cross-references existing Drafts — **no new RFC**:
- LED/buzzer/button = digital-output → **RFC-0017** (already Draft from cobot-runtime).
- Non-mobile sensor/actuator-only node → **RFC-0018** (already Draft from embedded-runtime).

See [`SPEC-GAPS.md`](SPEC-GAPS.md).

## Install / use

```bash
pip install -e reference/edu-runtime[vex]      # VEX V5 (pyvex)
pip install -e reference/edu-runtime[lego]     # LEGO Pybricks (pybricksdev BLE)
pip install -e reference/edu-runtime[thymio]   # Thymio (tdmclient)
pip install -e reference/edu-runtime[gopigo]   # GoPiGo3 buggy (easygopigo3, relative drive/turn)
pip install -e reference/edu-runtime[marty]    # Robotical Marty v1/v2 (martypy)
pip install -e reference/edu-runtime           # Microduck (stdlib JSON-RPC, no extra)
```

```python
from urml_edu_runtime import VexV5Adapter, EduConfig
cfg = EduConfig(device="COM3",
                location_to_command={"start_mat": "GO START", "home_mat": "GO HOME"})
with VexV5Adapter(cfg) as vex:
    assert vex.send_navigation_goal(location="start_mat").success
```

## Status

**v0.1 (this release):**
- 4 adapters + `EduConfig` + `BRAND_ADAPTERS` registry. Hermetic suite green via fake-SDK injection (`pytest reference/edu-runtime/tests -q`).
- 4 manifest fixtures (VEX V5 clawbot, LEGO SPIKE driving base, Thymio classroom buggy, Robotical Marty v2) + 4 conformance fixtures under `conformance/fixtures/educational/`.
- Gated `.github/workflows/edu-integration.yml`: `edu-smoke` (real SDKs including `martypy`), `edu-arm64-build` (Jetson-class QEMU with SDKs absent), `edu-board-e2e` placeholder that `exit 1`s until a real board is wired (the marine/cobot HONESTY-NOTE precedent).
- The Marty adapter was added in direct response to the first engaged maintainer reply across URML's 31-thread Move #3–#6 outreach: NikTheGeek1 on [robotical/martypy#52](https://github.com/robotical/martypy/issues/52) (2026-05-25) confirmed URML should host the adapter externally, set v2 default transport to USB-serial / v1 to socket, and scoped BLE out as not supported by `martypy`.

## Core Commitment

Business Source License 1.1: free for non-production use, commercial license for production (see [`LICENSING.md`](../../LICENSING.md)). No vendor coupling, no cloud dependency. All vendor SDKs are optional extras imported lazily, never at module load.

## Related documents

- [`/reference/cobot-runtime/`](../cobot-runtime/) — the zero-ROS sibling whose `_CobotBase` shape this mirrors as `_EduBase`.
- [`/reference/embedded-runtime/`](../embedded-runtime/) — the micro:bit/Arduino serial-port sibling (different transport model).
- [`/spec/profiles/educational/`](../../spec/profiles/educational/) — the RFC-0011 profile this serves.
- [`/docs/rfcs/0017-digital-io-actuation.md`](../../docs/rfcs/0017-digital-io-actuation.md) · [`/docs/rfcs/0018-minimal-mcu-capability-subset.md`](../../docs/rfcs/0018-minimal-mcu-capability-subset.md) — the cross-referenced gaps.
