public class IPModel extends java.lang.Object implements FullStateModel
FullStateModel.Helper| Constructor and Description |
|---|
IPModel(InvertedPendulum.IPPhysicsParams physParams) |
| Modifier and Type | Method and Description |
|---|---|
State |
sample(State s,
Action a)
Samples and returns a
State from a state transition function. |
java.util.List<StateTransitionProb> |
stateTransitions(State s,
Action a)
|
protected State |
updateState(State s,
double controlForce)
Updates the given state object given the control force.
|
public IPModel(InvertedPendulum.IPPhysicsParams physParams)
public State sample(State s, Action a)
SampleStateModelState from a state transition function.sample in interface SampleStateModels - the source statea - the action to be executed in the source stateStatepublic java.util.List<StateTransitionProb> stateTransitions(State s, Action a)
FullStateModelAction is applied in State s. The returned
list only needs to include transitions that have non-zero probability of occurring.stateTransitions in interface FullStateModels - the source statea - the action to be applied in the source stateStateTransitionProb objects.