|
LIRRA
1.0.0
|
Public Member Functions | |
| __init__ (self, PatrolPD nominal, DiscreteLinearModel model, float input_scale=1.0) | |
| None | reset (self, np.ndarray x0) |
| tuple[np.ndarray, np.ndarray] | window (self, int k, int n) |
| int | index_at (self, int k) |
Public Attributes | |
| nominal | |
| model | |
| input_scale | |
| X | |
| U | |
| index | |
Protected Member Functions | |
| None | _extend (self, int t) |
Protected Attributes | |
| _idx | |
Clock-indexed nominal patrol: the PD law rolled out on ``f_syn`` from the episode start. ``X[t]`` is the nominal state at absolute step ``t`` and ``U[t]`` its input (the same advance-then-command order as :meth:`PatrolPD.rollout`, which this reproduces for ``t = 0..n`` from the same initial state and index). The rollout is deterministic (no disturbance) and extended on demand. ``input_scale`` in ``(0, 1]`` shrinks the input box of the reference (not of the plans).
| rl_stl.policies.nominal.ClockReference.__init__ | ( | self, | |
| PatrolPD | nominal, | ||
| DiscreteLinearModel | model, | ||
| float | input_scale = 1.0 |
||
| ) |
|
protected |
| int rl_stl.policies.nominal.ClockReference.index_at | ( | self, | |
| int | k | ||
| ) |
Waypoint the reference is heading for at step ``k``.
| None rl_stl.policies.nominal.ClockReference.reset | ( | self, | |
| np.ndarray | x0 | ||
| ) |
| tuple[np.ndarray, np.ndarray] rl_stl.policies.nominal.ClockReference.window | ( | self, | |
| int | k, | ||
| int | n | ||
| ) |
``(X[k..k+n] (n+1, nx), U[k..k+n-1] (n, nu))`` for a plan rooted at step ``k >= 0``.
|
protected |
| rl_stl.policies.nominal.ClockReference.index |
| rl_stl.policies.nominal.ClockReference.input_scale |
| rl_stl.policies.nominal.ClockReference.model |
| rl_stl.policies.nominal.ClockReference.nominal |
| rl_stl.policies.nominal.ClockReference.U |
| rl_stl.policies.nominal.ClockReference.X |