pub enum Connection {
Radius(f64),
Star {
gamma: f64,
},
KNearest(usize),
StarK {
k_constant: f64,
},
}Expand description
How a new roadmap node picks the nodes it tries to connect to.
Variants§
Radius(f64)
Classic PRM: every node within this fixed radius. Positive and finite.
Star
PRM* (Karaman and Frazzoli 2011): every node within gamma * (ln n / n)^(1/d), with n
counting the new node. Asymptotic optimality needs gamma above
PrmConfig::gamma_lower_bound. Positive and finite.
KNearest(usize)
k-nearest PRM: the k nearest nodes. At least one.
StarK
k-nearest PRM* (Karaman and Frazzoli 2011): the ceil(k_constant * ln n) nearest
nodes, with n counting the new node. Asymptotic optimality needs k_constant above
PrmConfig::k_constant_lower_bound. Positive and finite.
Trait Implementations§
Source§impl Clone for Connection
impl Clone for Connection
impl Copy for Connection
Source§impl Debug for Connection
impl Debug for Connection
Source§impl PartialEq for Connection
impl PartialEq for Connection
impl StructuralPartialEq for Connection
Auto Trait Implementations§
impl Forget for Connection
impl Freeze for Connection
impl Move for Connection
impl RefUnwindSafe for Connection
impl Send for Connection
impl Sync for Connection
impl Unpin for Connection
impl UnsafeUnpin for Connection
impl UnwindSafe for Connection
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more