AgentSubsystem
Plug-in for AgentRuntimeService — Agent-side router that consumes state from couriers and writes intent values into lobe inputs.
| Declared in | src/libs/libagent/agent/services/subsystems/AgentSubsystem.hpp |
| Inherits | QObject |
| Inherited By | PathFollower |
| Group | agent |
Detailed description
Concrete subsystems (PathFollower, future sensor-fusion, future battery-monitor) subclass AgentSubsystem, override the lifecycle hooks, and get registered via AgentRuntimeService::registerBuiltinSubsystems(). They never touch Runtime directly — every read/write goes through the owning service's RuntimeAccess gate so threading stays clean as new subsystems land.
Lifecycle (called by AgentRuntimeService): onAttach — service activating onDetach — service deactivating onPresetWillChange — before the active runtime drops onPresetChanged — after the active runtime is updated (or null)