There was an error while loading. Please reload this page.
The Executor connects the discrete strategy controller with continuous handler controllers to create a hybrid controller.
In pseudo-code, assuming fast/slow execution for simplicity:
sensor_states = handlerSubsystem.getSensorValues(sensors) strategy.chooseInitialState(sensor_states, actuator_states) handlerSubsystem.setActuatorValues(strategy.getCurrentState().getActuatorValues()) while not quit: sensor_states = handlerSubsystem.getSensorValues(sensors) next_state = strategy.getNextState(sensor_states) handlerSubsystem.setActuatorValues(next_state.getActuatorValues()) strategy.setState(next_state)