osm_synthetic — DRIVE japan op

• Data kinds: none → any (an op determined by its arguments alone — it takes no image or data input)

• Call: import fullseye as fs; fs.ledger.osm_synthetic(kind: 'str' = 'grid', *, origin=(35.6716, 139.765), n: 'int' = 3, pitch: 'float' = 80.0) -> 'str' (to call the implementation directly, import drivejapan; drivejapan.osm_synthetic(kind: 'str' = 'grid', *, origin=(35.6716, 139.765), n: 'int' = 3, pitch: 'float' = 80.0) -> 'str'; from the registry, opsdrive.get("osm_synthetic"))

Usage

Minimal OSM XML for tests and fuzzing (the same elements as the real thing: bounds / node / way / tag).

"grid" = an n × n grid (east–west = primary, lanes=2, north–south = residential, default widths). highway=traffic_signals at the central intersection, highway=stop midway along the eastern edge (T-junction), highway=crossing partway along a western edge, railway=level_crossing partway along a southern edge. "line" = a single east–west residential road (length pitch × (n − 1)). Raises ValueError: unknown kind, n < 2, pitch ≤ 0.

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

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 (japan)

osm_parse · osm_road_graph · osm_road_mask · osm_road_loops · osm_route · japan_world · japan_stats · latlon_to_local


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