A lifecycle defines the operational boundaries of a mode, from its activation to its completion or transition to another mode. It is responsible for initializing, managing, and safely terminating a mode’s operation, ensuring predictable transitions, consistent state handling, and controlled execution of mode-specific logic. A mode represents a functional state of the robot, such as Guard, SLAM, or Navigation, and each mode runs within a lifecycle that determines how and when it starts, executes, and ends.Conceptual Model
Lifecycle – Defines the start, execution, and end of a mode.
Stage – Represents a logical phase within the lifecycle (e.g., startup, entry, active, exit).
Hook – A programmable event point that executes specific actions at key stages.
Mode – The operational context governed by the lifecycle.
In short: Lifecycle controls the flow → Stages define phases → Hooks perform actions → Mode defines behavior.