Skip to main content

Module meta_control

Module meta_control 

Source
Expand description

Meta-Control: deterministic controller mode selection.

A mode selector drives the shared Controller Arena engine through a [PathTracker] facade and switches between Pure Pursuit, Stanley, and LQR Steer mid-run according to a deterministic policy. Each sub-controller keeps its own internal state, so a switch resumes the selected controller exactly where its own history left off — the selector is evaluated against the same shared simulation clock, speed model, and turn-rate response as the arena’s fixed controllers.

This is the differentiator the repository can show that few others can: all controllers live under one PathTracker contract, so a meta controller that composes them is just another implementor of the same trait.

Structs§

MetaControlRun
Complete deterministic trace for one meta-control policy.
MetaControlSample
One meta-control simulation sample. Identical to ArenaSample plus the controller mode that produced the command.
MetaController
A [PathTracker] that composes the three arena controllers and selects one per step. Holds one tracker instance per controller kind so internal state survives mode switches.

Enums§

MetaControlPolicy
Deterministic rule that picks which controller drives the current step.

Functions§

meta_metrics_from_samples
Recomputes metrics from meta-control samples (same source of truth as the arena).
run_meta_control
Runs one meta-control policy under a shared arena scenario.