pub struct TransformedFK<const N: usize, FK: FKChain<N>> { /* private fields */ }Expand description
Wraps an FKChain with an optional prefix (base) and/or suffix (tool) transform.
fkapplies only the prefix — intermediate frames stay in world coordinates without the tool offset.fk_endandjoint_axes_positionsapply both — the end-effector includes the tool tip.
Implementations§
Source§impl<const N: usize, FK: FKChain<N>> TransformedFK<N, FK>
impl<const N: usize, FK: FKChain<N>> TransformedFK<N, FK>
pub fn new(inner: FK) -> Self
pub fn with_prefix(self, prefix: Affine3A) -> Self
pub fn with_suffix(self, suffix: Affine3A) -> Self
pub fn set_prefix(&mut self, prefix: Option<Affine3A>)
pub fn set_suffix(&mut self, suffix: Option<Affine3A>)
pub fn prefix(&self) -> Option<&Affine3A>
pub fn suffix(&self) -> Option<&Affine3A>
pub fn inner(&self) -> &FK
Trait Implementations§
Source§impl<const N: usize, FK: Clone + FKChain<N>> Clone for TransformedFK<N, FK>
impl<const N: usize, FK: Clone + FKChain<N>> Clone for TransformedFK<N, FK>
Source§fn clone(&self) -> TransformedFK<N, FK>
fn clone(&self) -> TransformedFK<N, FK>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<const N: usize, FK: FKChain<N>> FKChain<N> for TransformedFK<N, FK>
impl<const N: usize, FK: FKChain<N>> FKChain<N> for TransformedFK<N, FK>
type Error = <FK as FKChain<N>>::Error
Source§fn max_reach(&self) -> Result<f32, Self::Error>
fn max_reach(&self) -> Result<f32, Self::Error>
Theoretical maximum reach: sum of link lengths (upper bound, ignores joint limits).
fn fk(&self, q: &SRobotQ<N>) -> Result<[Affine3A; N], Self::Error>
fn fk_end(&self, q: &SRobotQ<N>) -> Result<Affine3A, Self::Error>
Source§fn joint_axes_positions(
&self,
q: &SRobotQ<N>,
) -> Result<([Vec3A; N], [Vec3A; N], Vec3A), Self::Error>
fn joint_axes_positions( &self, q: &SRobotQ<N>, ) -> Result<([Vec3A; N], [Vec3A; N], Vec3A), Self::Error>
Returns joint rotation axes and axis-origin positions in world frame at
configuration
q, plus the end-effector position.fn dof(&self) -> usize
Source§fn jacobian(&self, q: &SRobotQ<N>) -> Result<[[f32; N]; 6], Self::Error>
fn jacobian(&self, q: &SRobotQ<N>) -> Result<[[f32; N]; 6], Self::Error>
Geometric Jacobian (6×N) at configuration
q.
Rows 0–2: linear velocity, rows 3–5: angular velocity.Auto Trait Implementations§
impl<const N: usize, FK> Freeze for TransformedFK<N, FK>where
FK: Freeze,
impl<const N: usize, FK> RefUnwindSafe for TransformedFK<N, FK>where
FK: RefUnwindSafe,
impl<const N: usize, FK> Send for TransformedFK<N, FK>
impl<const N: usize, FK> Sync for TransformedFK<N, FK>
impl<const N: usize, FK> Unpin for TransformedFK<N, FK>where
FK: Unpin,
impl<const N: usize, FK> UnsafeUnpin for TransformedFK<N, FK>where
FK: UnsafeUnpin,
impl<const N: usize, FK> UnwindSafe for TransformedFK<N, FK>where
FK: UnwindSafe,
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