pub enum ParseError {
Show 17 variants
IoError(Error, String),
XmlError(Error),
NoRobotTag,
VisualWithoutGeometry(String),
GeometryWithoutShape(String),
MissingParameter(String),
InvalidParameter(String),
NameMissing(String),
MaterialWithoutColor(String),
UnknownJointType(String),
UnknownTag(String),
ModelError(ModelError),
UnknownLinkName(String),
InvalidFilePath(String),
InertialWithoutInertia(String),
InertialWithoutMass(String),
UnknownParent(String),
}Expand description
Error types that can occur while parsing an URDF file.
Variants§
IoError(Error, String)
IO error occurred while reading the file.
XmlError(Error)
Error occurred while parsing XML.
NoRobotTag
The URDF file does not contain a <robot> tag.
VisualWithoutGeometry(String)
A <visual> tag is present without a corresponding <geometry> tag.
GeometryWithoutShape(String)
A <geometry> tag is present without a corresponding shape tag.
MissingParameter(String)
The given required parameter is missing in the URDF.
InvalidParameter(String)
The given parameter has an invalid value.
NameMissing(String)
A joint, link, or material is missing a name attribute.
MaterialWithoutColor(String)
A material is defined without a color.
UnknownJointType(String)
An unknown joint type was encountered.
UnknownTag(String)
An unknown tag was encountered in the URDF.
ModelError(ModelError)
An error occurred while building the model
UnknownLinkName(String)
A link is referenced that does not exist in the model.
InvalidFilePath(String)
The file path provided for a mesh is invalid.
InertialWithoutInertia(String)
An inertial tag is present without inertia data.
InertialWithoutMass(String)
An inertial tag is present without mass data.
UnknownParent(String)
A frame references a parent that does not exist.
Trait Implementations§
Source§impl Debug for ParseError
impl Debug for ParseError
Auto Trait Implementations§
impl Freeze for ParseError
impl !RefUnwindSafe for ParseError
impl Send for ParseError
impl Sync for ParseError
impl Unpin for ParseError
impl UnsafeUnpin for ParseError
impl !UnwindSafe for ParseError
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
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
self to the equivalent element of its superset.