bpod_core.fsm.State

class bpod_core.fsm.State

Represents a state in the state machine.

comment: Annotated[str]

An optional comment describing the state.

model_config: ClassVar[ConfigDict] = {'json_schema_extra': {'additionalProperties': False}, 'validate_assignment': True}

Configuration for the State model.

output_actions: Annotated[dict[str, Annotated[int]]]

A dictionary of actions to be executed during the state.

state_change_conditions: Annotated[dict[str, Annotated[str]]]

A dictionary mapping conditions to target states for transitions.

timer: float

The state’s timer in seconds.