pub struct RobotVelocityStatus { /* private fields */ }
Implementations§
Source§impl RobotVelocityStatus
impl RobotVelocityStatus
pub fn new( max_velocity: BaseVelocity, max_acceleration: BaseAcceleration, ) -> Self
pub fn new_as_asymmetric( max_velocity: BaseVelocity, min_velocity: BaseVelocity, max_acceleration: BaseAcceleration, min_acceleration: BaseAcceleration, ) -> Self
pub fn velocity(&self) -> BaseVelocity
pub fn set_velocity(&self, velocity: &BaseVelocity)
pub fn time_since_last_sent(&self) -> f64
pub fn set_log(&self, velocity_log: &BaseVelocity)
pub fn set_velocity_state(&self, velocity: BaseVelocity)
pub fn get_limited_velocity(&self, velocity: &BaseVelocity) -> BaseVelocity
Trait Implementations§
Source§impl Debug for RobotVelocityStatus
impl Debug for RobotVelocityStatus
Source§impl Default for RobotVelocityStatus
impl Default for RobotVelocityStatus
Source§fn default() -> RobotVelocityStatus
fn default() -> RobotVelocityStatus
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !Freeze for RobotVelocityStatus
impl RefUnwindSafe for RobotVelocityStatus
impl Send for RobotVelocityStatus
impl Sync for RobotVelocityStatus
impl Unpin for RobotVelocityStatus
impl UnwindSafe for RobotVelocityStatus
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§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 moreSource§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).Source§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.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self
to the equivalent element of its superset.