legal_stop_intervals — DRIVE crossing op

• Data kinds: any → any

• Call: import fullseye as fs; fs.ledger.legal_stop_intervals(merged, road_start: 'float', road_end: 'float', car_length: 'float') -> 'np.ndarray' (to call the implementation directly, import drivecrossing; drivecrossing.legal_stop_intervals(merged, road_start: 'float', road_end: 'float', car_length: 'float') -> 'np.ndarray'; from the registry, opsdrive.get("legal_stop_intervals"))

Usage

Intervals (m, 2) of rear-end positions at which the car body [rear, rear + car_length] fits entirely while avoiding the no-stopping-or-parking sections (merged (k, 2)).

Exact interval ends (e.g. a distance of exactly 5 m) are included on the prohibited side ("within"), so a vehicle body merely touching an end is allowed (closure of the complement of closed intervals).

Empty input (merged with 0 elements) returns an empty result (reason: if there are 0 prohibited intervals, the whole road is the correct answer. no_stopping_zones can return an empty merged even when facilities exist (when there are only bus stops outside their service hours)).

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 any as input)

course_crank · course_s_curve · course_turnaround · course_slope · course_intersection · course_parallel_parking · course_crossing · course_road

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.