pub struct VehicleFootprint {
pub front: f64,
pub rear: f64,
pub width: f64,
}Expand description
Rectangular footprint of a car, measured from the rear axle (the point the planner’s poses refer to).
Fields§
§front: f64Rear axle to front bumper [m].
rear: f64Rear axle to rear bumper [m].
width: f64Overall width [m].
Implementations§
Source§impl VehicleFootprint
impl VehicleFootprint
Sourcepub fn covering_circles(&self) -> Vec<(f64, f64)>
pub fn covering_circles(&self) -> Vec<(f64, f64)>
Circles (offset along the heading from the rear axle, radius) that
together cover the rectangle: one per width-sized slice of its length.
At most 16 circles; a degenerate footprint (non-positive width or length) gets a single circle.
Trait Implementations§
Source§impl Clone for VehicleFootprint
impl Clone for VehicleFootprint
impl Copy for VehicleFootprint
Source§impl Debug for VehicleFootprint
impl Debug for VehicleFootprint
Source§impl PartialEq for VehicleFootprint
impl PartialEq for VehicleFootprint
impl StructuralPartialEq for VehicleFootprint
Auto Trait Implementations§
impl Freeze for VehicleFootprint
impl RefUnwindSafe for VehicleFootprint
impl Send for VehicleFootprint
impl Sync for VehicleFootprint
impl Unpin for VehicleFootprint
impl UnsafeUnpin for VehicleFootprint
impl UnwindSafe for VehicleFootprint
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreimpl<T> Scalar for T
§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read more§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.