LIRRA  1.0.0
Loading...
Searching...
No Matches
rl_stl.policies.nominal.ClockReference Class Reference

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
 

Detailed Description

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).

Constructor & Destructor Documentation

◆ __init__()

rl_stl.policies.nominal.ClockReference.__init__ (   self,
PatrolPD  nominal,
DiscreteLinearModel  model,
float   input_scale = 1.0 
)

Member Function Documentation

◆ _extend()

None rl_stl.policies.nominal.ClockReference._extend (   self,
int  t 
)
protected

◆ index_at()

int rl_stl.policies.nominal.ClockReference.index_at (   self,
int  k 
)
Waypoint the reference is heading for at step ``k``.

◆ reset()

None rl_stl.policies.nominal.ClockReference.reset (   self,
np.ndarray  x0 
)

◆ window()

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``.

Member Data Documentation

◆ _idx

rl_stl.policies.nominal.ClockReference._idx
protected

◆ index

rl_stl.policies.nominal.ClockReference.index

◆ input_scale

rl_stl.policies.nominal.ClockReference.input_scale

◆ model

rl_stl.policies.nominal.ClockReference.model

◆ nominal

rl_stl.policies.nominal.ClockReference.nominal

◆ U

rl_stl.policies.nominal.ClockReference.U

◆ X

rl_stl.policies.nominal.ClockReference.X

The documentation for this class was generated from the following file: