pub struct RobotTraj<T: Float = f32> { /* private fields */ }Expand description
Dynamically-sized robot trajectory: a dense RobotPath sampled uniformly at dt.
Implementations§
Source§impl<T: Float> RobotTraj<T>
impl<T: Float> RobotTraj<T>
pub fn new(dt: Duration, path: RobotPath<T>) -> Self
pub fn dt(&self) -> Duration
pub fn path(&self) -> &RobotPath<T>
pub fn path_mut(&mut self) -> &mut RobotPath<T>
pub fn into_path(self) -> RobotPath<T>
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
pub fn dof(&self) -> usize
pub fn duration(&self) -> Duration
pub fn time_at(&self, index: usize) -> Duration
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for RobotTraj<T>
impl<T> RefUnwindSafe for RobotTraj<T>where
T: RefUnwindSafe,
impl<T> Send for RobotTraj<T>where
T: Send,
impl<T> Sync for RobotTraj<T>where
T: Sync,
impl<T> Unpin for RobotTraj<T>
impl<T> UnsafeUnpin for RobotTraj<T>
impl<T> UnwindSafe for RobotTraj<T>where
T: RefUnwindSafe,
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