town_stop_lines — DRIVE town op

• Data kinds: table → table

• Call: import fullseye as fs; fs.ledger.town_stop_lines(layout, *, side: 'str' = 'left') -> 'List[dict]' (to call the implementation directly, import drivetown; drivetown.town_stop_lines(layout, *, side: 'str' = 'left') -> 'List[dict]'; from the registry, opsdrive.get("town_stop_lines"))

Usage

Lists the town's stop lines in order of arc length: [{"s", "x", "y", "yaw", "kind", "element", "crossing_zone": (s0, s1) | None, "drawn": bool}, ...].

Intersections: among the element's stop_lines (segments (2, 2)), the one whose endpoint lies on the centreline and which extends to the side of the direction of travel is the stop line of the driving path (1 of 4. For left-hand traffic the left one; for right-hand traffic the mirrored one). Railway crossings: the stop-line position is the closed form crossing surface − stop_setback (drivecourse draws the white line only in the left lane, so it does not depend on side. drawn = whether a white line is drawn on that side). s is the arc length along the centreline, yaw the direction of travel there. Railway crossings also get crossing_zone, the arc-length range of the crossing surface.

Raises ValueError: layout is not from town_chain, side is not left/right.

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_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_rules · town_crossing_state · town_run · town_checks


*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.