[][src]Struct arcos_kdl::chains::Chain

pub struct Chain { /* fields omitted */ }

Implementation of kinematic chains

segments: a vector with the segments of the chain
num_joints: number of joints (segments with movable joints)
num_ind_joints: Number of joints with independent movement
num_unlocked_joints: Num of enabled/unlocked joints
locked_joints: vector with bools indicating if the joint is locked
coupling_matrix: matrix correlating the joints with their couples\

Methods

impl Chain[src]

pub fn default() -> Chain[src]

Default empty chain

pub fn get_num_segments(&self) -> usize[src]

Returns the total number of segments

pub fn get_num_joints(&self) -> usize[src]

Returns the number of segments with moveable joints

pub fn get_num_ind_joints(&self) -> usize[src]

Returns the number of Independent moveable joints

pub fn get_coupling_matrix(&self) -> DMatrix<f64>[src]

Returns the coupling matrix

pub fn add_segment(&mut self, segment: Segment)[src]

Add a new semgment at the end of the kinematic chain
(Where the end is where the end-effector would be)

pub fn add_chain(&mut self, chain: Chain)[src]

Append an entire chain at the end of this chain

pub fn get_segment(&self, index: usize) -> Segment[src]

Get the segment at the index-th position

pub fn get_locked_joints(&self) -> Vec<bool>[src]

Get the vector with lock information

pub fn set_coupling(
    &mut self,
    new_locked_joints: Vec<bool>,
    new_coupling_matrix: DMatrix<f64>
)
[src]

Set coupling information, locked joints and coupling relations

Trait Implementations

impl Clone for Chain[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

Auto Trait Implementations

impl Send for Chain

impl Sync for Chain

Blanket Implementations

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<SS, SP> SupersetOf<SS> for SP where
    SS: SubsetOf<SP>,