pub struct KinematicTree(/* private fields */);Expand description
A representation of a basic Kinematic structure.
KinematicTree’s can be made from a single LinkBuilder by its build_tree() method.
A KinematicTree can be upgraded to a Robot by calling to_robot.
This will allow the Robot to be exported to all supported Robot Description Formats.
Implementations§
Trait Implementations§
Source§impl Clone for KinematicTree
impl Clone for KinematicTree
Source§impl Debug for KinematicTree
impl Debug for KinematicTree
Source§impl<T: BuildLink> From<T> for KinematicTree
impl<T: BuildLink> From<T> for KinematicTree
Source§impl KinematicInterface for KinematicTree
impl KinematicInterface for KinematicTree
Source§fn get_root_link(&self) -> Arc<RwLock<Link>>
fn get_root_link(&self) -> Arc<RwLock<Link>>
Returns the root link of the Kinematic Tree Read more
Source§fn get_newest_link(&self) -> Arc<RwLock<Link>>
fn get_newest_link(&self) -> Arc<RwLock<Link>>
Returns the newest link of the Kinematic Tree Read more
Source§fn get_links(&self) -> Arc<RwLock<HashMap<String, Weak<RwLock<Link>>>>>
fn get_links(&self) -> Arc<RwLock<HashMap<String, Weak<RwLock<Link>>>>>
Retrieves the
Link-index of the Kinematic structure.Source§fn get_joints(&self) -> Arc<RwLock<HashMap<String, Weak<RwLock<Joint>>>>>
fn get_joints(&self) -> Arc<RwLock<HashMap<String, Weak<RwLock<Joint>>>>>
Retrieves the
Joint-index of the Kinematic structure.fn get_materials( &self, ) -> Arc<RwLock<HashMap<String, Arc<RwLock<MaterialData>>>>>
Source§fn purge_links(&self)
fn purge_links(&self)
Source§fn purge_joints(&self)
fn purge_joints(&self)
Source§fn purge_materials(
&self,
) -> Result<(), PoisonError<RwLockWriteGuard<'_, HashMap<String, Arc<RwLock<MaterialData>>>>>>
fn purge_materials( &self, ) -> Result<(), PoisonError<RwLockWriteGuard<'_, HashMap<String, Arc<RwLock<MaterialData>>>>>>
Cleans up orphaned/unused
Material entries from material_index HashMapfn yank_link(&self, name: &str) -> Option<Chained<LinkBuilder>>
Source§fn yank_root(self) -> Result<Chained<LinkBuilder>, YankLinkError>
fn yank_root(self) -> Result<Chained<LinkBuilder>, YankLinkError>
Cosumes the
KinematicInterface implementor and creates a Chained<LinkBuilder> to rebuild it. Read morefn yank_joint(&self, name: &str) -> Option<Chained<JointBuilder>>
Auto Trait Implementations§
impl Freeze for KinematicTree
impl RefUnwindSafe for KinematicTree
impl Send for KinematicTree
impl Sync for KinematicTree
impl Unpin for KinematicTree
impl UnwindSafe for KinematicTree
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn 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 moreSource§fn 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).Source§fn 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.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.