|
LIRRA
1.0.0
|
Classes | |
| class | DiscreteLinearModel |
Functions | |
| DiscreteLinearModel | zoh_double_integrator (int dim, float dt) |
| np.ndarray | dlqr (np.ndarray A, np.ndarray B, np.ndarray Q, np.ndarray R) |
Discrete-time linear synthesis models ``f_syn`` and helpers. The synthesis model must be explicit and versioned (model-fidelity rule). :class:`DiscreteLinearModel` records the matrices, timestep, and a version string, and converts to a ``stlpy`` :class:`~stlpy.systems.LinearSystem`. Note: ``stlpy.systems.DoubleIntegrator`` uses a unit timestep with ``B = [0; I]`` (no ``dt^2/2`` position term). :func:`zoh_double_integrator` is the exact zero-order-hold discretisation for an arbitrary ``dt`` and is what this project uses.
| np.ndarray rl_stl.dynamics.linear.dlqr | ( | np.ndarray | A, |
| np.ndarray | B, | ||
| np.ndarray | Q, | ||
| np.ndarray | R | ||
| ) |
Discrete LQR gain ``K`` for ``u = -K x``.
| DiscreteLinearModel rl_stl.dynamics.linear.zoh_double_integrator | ( | int | dim, |
| float | dt | ||
| ) |
Exact ZOH double integrator with state ``[p; v]`` and acceleration input. Output is the full state (``C = I``, ``D = 0``) so STL predicates can use position and velocity.