pub struct SparsConfig {
pub sparse_delta: f64,
pub dense_delta: f64,
pub stretch: f64,
pub max_failures: usize,
pub check_both_directions: bool,
}Expand description
Settings for Spars. The defaults follow OMPL’s SPARS.
Fields§
§sparse_delta: f64Delta: the visibility range of a guard. OMPL uses a quarter of the space’s extent.
Positive and finite.
dense_delta: f64delta: two dense nodes closer than this, joined by a dense edge and represented by
different guards, mark an interface between those guards. OMPL uses a thousandth of
the extent. Positive, finite and below sparse_delta.
The dense graph connects each node to its k ln n nearest neighbors, so interfaces
appear only where dense edges get shorter than dense_delta; too small a value starves
the quality criterion until the dense graph is very large.
stretch: f64t: the stretch factor the quality criterion enforces. Above one; 3 by default.
max_failures: usizeM: construction is complete after this many consecutive valid samples for which all
four criteria failed. 1000 by default.
check_both_directions: boolCheck every sparse and dense edge in both directions, for directional checkers (see
PrmConfig::check_both_directions). Off by
default.