pub struct Structure { /* private fields */ }Expand description
A normalized robot structure without authored URDF or filesystem state.
Implementations§
Source§impl Structure
impl Structure
Sourcepub fn links(&self) -> impl ExactSizeIterator<Item = &Link>
pub fn links(&self) -> impl ExactSizeIterator<Item = &Link>
Canonical links in deterministic document order.
Sourcepub fn joints(&self) -> impl ExactSizeIterator<Item = &Joint>
pub fn joints(&self) -> impl ExactSizeIterator<Item = &Joint>
Canonical joints in deterministic document order.
Sourcepub fn materials(&self) -> impl ExactSizeIterator<Item = &Material>
pub fn materials(&self) -> impl ExactSizeIterator<Item = &Material>
Canonical materials in deterministic document order.
Sourcepub fn asset_ids(&self) -> impl Iterator<Item = &AssetId>
pub fn asset_ids(&self) -> impl Iterator<Item = &AssetId>
Distinct logical asset identities referenced by this structure.
pub fn parent_joint(&self, link: &str) -> Option<&Joint>
pub fn child_joints<'a>( &'a self, link: &'a str, ) -> impl Iterator<Item = &'a Joint>
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Structure
impl<'de> Deserialize<'de> for Structure
Source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for Structure
impl RefUnwindSafe for Structure
impl Send for Structure
impl Sync for Structure
impl Unpin for Structure
impl UnsafeUnpin for Structure
impl UnwindSafe for Structure
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