specless.strategy.FeedforwardStrategy

class specless.strategy.FeedforwardStrategy(plan: List)[source]

Bases: Strategy

Base class for all feedforward strategy classes.

plan

The plan for the feedforward strategy.

Type:

List

step

The current step in the plan.

Type:

int

Methods

action

Get the action for the feedforward strategy given the state.

reset

Reset the feedforward strategy by setting the current step to 0.

action(state: ObsType) ActType[source]

Get the action for the feedforward strategy given the state.

Parameters:

state (ObsType) – The state for which to get the action.

Returns:

The action for the feedforward strategy, or None if the end of the plan has been reached.

Return type:

ActType

reset()[source]

Reset the feedforward strategy by setting the current step to 0.