public static class InvertedPendulum.InvertedPendulumTerminalFunction extends java.lang.Object implements TerminalFunction
Constructor and Description |
---|
InvertedPendulumTerminalFunction() |
InvertedPendulumTerminalFunction(double maxAbsoluteAngle)
Initializes with a max pole angle as specified in radians
|
Modifier and Type | Method and Description |
---|---|
boolean |
isTerminal(State s) |
public InvertedPendulumTerminalFunction()
public InvertedPendulumTerminalFunction(double maxAbsoluteAngle)
maxAbsoluteAngle
- the maximum pole angle in radians that causes task termination/failure.public boolean isTerminal(State s)
isTerminal
in interface TerminalFunction