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