pub struct Se2State {
pub x: f64,
pub y: f64,
pub theta: f64,
}Expand description
A planar pose: position (x, y) and heading theta in radians.
Shared by Se2, Dubins and ReedsShepp. It is a
struct rather than [f64; 3] so that samplers and nearest-neighbor structures for
Euclidean coordinate vectors cannot be applied to it by accident.
Fields§
§x: f64The x coordinate.
y: f64The y coordinate.
theta: f64The heading in radians, counterclockwise from the x axis. Any finite angle; spaces
return headings wrapped into [-pi, pi).
Implementations§
Trait Implementations§
impl Copy for Se2State
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 Se2State
Auto Trait Implementations§
impl Forget for Se2State
impl Freeze for Se2State
impl Move for Se2State
impl RefUnwindSafe for Se2State
impl Send for Se2State
impl Sync for Se2State
impl Unpin for Se2State
impl UnsafeUnpin for Se2State
impl UnwindSafe for Se2State
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