fullseye

osm_road_graph — DRIVE japan op

使い方

OSM の読み込み結果から道路網を作る。

辺 = way の隣り合う節点の対 {"a", "b", "way", "highway", "width", "lanes", "width_from", "oneway", "length", "tags"}。 節点 = {"xy", "degree", "features": [NODE_FEATURES の部分集合], "tags", "edges": [辺の索引]}(辺に使われた節点だけ)。 bbox = (xmin, xmax, ymin, ymax) を渡すと 両端が箱(+ margin)の外 の辺を落とす(片端だけ外の辺は残す = 箱の縁で道が切れる)。 oneway は “yes” / “1” / “true” が順方向、”-1” / “reverse” は a, b を入れ替えて順方向にする。 Raises ValueError: way_types に知らない種別、辺が 1 本も無い。

空の入力(osm が空の dict)は ValueError。

参考(サンプルデータ・文献)

実行できる例(この op を実際に呼ぶ検証済みサンプル)

型が繋がる次の op(table を入力に取れる)

course_layout · course_occupancy · course_contains · world_build · world_camera · world_move · lidar_scan · rss_longitudinal_same

同カテゴリ(japan)

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


Provenance: drivejapan.py — DRIVE operator registry. この per-op ノートは tools/opdocs.py md が自動生成(手編集しない)。

© 2026 Kazufumi Furuse — Fullseye operator documentation. Licensed under Apache-2.0.