#include <model.h>
Public Member Functions | |
boost::shared_ptr< const Joint > | getChildJoint (const std::string &name) const |
get child Joint of a Link given name | |
boost::shared_ptr< const Link > | getChildLink (const std::string &name) const |
get child Link of a Link given name | |
boost::shared_ptr< const Joint > | getJoint (const std::string &name) const |
boost::shared_ptr< const Link > | getLink (const std::string &name) const |
void | getLinks (std::vector< boost::shared_ptr< Link > > &links) const |
const std::string & | getName () const |
boost::shared_ptr< const Joint > | getParentJoint (const std::string &name) const |
get parent Joint of a Link given name | |
boost::shared_ptr< const Link > | getParentLink (const std::string &name) const |
get parent Link of a Link given name | |
boost::shared_ptr< const Link > | getRoot (void) const |
bool | initFile (const std::string &filename) |
Load Model given a filename. | |
bool | initParam (const std::string ¶m) |
Load Model given the name of a parameter on the parameter server. | |
bool | initString (const std::string &xmlstring) |
Load Model from a XML-string. | |
bool | initXml (TiXmlDocument *xml) |
Load Model from TiXMLDocument. | |
bool | initXml (TiXmlElement *xml) |
Load Model from TiXMLElement. | |
Model () | |
Public Attributes | |
std::map< std::string, boost::shared_ptr< Joint > > | joints_ |
complete list of Joints | |
std::map< std::string, boost::shared_ptr< Link > > | links_ |
complete list of Links | |
std::map< std::string, boost::shared_ptr< Material > > | materials_ |
complete list of Materials | |
Private Member Functions | |
void | clear () |
void | getLink (const std::string &name, boost::shared_ptr< Link > &link) const |
non-const getLink() | |
boost::shared_ptr< Material > | getMaterial (const std::string &name) const |
non-const getMaterial() | |
bool | initRoot (std::map< std::string, std::string > &parent_link_tree) |
bool | initTree (std::map< std::string, std::string > &parent_link_tree) |
Private Attributes | |
std::string | name_ |
boost::shared_ptr< Link > | root_link_ |
Definition at line 48 of file model.h.
boost::shared_ptr<const Joint> urdf::Model::getChildJoint | ( | const std::string & | name | ) | const |
boost::shared_ptr<const Link> urdf::Model::getChildLink | ( | const std::string & | name | ) | const |
boost::shared_ptr< const Joint > urdf::Model::getJoint | ( | const std::string & | name | ) | const |
void urdf::Model::getLink | ( | const std::string & | name, | |
boost::shared_ptr< Link > & | link | |||
) | const [private] |
boost::shared_ptr< const Link > urdf::Model::getLink | ( | const std::string & | name | ) | const |
void urdf::Model::getLinks | ( | std::vector< boost::shared_ptr< Link > > & | links | ) | const |
boost::shared_ptr< Material > urdf::Model::getMaterial | ( | const std::string & | name | ) | const [private] |
non-const getMaterial()
boost::shared_ptr<const Joint> urdf::Model::getParentJoint | ( | const std::string & | name | ) | const |
boost::shared_ptr<const Link> urdf::Model::getParentLink | ( | const std::string & | name | ) | const |
boost::shared_ptr<const Link> urdf::Model::getRoot | ( | void | ) | const [inline] |
bool urdf::Model::initFile | ( | const std::string & | filename | ) |
bool urdf::Model::initParam | ( | const std::string & | param | ) |
bool urdf::Model::initRoot | ( | std::map< std::string, std::string > & | parent_link_tree | ) | [private] |
bool urdf::Model::initString | ( | const std::string & | xmlstring | ) |
bool urdf::Model::initTree | ( | std::map< std::string, std::string > & | parent_link_tree | ) | [private] |
bool urdf::Model::initXml | ( | TiXmlDocument * | xml | ) |
bool urdf::Model::initXml | ( | TiXmlElement * | xml | ) |
std::map<std::string, boost::shared_ptr<Joint> > urdf::Model::joints_ |
std::map<std::string, boost::shared_ptr<Link> > urdf::Model::links_ |
std::map<std::string, boost::shared_ptr<Material> > urdf::Model::materials_ |
std::string urdf::Model::name_ [private] |
boost::shared_ptr<Link> urdf::Model::root_link_ [private] |