|
DART 6.12.2
|
#include <Worldbody.hpp>
Public Member Functions | |
| Worldbody ()=default | |
| Default constructor. | |
| std::size_t | getNumRootBodies () const |
| Returns the number of root <body> elements in <worldbody>. | |
| const Body & | getRootBody (std::size_t index) const |
Returns a root <body> elements at index in <worldbody>. | |
| std::size_t | getNumGeoms () const |
| Returns the number of <geom> elements in <worldbody>. | |
| const Geom & | getGeom (std::size_t index) const |
Returns a root <geom> element at index in <worldbody>. | |
| std::size_t | getNumSites () const |
| Returns the number of <site> elements in <worldbody>. | |
| const Site & | getSite (std::size_t index) const |
Returns a root <site> element at index in <worldbody>. | |
Private Member Functions | |
| Errors | read (tinyxml2::XMLElement *element, const common::optional< Size > &size, const Defaults &defaults, const Default *currentDefault, const common::Uri &baseUri, const common::ResourceRetrieverPtr &retriever) |
| Errors | preprocess (const Compiler &compiler) |
| Updates attributes and elements that doesn't require any other elements. | |
| Errors | compile (const Compiler &compiler) |
| Updates attributes and elements that require the preprocessed child elements of this <worldbody>. | |
| Errors | postprocess (const Compiler &compiler) |
| Updates attributes and elements that require the compiled parent element. | |
Private Attributes | |
| common::optional< std::string > | mChildClass |
| std::vector< Geom > | mGeoms |
| std::vector< Site > | mSites |
| std::vector< Body > | mRootBodies |
Friends | |
| class | MujocoModel |
|
default |
Default constructor.
Updates attributes and elements that require the preprocessed child elements of this <worldbody>.
| const Geom & dart::utils::MjcfParser::detail::Worldbody::getGeom | ( | std::size_t | index | ) | const |
Returns a root <geom> element at index in <worldbody>.
| std::size_t dart::utils::MjcfParser::detail::Worldbody::getNumGeoms | ( | ) | const |
Returns the number of <geom> elements in <worldbody>.
| std::size_t dart::utils::MjcfParser::detail::Worldbody::getNumRootBodies | ( | ) | const |
Returns the number of root <body> elements in <worldbody>.
| std::size_t dart::utils::MjcfParser::detail::Worldbody::getNumSites | ( | ) | const |
Returns the number of <site> elements in <worldbody>.
| const Body & dart::utils::MjcfParser::detail::Worldbody::getRootBody | ( | std::size_t | index | ) | const |
Returns a root <body> elements at index in <worldbody>.
| const Site & dart::utils::MjcfParser::detail::Worldbody::getSite | ( | std::size_t | index | ) | const |
Returns a root <site> element at index in <worldbody>.
Updates attributes and elements that require the compiled parent element.
Updates attributes and elements that doesn't require any other elements.
|
private |
|
friend |
|
private |
|
private |
|
private |
|
private |