crossing_gate_state — DRIVE crossing op

• Data kinds: signal → table

• Call: import fullseye as fs; fs.ledger.crossing_gate_state(t, *, t_warning: 'float', t_lower_start: 'float', lower_duration: 'float', t_clear: 'float', raise_duration: 'float') -> 'Dict[str, np.ndarray]' (to call the implementation directly, import drivecrossing; drivecrossing.crossing_gate_state(t, *, t_warning: 'float', t_lower_start: 'float', lower_duration: 'float', t_clear: 'float', raise_duration: 'float') -> 'Dict[str, np.ndarray]'; from the registry, opsdrive.get("crossing_gate_state"))

Usage

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

踏切の状態機械(警報機 + 遮断機)を時刻 t(配列)で評価する。

状態: 0 idle(警報なし・かん上)、1 warning(警報中・かん上)、2 lowering(降下中)、3 closed(遮断中)、

4 raising(列車が過ぎて警報が止まり、かんが上昇中)。警報灯は 1〜3 で点く(解釈基準 5(5)「通過後に警報を停止」)。

かんの角 [rad]: 上 π/2 → 下 0。降下・上昇は余弦の滑らかな形(仮定: 実機の降下曲線は資料なし)。

`entry_forbidden` = 1〜4(33 条 2 項。上昇中も含めるのは保守側の解釈)。

返り値: `state(int)、boom_angle、lamps_on(bool)、entry_forbidden(bool)、t_closed`(降下の終わり)。

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_crossing — py -3.11 examples/poc_driving_crossing.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 (crossing)

crossing_timing_check · crossing_lamp_signal · lamp_pair_phase · crossing_clear_time · exit_room_check · crossing_stop_check · track_sight_distance · sight_triangle_distance


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