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.
Sourcepub const fn root_link(&self) -> &LinkId
pub const fn root_link(&self) -> &LinkId
The single root link, resolved when the structure was validated.
Sourcepub fn parent_joint(&self, link: &str) -> Option<&Joint>
pub fn parent_joint(&self, link: &str) -> Option<&Joint>
The joint that attaches link to its parent, absent only for the root.
Sourcepub fn child_joints<'a>(
&'a self,
link: &'a str,
) -> impl Iterator<Item = &'a Joint>
pub fn child_joints<'a>( &'a self, link: &'a str, ) -> impl Iterator<Item = &'a Joint>
Every joint that attaches a child directly beneath link.
Trait Implementations§
Source§impl DescribeWire for Structure
impl DescribeWire for Structure
Source§fn wire_schema() -> WireSchema
fn wire_schema() -> WireSchema
The shape a value of this type puts on the wire.
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