DART
6.10.1
|
#include <Worldbody.hpp>
Public Member Functions | |
Worldbody ()=default | |
Default constructor. More... | |
std::size_t | getNumRootBodies () const |
Returns the number of root <body> elements in <worldbody>. More... | |
const Body & | getRootBody (std::size_t index) const |
Returns a root <body> elements at index in <worldbody>. More... | |
std::size_t | getNumGeoms () const |
Returns the number of <geom> elements in <worldbody>. More... | |
const Geom & | getGeom (std::size_t index) const |
Returns a root <geom> element at index in <worldbody>. More... | |
std::size_t | getNumSites () const |
Returns the number of <site> elements in <worldbody>. More... | |
const Site & | getSite (std::size_t index) const |
Returns a root <site> element at index in <worldbody>. More... | |
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. More... | |
Errors | compile (const Compiler &compiler) |
Updates attributes and elements that require the preprocessed child elements of this <worldbody>. More... | |
Errors | postprocess (const Compiler &compiler) |
Updates attributes and elements that require the compiled parent element. More... | |
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 |