[][src]Struct k::node::JointRefGuard

pub struct JointRefGuard<'a, T> where
    T: RealField
{ /* fields omitted */ }

Methods from Deref<Target = Joint<T>>

pub fn joint_position(&self) -> Option<T>[src]

Returns the position (angle)

pub fn origin(&self) -> &Isometry3<T>[src]

pub fn joint_velocity(&self) -> Option<T>[src]

Returns the velocity

pub fn local_transform(&self) -> Isometry3<T>[src]

Calculate and returns the transform of the end of this joint

Examples

extern crate nalgebra as na;
extern crate k;

// Create linear joint with X-axis
let mut lin = k::Joint::<f64>::new("l0", k::JointType::Linear { axis: na::Vector3::x_axis() });
assert_eq!(lin.local_transform().translation.vector.x, 0.0);
lin.set_joint_position(-1.0).unwrap();
assert_eq!(lin.local_transform().translation.vector.x, -1.0);

pub fn world_transform(&self) -> Option<Isometry3<T>>[src]

Get the result of forward kinematics

The value is updated by Chain::update_transforms

pub fn world_velocity(&self) -> Option<Velocity<T>>[src]

pub fn is_movable(&self) -> bool[src]

Trait Implementations

impl<'a, T> Deref for JointRefGuard<'a, T> where
    T: RealField
[src]

type Target = Joint<T>

The resulting type after dereferencing.

Auto Trait Implementations

impl<'a, T> !RefUnwindSafe for JointRefGuard<'a, T>

impl<'a, T> !Send for JointRefGuard<'a, T>

impl<'a, T> !Sync for JointRefGuard<'a, T>

impl<'a, T> Unpin for JointRefGuard<'a, T>

impl<'a, T> !UnwindSafe for JointRefGuard<'a, T>

Blanket Implementations

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

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

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

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

impl<T, U> Into<U> for T where
    U: From<T>, 
[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>, 

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.