priority_rule — DRIVE crossing op

• Data kinds: table → table

• Call: import fullseye as fs; fs.ledger.priority_rule(own, cross, *, signalised: 'bool' = False, wide_ratio: 'float' = 1.5) -> 'Dict[str, object]' (to call the implementation directly, import drivecrossing; drivecrossing.priority_rule(own, cross, *, signalised: 'bool' = False, wide_ratio: 'float' = 1.5) -> 'Dict[str, object]'; from the registry, opsdrive.get("priority_rule"))

Usage

At an intersection without traffic control, whether the own vehicle (own) yields to a vehicle on the crossing road (cross) (Art. 36(1)-(3)).

> The detailed description below is the original text — the summary and the headings are translated.

own, cross = {"width": 幅員 [m], "priority_sign": 優先道路の標識, "centre_line": 交差点の中まで中央線・車両通行帯}。優先道路 = 標識 or 中央線(36 条 2 項のかっこ書き)。明らかに広い = 幅の比 ≥ wide_ratio(仮定)。

返り値: yield_to ∈ {"cross"(交差道路の車すべてに譲る、36 条 2 項)、"left"(左方から来る車に譲る、36 条 1 項)、"none"(相手が譲る)}、must_slow(36 条 3 項の徐行)、own_priority / cross_priority / cross_clearly_wider / own_clearly_wider、article。交通整理あり(信号)は ValueError(信号に従う)。

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_crossing — py -3.11 examples/poc_driving_crossing.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 (crossing)

crossing_timing_check · crossing_gate_state · crossing_lamp_signal · lamp_pair_phase · crossing_clear_time · exit_room_check · crossing_stop_check · track_sight_distance


*Provenance: drivecrossing.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.