[][src]Struct arcos_kdl::segment::Segment

pub struct Segment { /* fields omitted */ }

Implementation of a kinematic chian segment. This is the joint together with the link.

It is represented by the joint, a frame that transforms from the joint to the end of the link, and an inertia parameter.

Methods

impl Segment[src]

pub fn default() -> Segment[src]

Default segment, with the default joint and no link.

pub fn new(joint: Joint, f_tip: Frame, inertia: RigidBodyInertia) -> Segment[src]

Constructs a segment from the given Joint, link transformation and inertia

pub fn set_joint(&self, new_joint: Joint) -> Segment[src]

Creates a new segment with the given joint

pub fn set_tip_frame(&self, new_f_tip: Frame) -> Segment[src]

Creates a new segment with the given link transformation

pub fn set_inertia(&self, new_inertia: RigidBodyInertia) -> Segment[src]

Creates a new segment with the given inertia

Note that right now this method is useless because dynamics are not yet implemented

pub fn get_joint_type(&self) -> JointType[src]

Returns the type of the internal joint

pub fn pose(&self, joint_state: f64) -> Frame[src]

Get the pose at the tip of the segment given the state of the joint

pub fn twist(&self, joint_state: f64, qdot: f64) -> Twist[src]

Get the twist at the tip of the segment given the state of the joint

Trait Implementations

impl Clone for Segment[src]

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

Performs copy-assignment from source. Read more

impl Copy for Segment[src]

Auto Trait Implementations

impl Send for Segment

impl Sync for Segment

Blanket Implementations

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

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, 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> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<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>,