pub struct Guidance {
pub twist: Twist,
pub distance_m: f64,
pub heading_error_deg: f32,
pub arrived: bool,
}Expand description
The steering command toward a waypoint, with the geometry behind it.
Fields§
§twist: TwistThe body twist to drive: a forward speed and a yaw rate toward the target.
distance_m: f64The remaining distance to the target, in metres.
heading_error_deg: f32The heading error to the target, in degrees, in (-180, 180].
arrived: boolWhether the target is within the arrival radius.
Trait Implementations§
impl Copy for Guidance
impl StructuralPartialEq for Guidance
Auto Trait Implementations§
impl Freeze for Guidance
impl RefUnwindSafe for Guidance
impl Send for Guidance
impl Sync for Guidance
impl Unpin for Guidance
impl UnsafeUnpin for Guidance
impl UnwindSafe for Guidance
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