town_world — DRIVE town op

• Data kinds: table → table

• Call: import fullseye as fs; fs.ledger.town_world(layout, *, props=(), **kwargs) -> 'dict' (to call the implementation directly, import drivetown; drivetown.town_world(layout, *, props=(), **kwargs) -> 'dict'; from the registry, opsdrive.get("town_world"))

Usage

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

:func:driveworld.world_build の薄い包み(`props` と残りの引数をそのまま渡す)に、停止線・信号・踏切の位置の表を

`world["town"]` として足し、踏切の要素ごとに 遮断機つき警報機 2 基・遮断かん(上がり)・踏切の板・列車(遠くに待機) を置く。

``world["town"] = {"stop_lines": [(x, y, yaw, kind)], "signals": [(x, y, yaw, kind)], "crossings": [(x0, y0, x1, y1, s0, s1)],

"gear": [踏切ごとの設備の索引 dict], "total_length"}``(signals は交差点の 4 基全部、yaw = 灯器が向く向き。stop_lines は

左側通行の物)。設備の状態は :func:town_crossing_state で時刻ごとに書き換える。

Raises `ValueError`: layout が town_chain の物でない(world_build の例外はそのまま)。

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_centerline · town_stop_lines · 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.