Planning & Search in Rust
Esc

Loading…

↑↓ move ↵ open Esc close
Colour theme
All algorithms

SPARS

Also known as Sparse Roadmap Spanner

sampling sampling-planning

SPARS builds a sparse spanner: a small graph whose paths are nearly as short as those of a much larger graph. It keeps a dense graph D, a k-nearest PRM* over every valid sample, next to the sparse graph of a few guards; each guard covers the states it sees within a range Δ. A new sample joins D, and it changes the sparse graph only for one of four reasons: no guard sees it (coverage), it joins two components (connectivity), it links two neighbouring guards (interface), or a dense path shows that a sparse path is more than t times too long (quality). Construction stops after many 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); use SPARS when a full PRM* takes too much memory or query time.

Pseudocode

algorithm SPARS(Δ, δ, t, M)input: guard range Δ, interface range δ, stretch t, failure limit Moutput: a sparse roadmap S, a spanner of the dense graph DD, S ← empty graph, empty graphfailures ← 0while failures < M doq ← sample()if not state-valid(q) thencontinueadd-milestone(D, q)                ▷ join the ⌈k ln n⌉ nearest; set representativesV ← guards of S within Δ that see q, closest firstif V = ∅ thenadd-guard(S, q)                  ▷ coverageelse if components(V) has more than one element thenconnect-links(S, add-guard(S, q), V)       ▷ connectivityelse if check-interface(S, q, V) thenskip                             ▷ an edge v₁–v₂, or a guard at q between themelse if not Check-Add-Path(q) thenfailures ← failures + 1continuefailures ← 0                       ▷ reset by a new guard or interface edgereturn Sfunction Check-Add-Path(q)v ← representative(q)for each v′ ≠ v in representatives of the dense neighbours of q closer than δ dofor each v″ in neighbours(S, v) not adjacent to v′ dos-max ← max-spanner-estimate(v, v′, v″)π ← closest-interface-path(D, q, v, v″)if s-max > t · length(π) thenadd-quality-path(S, v′, π, v″)  ▷ π with one dense node at each endreturn truereturn false

In the crates

Lineage

Comes from

builds on PRM*

Led to

Nothing on this site.

Papers

  1. Sparse roadmap spanners for asymptotically near-optimal motion planning Andrew Dobson, Kostas E. Bekris · 2014· The International Journal of Robotics Research introduces doi 10.1177/0278364913498292