Struct k::node::NodeBuilder
source · [−]pub struct NodeBuilder<T: RealField> { /* private fields */ }
Expand description
Build a Link<T>
Examples
use k::*;
let l0 = NodeBuilder::new()
.name("link_pitch")
.translation(Translation3::new(0.0, 0.1, 0.0))
.joint_type( JointType::Rotational{axis: Vector3::y_axis()})
.finalize();
println!("{l0:?}");
Implementations
sourceimpl<T> NodeBuilder<T> where
T: RealField + SubsetOf<f64>,
impl<T> NodeBuilder<T> where
T: RealField + SubsetOf<f64>,
pub fn new() -> NodeBuilder<T>
sourcepub fn name(self, name: &str) -> NodeBuilder<T>
pub fn name(self, name: &str) -> NodeBuilder<T>
Set the name of the Link
sourcepub fn joint_type(self, joint_type: JointType<T>) -> NodeBuilder<T>
pub fn joint_type(self, joint_type: JointType<T>) -> NodeBuilder<T>
Set the joint which is connected to this link
sourcepub fn limits(self, limits: Option<Range<T>>) -> NodeBuilder<T>
pub fn limits(self, limits: Option<Range<T>>) -> NodeBuilder<T>
Set joint limits
sourcepub fn origin(self, origin: Isometry3<T>) -> NodeBuilder<T>
pub fn origin(self, origin: Isometry3<T>) -> NodeBuilder<T>
Set the origin transform of this joint
sourcepub fn translation(self, translation: Translation3<T>) -> NodeBuilder<T>
pub fn translation(self, translation: Translation3<T>) -> NodeBuilder<T>
Set the translation of the origin transform of this joint
sourcepub fn rotation(self, rotation: UnitQuaternion<T>) -> NodeBuilder<T>
pub fn rotation(self, rotation: UnitQuaternion<T>) -> NodeBuilder<T>
Set the rotation of the origin transform of this joint
Trait Implementations
sourceimpl<T: Clone + RealField> Clone for NodeBuilder<T>
impl<T: Clone + RealField> Clone for NodeBuilder<T>
sourcefn clone(&self) -> NodeBuilder<T>
fn clone(&self) -> NodeBuilder<T>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl<T: Debug + RealField> Debug for NodeBuilder<T>
impl<T: Debug + RealField> Debug for NodeBuilder<T>
Auto Trait Implementations
impl<T> RefUnwindSafe for NodeBuilder<T> where
T: RefUnwindSafe,
impl<T> Send for NodeBuilder<T>
impl<T> Sync for NodeBuilder<T>
impl<T> Unpin for NodeBuilder<T> where
T: Unpin,
impl<T> UnwindSafe for NodeBuilder<T> where
T: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
sourcefn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct self
from the equivalent element of its
superset. Read more
sourcefn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if self
is actually part of its subset T
(and can be converted to it).
sourcefn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as self.to_subset
but without any property checks. Always succeeds.
sourcefn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts self
to the equivalent element of its superset.
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more