town_checks — DRIVE town op

• Data kinds: table × table → table

• Call: import fullseye as fs; fs.ledger.town_checks(run, layout, *, car_length: 'float' = 4.5, tol: 'float' = 1e-09) -> 'Dict[str, object]' (to call the implementation directly, import drivetown; drivetown.town_checks(run, layout, *, car_length: 'float' = 4.5, tol: 'float' = 1e-09) -> 'Dict[str, object]'; from the registry, opsdrive.get("town_checks"))

Usage

> This operator's description has not been translated yet. The original text follows as it is.

通し走行の採点(閉形式の門 + 既存の踏切の採点 op)。

`stops: 目標になった停止線ごと(弧長順)に `{"kind", "s_line", "s_stop", "before" = s_line − s_stop, "ok" (0 ≤ before ≤ 1.0),

"crossing": crossing_stop_check の結果(踏切だけ。`train` があれば警報中の区間を forbidden_intervals に渡す),

"skipped": 動的な目標で止まらなかった}`。count_ok` = 停止の回数 = 静的な停止線 + 止まった動的な停止線の数。

`kinematics: {"a_max_abs", "v_max", "v_min", "integral_gap" = max|台形則 ∫v dt − (s − s0)|, "ok"}`

(|a| ≤ max(a_max, b_max)、0 ≤ v ≤ v_max、integral_gap ≤ dt·v_max)。`braking`: 停止ごとに減速を始めた速度 v_b と制動距離 d_b、

定理 d_b ≥ v_b²/(2 b_max) の ok。`train(列車があれば): `{"inside_while_forbidden_s"(警報中に車体が踏切面にかかっていた

時間)、"go_after_clear"(踏切の発進が警報停止 + 上昇の後)、"timing_meets_minimum", "ok"}`。ok` = 全部。

Raises `ValueError`: run が town_run の物でない、layout が town_chain の物でない、car_length が正でない。

References (sample data, literature)

• Sample-data catalog (download URLs / licences) — 2-D uses skimage.data (BSD/public domain) plus synthetic images; 3-D lists download URLs for real data sources (Stanford, PDS, …).

• Operator provenance and references — the sources of the research/methods this op family came from.

• The canonical algorithm (author, year) and its uses are named in the family usage guide above.

Runnable examples (verified samples that actually call this op)

• poc_driving_japan_town — py -3.11 examples/poc_driving_japan_town.py

• poc_driving_town — py -3.11 examples/poc_driving_town.py

Ops the type connects to (they accept table as input)

course_layout · course_occupancy · course_contains · world_build · world_camera · world_move · lidar_scan · rss_longitudinal_same

Same category (town)

town_chain · town_layout · town_world · town_centerline · town_stop_lines · town_rules · town_crossing_state · town_run


*Provenance: drivetown.py — DRIVE operator registry. This per-op note is generated by tools/opdocs.py md (do not hand-edit).*

© 2026 Kazufumi Furuse — Fullseye operator documentation. Licensed under Apache-2.0.