pub struct UniformSe2 { /* private fields */ }Expand description
Samples poses uniformly: positions from an axis-aligned box, headings from [-pi, pi).
Works for Se2, Dubins and ReedsShepp. It does
not sample informed sets directly; informed planners fall back to rejection.
Implementations§
Trait Implementations§
Source§impl Clone for UniformSe2
impl Clone for UniformSe2
impl Copy for UniformSe2
Source§impl Debug for UniformSe2
impl Debug for UniformSe2
Source§impl PartialEq for UniformSe2
impl PartialEq for UniformSe2
Source§impl Sampler<Se2State> for UniformSe2
impl Sampler<Se2State> for UniformSe2
Source§fn sample_informed<Sp, R>(
&mut self,
space: &Sp,
rng: &mut R,
start: &S,
goal: &S,
max_cost: f64,
) -> Option<S>
fn sample_informed<Sp, R>( &mut self, space: &Sp, rng: &mut R, start: &S, goal: &S, max_cost: f64, ) -> Option<S>
Draws a state directly from the informed set
{x : d(start, x) + d(x, goal) <= max_cost} within this sampler’s support, or returns
None to make the planner fall back to rejection sampling from Sampler::sample. Read moreimpl StructuralPartialEq for UniformSe2
Auto Trait Implementations§
impl Forget for UniformSe2
impl Freeze for UniformSe2
impl Move for UniformSe2
impl RefUnwindSafe for UniformSe2
impl Send for UniformSe2
impl Sync for UniformSe2
impl Unpin for UniformSe2
impl UnsafeUnpin for UniformSe2
impl UnwindSafe for UniformSe2
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