skill_test_score — DRIVE long op

• Data kinds: table → table

• Call: import fullseye as fs; fs.ledger.skill_test_score(events, venue: 'str' = '場内', thresholds: 'Optional[dict]' = None) -> 'Dict[str, object]' (to call the implementation directly, import drivelong; drivelong.skill_test_score(events, venue: 'str' = '場内', thresholds: 'Optional[dict]' = None) -> 'Dict[str, object]'; from the registry, opsdrive.get("skill_test_score"))

Usage

Totals the demerit points of the driving skill test (National Police Agency, notice Hei-Un-Hatsu No. 12, Reiwa 4, detailed demerit items).

events : sequence of dicts.

• {"kind": "stop", "gap": 前端から停止線 [m] (負 = 越えた), "signal": "red" など(任意)} → gap < 0 or gap > stop_gap_max gives improper stopping position. On a red signal, if the overrun > signal_violation_over, signal violation (test terminated).

• {"kind": "brake", "stages": 段数} (段数 = number of stages) → 1 stage or fewer gives improper braking operation ("when the brake is not applied in several stages").

• {"kind": "start", "rollback": 逆行 [m] (その場所の累計), "delay": 発進の合図から動き出すまで [s] (任意)} → rollback small / medium / large (large = test terminated); delay > start_delay_max gives slow start.

• {"kind": "hold", "creep": 保持中に動いた距離 [m]} → creep > creep_eps gives improper braking operation (creep).

venue : "場内" (on the course) or "路上" (on the road) (some items have different points).

Returns

dict : deductions (sequence of (細目, 点, 説明) (item, points, description); points None = test terminated), total (sum of deductions), score (100 − total;

None if the test was terminated), test_stopped, passed (70 points or more for a Class 1 licence), thresholds.

Raises ValueError: invalid venue, unknown event kind, or non-finite values.

Empty input (events with 0 items) returns an empty result (reason: a drive with 0 deduction events earns full marks, and that is the correct answer).

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)

• gallery_drive_lateral_env — py -3.11 examples/gallery_drive_lateral_env.py

• poc_driving_longitudinal — py -3.11 examples/poc_driving_longitudinal.py

• poc_driving_weather — py -3.11 examples/poc_driving_weather.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 (long)

long_params · road_profile · road_eval · long_simulate · long_energy_residual · stopping_distance_grade · stop_line_plan · plan_command


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