fullseye

town_chain — DRIVE town op

使い方

要素を順に継いで配置する: 要素 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 が要素の中心線より長い。

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

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

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

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

同カテゴリ(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. この per-op ノートは tools/opdocs.py md が自動生成(手編集しない)。

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