SPARS2
Also known as Sparse Roadmap Spanner 2
sampling sampling-planning
SPARS2 builds a sparse spanner like SPARS does: a small graph whose paths are nearly as short as the best paths. It keeps no dense graph, so it uses much less memory. SPARS2 tests each valid sample for coverage (no guard sees it within Δ), connectivity (it joins two components) and interface (it links two neighbouring guards); if all three fail, it samples near the sample to find where the regions of the guards meet, and it adds a shortcut when a path through a guard is more than t times too long. Construction stops after M samples in a row change nothing. With high probability, the paths then cost at most about t times the optimum plus a term in Δ (asymptotic near-optimality).
Pseudocode
algorithm SPARS2(Δ, δ, t, M, k)input: guard range Δ, near-sample range δ, stretch t, failure limit M, near samples koutput: a sparse roadmap SS ← empty graphfailures ← 0while failures < M doq ← sample()if state-valid(q) thenV ← guards of S within Δ that see q, closest firstif V = ∅ thenadd-guard(S, q) ▷ coverageelse if not check-connectivity(q, V) and not check-interface(q, V) thenCheck-Quality(q, first(V))if S changed thenfailures ← 0elsefailures ← failures + 1return Sprocedure Check-Quality(q, v)R ← ∅for j in 1, …, k doσ ← sample-near(q, δ) ▷ valid and reachable from qif σ = nil thencontinuer ← closest guard that sees σif r = nil thenadd-guard(S, σ) ▷ coveragereturnif r ≠ v thenupdate-pair-points(v, q, r, σ) ▷ keeps the closer border pointupdate-pair-points(r, σ, v, q)R ← R ∪ {r}for each u in {v} ∪ R dotest-add-path(u) ▷ shortcut if a path via u is over t× too longIn the crates
sampling-planningSparse roadmap spanner built without a dense graph.
Papers
- Improving sparse roadmap spanners Andrew Dobson, Kostas E. Bekris · 2013· 2013 IEEE International Conference on Robotics and Automation