Skip to main content

URML

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

urml.dev


urml-chrono-runtime

High-fidelity validation reference runtime for URML — ChronoAdapter for Project Chrono multibody / multi-physics, via pychrono.

Project Chrono is an open high-fidelity multibody engine (Chrono::Vehicle ground dynamics, terramechanics for deformable terrain, Chrono::Sensor) from the University of Wisconsin-Madison and the University of Parma. This adapter mirrors MujocoAdapter / PX4Adapter: lazy pychrono, no ROS 2 dependency, a lazily-built cached ChSystem, failures returned not raised. Built against the frozen substrate Protocol per RFC-0014.

Chrono's distinctive role for URML is high-fidelity pre-deployment validation (RFC-0328): URML checks a program statically against the declared capability manifest and active safety envelope first, then drives the same validated intent through a short Chrono simulation segment so the dynamics come back as evidence. URML composes above Chrono; it never embeds it. The differentiator is the static capability-and-envelope check before the expensive multibody solver ever spins, so the high-fidelity run only ever exercises admissible programs.

The primitive → driver-input altitude follows Project Chrono lead Dan Negrut's feedback on issue #746: align each manifest entry to a concrete ChSystem configuration at the level of Chrono's motion primitives and driver inputs.

Method coverage

URML primitive v0.1
move_to / hover apply the configured driver segment, advance the ChSystem steps_per_command steps, return the dynamics evidence (sim time, contacts, commanded driver inputs)
wait step the engine
measure return the accumulated dynamics evidence (value=contacts, sim_time, driver, backend)
wait_for step-then-check (a sim has no external event bus)
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)

grasp/release, dock, detect, capture, speak, listen return not_supported_in_base_sim (a Chrono::Sensor or articulated-model companion supplies them under the unchanged program, manifest, and validator). The drone trio returns not_applicable_sim.

Install / use

PyChrono ships via conda-forge, not as a PyPI wheel. The [chrono] extra is intentionally empty (it documents the boundary); pychrono is imported lazily, so this module loads on every host without it.

conda install -c conda-forge pychrono            # the engine
pip install -e reference/chrono-runtime[chrono]   # the adapter
from urml_chrono_runtime import ChronoAdapter, ChronoConfig
from urml_chrono_runtime.adapter import DriverSegment
cfg = ChronoConfig(steps_per_command=200,
                   location_to_segment={"ridge_waypoint": DriverSegment(driver=[0.8, 0.1, 0.0])})
with ChronoAdapter(cfg) as sim:
    r = sim.send_navigation_goal(location="ridge_waypoint")
    assert r.success and r.final_pose["sim_time"] > 0.0

Without pychrono installed, ChronoAdapter() raises a clear error pointing at conda-forge.

Status

v0.1 (this release):

  • ChronoAdapter + ChronoConfig (PyChrono, no ROS). chrono_vehicle_cell manifest + conformance/fixtures/home/21_chrono_vehicle_terrain_positive.yaml verified through the runner (hermetic against MockROSAdapter; adapter-agnostic against ChronoAdapter).
  • Terramechanics scene (scene: terramechanics): a rig on Chrono SCM deformable terrain, selected by the manifest's validation.terrain_fidelity: deformable hint (RFC-0381). The validation-evidence payload gains sinkage, peak contact force, and a tip-stability margin alongside the base dynamics — the richer evidence Project Chrono lead Dan Negrut pointed at on #746. See terramechanics.py and chrono_adapter.terramechanics.yaml.
  • Hermetic unit tests: navigation (configured + unmapped), the NSC/SMC system-type switch, measure (validation-evidence payload), scan (not supported), lifecycle, the not-supported / not-applicable-sim sentinels, the missing-pychrono (conda-pointing) error, the conformance hook, and the terramechanics scene (sinkage / contact-force / tip-margin evidence, driver-force application, bare-path regression); no pychrono install required (a fake pychrono, with a vehicle/SCM surface, is injected into sys.modules).
  • Gated .github/workflows/chrono-integration.yml: chrono-smoke (real pychrono from conda-forge + the hermetic suite + the live smoke) and chrono-sitl-e2e against a real Chrono::Vehicle scene (first run is a calibration run by design — the established px4 / mujoco / opcua convention). The live SCM scene is that calibration target: its physics reads are version-sensitive, so each degrades to an honest unavailable note rather than crashing.
  • SPEC-GAPS.md: the two manifest gaps the mapping surfaced (terrain-fidelity + simulator-target-class hints) shipped as RFC-0381; the terramechanics scene now reads the terrain-fidelity hint.

Follow-ups (not yet): a true sentence→motion validation video; a Chrono::Sensor companion for detect / capture; a full Chrono::Vehicle (HMMWV-class) model under the rig, pinned in CI.

Core Commitment

Business Source License 1.1: free for non-production use, commercial license for production (see LICENSING.md). No vendor coupling, no cloud dependency. PyChrono / Project Chrono is BSD-3-Clause (confirmed by the maintainers on #746); a validated-intent mapping carries no license entanglement.

Metadata

Release files for urml-chrono-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-chrono-runtime 0.5.1
File Size Uploaded Provenance Actions
urml_chrono_runtime-0.5.1.tar.gz 19.1 kB Without provenance Details for urml_chrono_runtime-0.5.1.tar.gz

Built distribution (wheel)

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

Total release size: 34.5 kB

Release files / urml_chrono_runtime-0.5.1.tar.gz

Download URL urml_chrono_runtime-0.5.1.tar.gz
Size 19.1 kB
Tags Source
SHA-256 checksum
How to use checksums
8126b4388e42f81a928526702aa0029df3cfcd68cfa5b5282f29147d1e77e5f1
BLAKE2b-256 checksum
How to use checksums
11e7be4e99e871bcd3758bf6454c1a2330f361e32ffc2b44f60acc83d10fa530
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.16

Release files / urml_chrono_runtime-0.5.1-py3-none-any.whl

Download URL urml_chrono_runtime-0.5.1-py3-none-any.whl
Size 15.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3193602e7d89e3d1571f034c9fca99740730cb452da2cddee32c5c3ded48b5b6
BLAKE2b-256 checksum
How to use checksums
40680b572369192a8b195c345c0591272b46497d9b6a7e29fe9e950da676a242
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.16

Security for urml-chrono-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