33#ifndef DART_UTILS_MJCF_DETAIL_WORLDBODY_HPP_
34#define DART_UTILS_MJCF_DETAIL_WORLDBODY_HPP_
81 tinyxml2::XMLElement* element,
std::size_t index
Definition SkelParser.cpp:1672
Definition Compiler.hpp:51
Definition Default.hpp:54
Definition Default.hpp:80
Main class to parse MJCF model file.
Definition MujocoModel.hpp:56
Definition Worldbody.hpp:54
std::vector< Geom > mGeoms
Definition Worldbody.hpp:100
Worldbody()=default
Default constructor.
const Body & getRootBody(std::size_t index) const
Returns a root <body> elements at index in <worldbody>.
Definition Worldbody.cpp:225
Errors compile(const Compiler &compiler)
Updates attributes and elements that require the preprocessed child elements of this <worldbody>.
Definition Worldbody.cpp:155
const Geom & getGeom(std::size_t index) const
Returns a root <geom> element at index in <worldbody>.
Definition Worldbody.cpp:201
std::vector< Body > mRootBodies
Definition Worldbody.hpp:102
const Site & getSite(std::size_t index) const
Returns a root <site> element at index in <worldbody>.
Definition Worldbody.cpp:213
common::optional< std::string > mChildClass
Definition Worldbody.hpp:99
std::size_t getNumSites() const
Returns the number of <site> elements in <worldbody>.
Definition Worldbody.cpp:207
Errors preprocess(const Compiler &compiler)
Updates attributes and elements that doesn't require any other elements.
Definition Worldbody.cpp:135
Errors postprocess(const Compiler &compiler)
Updates attributes and elements that require the compiled parent element.
Definition Worldbody.cpp:175
std::size_t getNumGeoms() const
Returns the number of <geom> elements in <worldbody>.
Definition Worldbody.cpp:195
std::vector< Site > mSites
Definition Worldbody.hpp:101
Errors read(tinyxml2::XMLElement *element, const common::optional< Size > &size, const Defaults &defaults, const Default *currentDefault, const common::Uri &baseUri, const common::ResourceRetrieverPtr &retriever)
Definition Worldbody.cpp:46
std::size_t getNumRootBodies() const
Returns the number of root <body> elements in <worldbody>.
Definition Worldbody.cpp:219
std::shared_ptr< ResourceRetriever > ResourceRetrieverPtr
Definition ResourceRetriever.hpp:76
boost::optional< T > optional
Definition Optional.hpp:50
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