specless.strategy.PlanStrategy
- class specless.strategy.PlanStrategy(plan: List)[source]
Bases:
FeedforwardStrategy
Plan strategy class. It ignores all observed states and simply rolls out the pre-computed plan.
Methods
Get the action for the feedforward strategy given the state.
Reset the feedforward strategy by setting the current step to 0.
- action(state: ObsType) ActType
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()
Reset the feedforward strategy by setting the current step to 0.