Struct robot_description_builder::KinematicTree
source · 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 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
§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
§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 more§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).§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.§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self
to the equivalent element of its superset.