Representation of semantic information about the robot. More...
#include <model.h>
Classes | |
struct | CollisionPair |
The definition of a disabled/enabled collision between two links. More... | |
struct | EndEffector |
Representation of an end effector. More... | |
struct | Group |
A group consists of a set of joints and the corresponding descendant links. There are multiple ways to specify a group. Directly specifying joints, links or chains, or referring to other defined groups. More... | |
struct | GroupState |
A named state for a particular group. More... | |
struct | LinkSpheres |
The definition of a list of spheres for a link. More... | |
struct | PassiveJoint |
struct | Sphere |
The definition of a sphere. More... | |
struct | VirtualJoint |
Public Types | |
using | JointPropertyMap = std::map< std::string, PropertyMap > |
using | PropertyMap = std::map< std::string, std::string > |
Public Member Functions | |
void | clear () |
Clear the model. More... | |
const std::vector< CollisionPair > & | getDisabledCollisionPairs () const |
Get the list of pairs of links for which we explicitly disable collision. More... | |
const std::vector< CollisionPair > & | getEnabledCollisionPairs () const |
Get the list of pairs of links for which we explicitly re-enable collision (after having disabled it via a default) More... | |
const std::vector< EndEffector > & | getEndEffectors () const |
Get the list of end effectors defined for this model. More... | |
const std::vector< Group > & | getGroups () const |
Get the list of groups defined for this model. More... | |
const std::vector< GroupState > & | getGroupStates () const |
Get the list of group states defined for this model. More... | |
const JointPropertyMap & | getJointProperties () const |
Get the joint properties map. More... | |
const PropertyMap & | getJointProperties (const std::string &joint_name) const |
Get the joint properties for a particular joint. More... | |
const std::vector< LinkSpheres > & | getLinkSphereApproximations () const |
Get the collision spheres list. More... | |
const std::string & | getName () const |
Get the name of this model. More... | |
const std::vector< std::string > & | getNoDefaultCollisionLinks () const |
Get the list of links that should have collision checking disabled by default (and only selectively enabled) More... | |
const std::vector< PassiveJoint > & | getPassiveJoints () const |
Get the list of known passive joints. More... | |
const std::vector< VirtualJoint > & | getVirtualJoints () const |
Get the list of virtual joints defined for this model. More... | |
bool | initFile (const urdf::ModelInterface &urdf_model, const std::string &filename) |
Load Model given a filename. More... | |
bool | initString (const urdf::ModelInterface &urdf_model, const std::string &xmlstring) |
Load Model from a XML-string. More... | |
bool | initXml (const urdf::ModelInterface &urdf_model, tinyxml2::XMLDocument *xml) |
Load Model from XMLDocument. More... | |
bool | initXml (const urdf::ModelInterface &urdf_model, tinyxml2::XMLElement *xml) |
Load Model from XMLElement. More... | |
Model () | |
~Model () | |
Private Member Functions | |
bool | isValidJoint (const urdf::ModelInterface &urdf_model, const std::string &name) const |
void | loadCollisionDefaults (const urdf::ModelInterface &urdf_model, tinyxml2::XMLElement *robot_xml) |
void | loadCollisionPairs (const urdf::ModelInterface &urdf_model, tinyxml2::XMLElement *robot_xml, const char *tag_name, std::vector< CollisionPair > &pairs) |
void | loadEndEffectors (const urdf::ModelInterface &urdf_model, tinyxml2::XMLElement *robot_xml) |
void | loadGroups (const urdf::ModelInterface &urdf_model, tinyxml2::XMLElement *robot_xml) |
void | loadGroupStates (const urdf::ModelInterface &urdf_model, tinyxml2::XMLElement *robot_xml) |
void | loadJointProperties (const urdf::ModelInterface &urdf_model, tinyxml2::XMLElement *robot_xml) |
void | loadLinkSphereApproximations (const urdf::ModelInterface &urdf_model, tinyxml2::XMLElement *robot_xml) |
void | loadPassiveJoints (const urdf::ModelInterface &urdf_model, tinyxml2::XMLElement *robot_xml) |
void | loadVirtualJoints (const urdf::ModelInterface &urdf_model, tinyxml2::XMLElement *robot_xml) |
Private Attributes | |
std::vector< CollisionPair > | disabled_collision_pairs_ |
std::vector< CollisionPair > | enabled_collision_pairs_ |
std::vector< EndEffector > | end_effectors_ |
std::vector< GroupState > | group_states_ |
std::vector< Group > | groups_ |
JointPropertyMap | joint_properties_ |
std::vector< LinkSpheres > | link_sphere_approximations_ |
std::string | name_ |
std::vector< std::string > | no_default_collision_links_ |
std::vector< PassiveJoint > | passive_joints_ |
std::vector< VirtualJoint > | virtual_joints_ |
using srdf::Model::JointPropertyMap = std::map<std::string, PropertyMap> |
using srdf::Model::PropertyMap = std::map<std::string, std::string> |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
bool srdf::Model::initFile | ( | const urdf::ModelInterface & | urdf_model, |
const std::string & | filename | ||
) |
bool srdf::Model::initString | ( | const urdf::ModelInterface & | urdf_model, |
const std::string & | xmlstring | ||
) |
bool srdf::Model::initXml | ( | const urdf::ModelInterface & | urdf_model, |
tinyxml2::XMLDocument * | xml | ||
) |
Load Model from XMLDocument.
bool srdf::Model::initXml | ( | const urdf::ModelInterface & | urdf_model, |
tinyxml2::XMLElement * | xml | ||
) |
Load Model from XMLElement.
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |