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.
UnknownJointLink
A joint attaches to a link the structure does not define.
MultipleParentJoints
A link has more than one parent joint, so it has no single pose.
SelfReferentialJoint
A joint attaches a link to itself.
RootLinkCount
The link graph is not a single tree.
JointCycle
The link graph contains a cycle, so no link has a defined world pose.
Pose
A pose has a non-finite component.
Mass
A link mass is not finite and non-negative.
Inertia
A link inertia tensor is not finite and positive semidefinite, so it does not describe a physically realizable body.
Geometry
A geometry dimension is not finite and positive.
AxisNotFinite
A joint axis has a non-finite component.
AxisNotOriented
A movable joint has a zero-length axis, so its motion is undefined.
JointLimits
A joint limit is not finite, or its bounds are inverted.
JointDynamics
Joint damping or friction is not finite and non-negative.
UnknownMimicJoint
A joint mimics a joint the structure does not define.
JointSafety
A joint’s software safety limits are not finite, or inverted.
RootLinkName
The robot’s root link is not the conventional ground-projection frame.
MissingBaseLink
The robot structure has no base_link at all.
MisattachedBaseLink
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
impl Debug for StructureError
Source§impl Display for StructureError
impl Display for StructureError
Source§impl Error for StructureError
impl Error for StructureError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()