town_chain — DRIVE town op

• Data kinds: any → table

• Call: import fullseye as fs; fs.ledger.town_chain(elements, *, start=(0.0, 0.0, 0.0), overlap: 'float' = 0.05) -> 'dict' (to call the implementation directly, import drivetown; drivetown.town_chain(elements, *, start=(0.0, 0.0, 0.0), overlap: 'float' = 0.05) -> 'dict'; from the registry, opsdrive.get("town_chain"))

Usage

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

要素を順に継いで配置する: 要素 k+1 の entry を要素 k の exit(の `overlap` 手前)に合わせる剛体配置を閉形式で求め、

:func:drivecourse.course_layout に渡す。

Parameters

----------

elements : drivecourse の要素(dict)の列。順に継ぐ。

start : 最初の要素の entry を置く世界姿勢 (x, y, yaw)。

overlap : 継ぎ目の食い込み [m] (≥ 0。3-D 化で継ぎ目に縁石が立たないため)。要素の中心線より短いこと。

Returns

-------

dict : course_layout の dict に `"chain" を足したもの。`chain = {"overlap", "s_start" (n,) 各要素の entry の

弧長, "lengths" (n,) 各要素の centerline_length, "polyline_lengths" (n,) 中心線の折線長, "total_length"

(= Σ 折線長 − overlap × (n − 1)), "joints": [(exit_k, entry_k+1), ...] 世界姿勢}``。

Raises `ValueError`: 要素が空・layout の入れ子・entry/exit/centerline が無い、start/overlap が非有限、overlap が負、

overlap が要素の中心線より長い。

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_layout · town_world · 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.