pub struct KpieceConfig<const K: usize> {
pub cell_size: [f64; K],
pub step_size: f64,
pub max_steps: usize,
pub min_steps: usize,
pub goal_bias: f64,
pub exterior_bias: f64,
pub good_score_factor: f64,
pub bad_score_factor: f64,
pub close_samples: usize,
}Expand description
Settings for Kpiece. The defaults follow OMPL’s control::KPIECE1.
Fields§
§cell_size: [f64; K]The edge lengths of a grid cell in projection space. Positive and finite.
step_size: f64The integration step: every propagation is a sequence of steps of this duration, each
checked with ValidityChecker::check_motion. Positive and finite.
max_steps: usizeThe most integration steps per propagation; the step count is uniform in
1..=max_steps. At least min_steps.
min_steps: usizeThe fewest valid steps for a propagation to count; shorter ones are discarded and penalize their cell. At least one.
goal_bias: f64Probability in [0, 1] of expanding one of the motions closest to the goal instead of
a grid selection. 5 % by default.
exterior_bias: f64The least probability of selecting an exterior cell; the share of exterior cells is used
when it is higher. In [0, 1]; 0.8 by default (the paper suggests 0.7 to 0.8).
good_score_factor: f64The factor applied to a cell’s score after a successful expansion. In (0, 1]; 0.9 by
default.
bad_score_factor: f64The factor applied after a failed expansion. In (0, 1]; 0.45 by default.
close_samples: usizeHow many motions closest to the goal the goal bias chooses from. 30 by default.