|
LIRRA
1.0.0
|
Public Member Functions | |
| __post_init__ (self) | |
| int | dim (self) |
| str | base_spec (self) |
| bool | uncertain (self) |
| bool | interval_predicates (self) |
| str | exact_spec (self) |
| STLFormula | outside_formula (self) |
| STLFormula | formula (self) |
| STLFormula | interval_formula (self) |
| STLFormula | true_formula (self, dict region) |
| dict | sample_true_region (self, np.random.Generator rng) |
| int | horizon (self) |
| int | terminal_block (self) |
| np.ndarray | waypoints (self) |
Public Attributes | |
| spec | |
| half_width | |
| dim | |
| base_spec | |
| dt | |
Static Public Attributes | |
| SpecName | spec = "theta" |
| float | dt = 0.5 |
| float | half_width = 1.41 |
| float | waypoint_radius = 1.52 |
| float | waypoint_tol = 0.1 |
| float | altitude = 1.5 |
| float | workspace = 2.5 |
| float | theta_seconds = 4.0 |
| float | phi_eventually_seconds = 3.0 |
| float | phi_always_seconds = 1.0 |
| float | pred_offset = 0.05 |
| float | pred_rotation = 0.05 |
| bool | nominal_predicates = False |
Protected Member Functions | |
| STLFormula | _temporal (self, STLFormula not_s) |
Geometry and timing of the NAHS patrol experiment (all lengths in metres).
| rl_stl.stl.nahs.PatrolTask.__post_init__ | ( | self | ) |
|
protected |
| str rl_stl.stl.nahs.PatrolTask.base_spec | ( | self | ) |
Temporal structure: ``theta`` (24) or ``phi`` (25).
| int rl_stl.stl.nahs.PatrolTask.dim | ( | self | ) |
Dimension of the STL signal (planar position, or 3-D position for the cube specs).
| str rl_stl.stl.nahs.PatrolTask.exact_spec | ( | self | ) |
The exact counterpart (``theta_plus_u -> theta_plus``).
| STLFormula rl_stl.stl.nahs.PatrolTask.formula | ( | self | ) |
The per-window formula psi (24) or (25) (or its cube version) in steps.
| int rl_stl.stl.nahs.PatrolTask.horizon | ( | self | ) |
Formula horizon ``h`` in steps.
| STLFormula rl_stl.stl.nahs.PatrolTask.interval_formula | ( | self | ) |
psi with the interval predicates (``_u`` specs, also under the nominal ablation).
| bool rl_stl.stl.nahs.PatrolTask.interval_predicates | ( | self | ) |
The planning formula uses interval predicates (``_u`` spec without the nominal ablation).
| STLFormula rl_stl.stl.nahs.PatrolTask.outside_formula | ( | self | ) |
``x notin S`` of the planning formula (interval predicates for the ``_u`` specs).
| dict rl_stl.stl.nahs.PatrolTask.sample_true_region | ( | self, | |
| np.random.Generator | rng | ||
| ) |
A true keep-out region inside the predicate uncertainty set (uniform half-width; 2-D: uniform angle in ``[-pred_rotation, pred_rotation]``; 3-D: uniform axis on the sphere, uniform angle in ``[0, pred_rotation]``). Exact specs: the nominal region.
| int rl_stl.stl.nahs.PatrolTask.terminal_block | ( | self | ) |
Number ``b`` of consecutive terminal states that must lie in one face set. theta needs one outside sample per window: a single terminal state in an invariant subset of ``S^c`` keeps every later window satisfied (b = 1). phi needs ``G_[0,hG]``: ``b = hG + 1`` consecutive outside samples in the same face set.
| STLFormula rl_stl.stl.nahs.PatrolTask.true_formula | ( | self, | |
| dict | region | ||
| ) |
psi with the exact predicates of a true region (:meth:`sample_true_region`).
| bool rl_stl.stl.nahs.PatrolTask.uncertain | ( | self | ) |
``_u`` spec: the true keep-out region is uncertain (scored against a drawn true region).
| np.ndarray rl_stl.stl.nahs.PatrolTask.waypoints | ( | self | ) |
Patrol waypoints ``(n_wp, dim)``: face centres of ``S`` moved outward by ``waypoint_radius - half_width``. 2-D: ``(0, r), (r, 0), (0, -r), (-r, 0)``; cube: ``+y, +x, +z, -y, -x, -z`` (consecutive faces adjacent).
|
static |
| rl_stl.stl.nahs.PatrolTask.base_spec |
| rl_stl.stl.nahs.PatrolTask.dim |
|
static |
| rl_stl.stl.nahs.PatrolTask.dt |
|
static |
| rl_stl.stl.nahs.PatrolTask.half_width |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
| rl_stl.stl.nahs.PatrolTask.spec |
|
static |
|
static |
|
static |
|
static |