Go to the documentation of this file.
22 #include <sdf/sdf_config.h>
29 #pragma warning(disable: 4251)
35 inline namespace SDF_VERSION_NAMESPACE {
139 public:
Error() =
default;
145 public:
Error(
const ErrorCode _code,
const std::string &_message);
154 public: std::string Message()
const;
159 public:
explicit operator bool()
const;
168 public:
bool operator==(
const bool _value)
const;
178 private:
ErrorCode code = ErrorCode::NONE;
183 #pragma warning(push)
184 #pragma warning(disable: 4251)
186 private: std::string message =
"";
@ ELEMENT_INVALID
This error indicates that an SDF element is invalid.
@ FRAME_ATTACHED_TO_INVALID
The frame attached-to value does not match the name of an existing frame in the current scope.
@ DUPLICATE_NAME
A duplicate name was found for an element where unique names are required.
namespace for Simulation Description Format parser
Definition: Actor.hh:32
@ ATTRIBUTE_DEPRECATED
This error indicates that an SDF attribute is deprecated.
@ NESTED_MODELS_UNSUPPORTED
Indicates that a DOM object tried to read a nested model.
std::ostream & operator<<(std::ostream &os, ParamStreamer< T > s)
Definition: Param.hh:75
@ MODEL_WITHOUT_LINK
A model without a link.
@ JOINT_PARENT_LINK_INVALID
A joint has an invalid parent link.
@ POSE_RELATIVE_TO_GRAPH_ERROR
The pose relative-to graph has an internal error.
@ POSE_RELATIVE_TO_INVALID
The pose relative-to value does not match the name of an existing frame in the current scope.
@ RESERVED_NAME
A reserved name was used in an entity name attribute.
@ ATTRIBUTE_INVALID
This error indicates that an SDF attribute is invalid.
ErrorCode
Definition: Error.hh:44
@ FRAME_ATTACHED_TO_CYCLE
The frame attached-to graph contains a cycle.
#define SDFORMAT_VISIBLE
Definition: system_util.hh:48
@ LINK_INERTIA_INVALID
A link has invalid inertia.
@ JOINT_PARENT_SAME_AS_CHILD
A joint has the same link specified as parent and child.
@ URI_LOOKUP
A error occured while trying to resolve a URI.
@ MODEL_CANONICAL_LINK_INVALID
A model with an invalid canonical link.
@ DIRECTORY_NONEXISTANT
A filesystem directory does not exist.
@ JOINT_CHILD_LINK_INVALID
A joint has an invalid child link.
@ URI_INVALID
A URI is invalid.
@ POSE_RELATIVE_TO_CYCLE
The pose relative-to graph contains a cycle.
@ ATTRIBUTE_MISSING
Indicates that a required SDF attribute is missing.
@ FILE_READ
Indicates that reading an SDF file failed.
@ FRAME_ATTACHED_TO_GRAPH_ERROR
The frame attached-to graph has an internal error.
@ STRING_READ
Indicates that reading an SDF string failed.
@ ELEMENT_INCORRECT_TYPE
Indicates that an incorrect SDF element type was encountered.
@ ELEMENT_MISSING
Indicates that a required SDF element is missing.
@ ELEMENT_DEPRECATED
This error indicates that an SDF element is deprecated.