Source code for brom_drake.systems.network_fsm.fsm_output_definition

from dataclasses import dataclass
import numpy as np
from typing import Union


[docs] @dataclass class FSMOutputDefinition: """ Dataclass to represent the output of a state in a finite state machine. """ output_port_name: str output_port_value: Union[bool, float, np.ndarray, str]
# TODO(kwesi): Eventually it would be cool to add support for # output_port_value to be a function that can be called. # This would allow for more dynamic outputs and can be # checked with the "callable" method.