Skip to main content

StructureError

Enum StructureError 

Source
pub enum StructureError {
Show 20 variants DuplicateIdentity { kind: StructuralKind, name: String, }, UnknownJointLink { joint: JointId, role: LinkRole, link: LinkId, }, MultipleParentJoints { link: LinkId, }, SelfReferentialJoint { joint: JointId, link: LinkId, }, RootLinkCount { found: usize, }, JointCycle { link: LinkId, }, Pose { owner: PoseOwner, }, Mass { link: LinkId, }, Inertia { link: LinkId, }, Geometry { link: LinkId, }, AxisNotFinite { joint: JointId, }, AxisNotOriented { joint: JointId, }, JointLimits { joint: JointId, }, JointDynamics { joint: JointId, }, UnknownMimicJoint { joint: JointId, mimicked: JointId, }, JointSafety { joint: JointId, }, RootLinkName { expected: LinkId, found: LinkId, }, MissingBaseLink, MisattachedBaseLink, Document(Error),
}
Expand description

A canonical structure that violates the structural invariants.

Variants§

§

DuplicateIdentity

Two structural items share one identity.

Fields

§name: String

A joint attaches to a link the structure does not define.

Fields

§joint: JointId
§link: LinkId
§

MultipleParentJoints

A link has more than one parent joint, so it has no single pose.

Fields

§link: LinkId
§

SelfReferentialJoint

A joint attaches a link to itself.

Fields

§joint: JointId
§link: LinkId
§

RootLinkCount

The link graph is not a single tree.

Fields

§found: usize
§

JointCycle

The link graph contains a cycle, so no link has a defined world pose.

Fields

§link: LinkId
§

Pose

A pose has a non-finite component.

Fields

§

Mass

A link mass is not finite and non-negative.

Fields

§link: LinkId
§

Inertia

A link inertia tensor is not finite and positive semidefinite, so it does not describe a physically realizable body.

Fields

§link: LinkId
§

Geometry

A geometry dimension is not finite and positive.

Fields

§link: LinkId
§

AxisNotFinite

A joint axis has a non-finite component.

Fields

§joint: JointId
§

AxisNotOriented

A movable joint has a zero-length axis, so its motion is undefined.

Fields

§joint: JointId
§

JointLimits

A joint limit is not finite, or its bounds are inverted.

Fields

§joint: JointId
§

JointDynamics

Joint damping or friction is not finite and non-negative.

Fields

§joint: JointId
§

UnknownMimicJoint

A joint mimics a joint the structure does not define.

Fields

§joint: JointId
§mimicked: JointId
§

JointSafety

A joint’s software safety limits are not finite, or inverted.

Fields

§joint: JointId
§

RootLinkName

The robot’s root link is not the conventional ground-projection frame.

Fields

§expected: LinkId
§found: LinkId

The robot structure has no base_link at all.

The robot structure has a base_link that is not rigidly attached directly beneath the root.

§

Document(Error)

The canonical structure document does not match the canonical schema.

Trait Implementations§

Source§

impl Debug for StructureError

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Display for StructureError

Source§

fn fmt(&self, __formatter: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Error for StructureError

Source§

fn source(&self) -> Option<&(dyn Error + 'static)>

Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§

fn description(&self) -> &str

👎Deprecated since 1.42.0:

use the Display impl or to_string()

1.0.0 · Source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0:

replaced by Error::source, which can support downcasting

Source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type-based access to context intended for error reports. Read more
Source§

impl From<Error> for StructureError

Source§

fn from(source: Error) -> Self

Converts to this type from the input type.
Source§

impl From<StructureError> for ModelError

Source§

fn from(source: StructureError) -> Self

Converts to this type from the input type.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.