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

pub struct JointRefGuard<'a, T> where
    T: Real
{ /* 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: Real
[src]

type Target = Joint<T>

The resulting type after dereferencing.

Auto Trait Implementations

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

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

Blanket Implementations

impl<T> From for T
[src]

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

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

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

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

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

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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

impl<T> Same for T

type Output = T

Should always be Self

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