33 #ifndef DART_UTILS_MJCF_DETAIL_ASSET_HPP_
34 #define DART_UTILS_MJCF_DETAIL_ASSET_HPP_
36 #include <unordered_map>
47 namespace MjcfParser {
88 std::unordered_map<std::string, Mesh*>
mMeshMap;
std::string * name
Definition: SkelParser.cpp:1697
std::size_t index
Definition: SkelParser.cpp:1672
Asset()=default
Default constructor.
Errors postprocess(const Compiler &compiler)
Updates attributes and elements that require the compiled parent element.
Definition: Asset.cpp:129
std::vector< Mesh > mMeshes
Definition: Asset.hpp:87
Errors read(tinyxml2::XMLElement *element)
Definition: Asset.cpp:69
std::unordered_map< std::string, Mesh * > mMeshMap
Definition: Asset.hpp:88
const Mesh & getMesh(std::size_t index) const
Returns <mesh> element at index in <asset>.
Definition: Asset.cpp:49
Errors preprocess(const Compiler &compiler)
Updates attributes and elements that doesn't require any other elements.
Definition: Asset.cpp:99
std::size_t getNumMeshes() const
Returns the number of <mesh> elements in <asset>.
Definition: Asset.cpp:43
Errors compile(const Compiler &compiler)
Updates attributes and elements that require the preprocessed child elements of this <Asset>.
Definition: Asset.cpp:113
Definition: Compiler.hpp:51
Main class to parse MJCF model file.
Definition: MujocoModel.hpp:56
std::vector< Error > Errors
Definition: Error.hpp:85
Definition: BulletCollisionDetector.cpp:65