rcognita.scenarios.OnlineScenario

class rcognita.scenarios.OnlineScenario(simulator: rcognita.simulator.Simulator, controller: rcognita.controllers.Controller, running_objective: Optional[rcognita.objectives.RunningObjective] = None, no_print: bool = False, is_log: bool = False, is_playback: bool = False, state_init: Optional[numpy.ndarray] = None, action_init=None, time_start: float = 0.0)

Online scenario: the controller and system interact with each other live via exchange of observations and actions, successively in time steps.

__init__(simulator: rcognita.simulator.Simulator, controller: rcognita.controllers.Controller, running_objective: Optional[rcognita.objectives.RunningObjective] = None, no_print: bool = False, is_log: bool = False, is_playback: bool = False, state_init: Optional[numpy.ndarray] = None, action_init=None, time_start: float = 0.0)

Initialize self. See help(type(self)) for accurate signature.

Methods

__init__(simulator, controller[, …])

Initialize self.

perform_post_step_operations()

run()

step()

update_outcome(observation, action, delta)

Sample-to-sample accumulated (summed up or integrated) stage objective.