pub struct TrajectoryIk<T> {
pub times: Vec<T>,
pub q_start: Array1<T>,
pub q_end: Array1<T>,
}Expand description
Interpolated joint-space targets over a time grid, solved with serial DLS IK.
Fields§
§times: Vec<T>§q_start: Array1<T>§q_end: Array1<T>Implementations§
Source§impl<T: NabledReal + LuProviderScalar> TrajectoryIk<T>
impl<T: NabledReal + LuProviderScalar> TrajectoryIk<T>
Sourcepub fn solve(
&self,
chain: &ChainSpec<T>,
config: &TrajectoryIkConfig<T>,
) -> Result<TrajectoryIkResult<T>, SimError>
pub fn solve( &self, chain: &ChainSpec<T>, config: &TrajectoryIkConfig<T>, ) -> Result<TrajectoryIkResult<T>, SimError>
Solve IK at each time sample by linearly blending q_start → q_end FK targets.
Sourcepub fn solve_targets(
times: &[T],
chain: &ChainSpec<T>,
q_init: &ArrayView1<'_, T>,
targets: &[Transform3<T>],
config: &TrajectoryIkConfig<T>,
) -> Result<TrajectoryIkResult<T>, SimError>
pub fn solve_targets( times: &[T], chain: &ChainSpec<T>, q_init: &ArrayView1<'_, T>, targets: &[Transform3<T>], config: &TrajectoryIkConfig<T>, ) -> Result<TrajectoryIkResult<T>, SimError>
Solve IK from explicit SE(3) targets (one per time sample).
Trait Implementations§
Source§impl<T: Clone> Clone for TrajectoryIk<T>
impl<T: Clone> Clone for TrajectoryIk<T>
Source§fn clone(&self) -> TrajectoryIk<T>
fn clone(&self) -> TrajectoryIk<T>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<T: Debug> Debug for TrajectoryIk<T>
impl<T: Debug> Debug for TrajectoryIk<T>
Source§impl<T: PartialEq> PartialEq for TrajectoryIk<T>
impl<T: PartialEq> PartialEq for TrajectoryIk<T>
Source§fn eq(&self, other: &TrajectoryIk<T>) -> bool
fn eq(&self, other: &TrajectoryIk<T>) -> bool
Tests for
self and other values to be equal, and is used by ==.impl<T> StructuralPartialEq for TrajectoryIk<T>
Auto Trait Implementations§
impl<T> Freeze for TrajectoryIk<T>
impl<T> RefUnwindSafe for TrajectoryIk<T>where
T: RefUnwindSafe,
impl<T> Send for TrajectoryIk<T>where
T: Send,
impl<T> Sync for TrajectoryIk<T>where
T: Sync,
impl<T> Unpin for TrajectoryIk<T>where
T: Unpin,
impl<T> UnsafeUnpin for TrajectoryIk<T>
impl<T> UnwindSafe for TrajectoryIk<T>where
T: UnwindSafe + 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