33 #ifndef DART_UTILS_MJCF_DETAIL_MESH_HPP_
34 #define DART_UTILS_MJCF_DETAIL_MESH_HPP_
45 namespace MjcfParser {
56 const std::string&
getName()
const;
57 const std::string&
getFile()
const;
58 const Eigen::Vector3d&
getScale()
const;
90 Eigen::Vector3d
mScale{Eigen::Vector3d::Ones()};
Definition: Compiler.hpp:51
Definition: Default.hpp:54
std::string mFile
Definition: Mesh.hpp:88
bool mTriedToParse
Definition: Mesh.hpp:94
dynamics::MeshShapePtr mMeshShape
Definition: Mesh.hpp:95
Mesh()=default
Default constructor.
Eigen::Vector3d mScale
Definition: Mesh.hpp:90
dynamics::MeshShapePtr createMeshShape() const
Definition: Mesh.cpp:119
common::ResourceRetrieverPtr mRetriever
Definition: Mesh.hpp:93
Errors postprocess(const Compiler &compiler)
Updates attributes and elements that require the compiled parent element.
Definition: Mesh.cpp:111
const Eigen::Vector3d & getScale() const
Definition: Mesh.cpp:146
const std::string & getName() const
Definition: Mesh.cpp:134
const std::string & getFile() const
Definition: Mesh.cpp:140
dynamics::MeshShapePtr getMeshShape() const
Definition: Mesh.cpp:152
std::string mName
Name of this Mesh.
Definition: Mesh.hpp:86
MeshAttributes mAttributes
Definition: Mesh.hpp:83
common::Uri mMeshUri
Definition: Mesh.hpp:92
Errors preprocess(const Compiler &compiler)
Updates attributes and elements that doesn't require any other elements.
Definition: Mesh.cpp:79
Errors read(tinyxml2::XMLElement *element)
Definition: Mesh.cpp:47
Errors compile(const Compiler &compiler)
Updates attributes and elements that require the preprocessed child elements of this <Mesh>.
Definition: Mesh.cpp:99
std::shared_ptr< ResourceRetriever > ResourceRetrieverPtr
Definition: ResourceRetriever.hpp:76
std::shared_ptr< MeshShape > MeshShapePtr
Definition: SmartPointer.hpp:87
std::vector< Error > Errors
Definition: Error.hpp:85
Definition: BulletCollisionDetector.cpp:65
The Uri struct provides URI parsing and merging functionality based on RFC 3986.
Definition: Uri.hpp:87
Intermediate raw data read from the XML file.
Definition: MeshAttributes.hpp:50