Namespaces | Functions
parser.hh File Reference
#include <string>
#include "sdf/SDFImpl.hh"
#include "sdf/sdf_config.h"
#include "sdf/system_util.hh"

Go to the source code of this file.

Namespaces

 sdf
 namespace for Simulation Description Format parser
 
 sdf::SDF_VERSION_NAMESPACE
 

Functions

GZ_SDFORMAT_VISIBLE bool sdf::SDF_VERSION_NAMESPACE::checkCanonicalLinkNames (const sdf::Root *_root)
 Check that for each model, the canonical_link attribute value matches the name of a link in the model if the attribute is set and not empty. More...
 
GZ_SDFORMAT_VISIBLE bool sdf::SDF_VERSION_NAMESPACE::checkCanonicalLinkNames (sdf::Errors &_errors, const sdf::Root *_root)
 Check that for each model, the canonical_link attribute value matches the name of a link in the model if the attribute is set and not empty. More...
 
GZ_SDFORMAT_VISIBLE bool sdf::SDF_VERSION_NAMESPACE::checkFrameAttachedToGraph (const sdf::Root *_root)
 For the world and each model, check that the attached_to graphs build without errors and have no cycles. More...
 
GZ_SDFORMAT_VISIBLE bool sdf::SDF_VERSION_NAMESPACE::checkFrameAttachedToGraph (sdf::Errors &_errors, const sdf::Root *_root)
 For the world and each model, check that the attached_to graphs build without errors and have no cycles. More...
 
GZ_SDFORMAT_VISIBLE bool sdf::SDF_VERSION_NAMESPACE::checkFrameAttachedToNames (const sdf::Root *_root)
 Check that for each frame, the attached_to attribute value does not match its own frame name but does match the name of a link, joint, or other frame in the model if the attribute is set and not empty. More...
 
GZ_SDFORMAT_VISIBLE bool sdf::SDF_VERSION_NAMESPACE::checkFrameAttachedToNames (sdf::Errors &_errors, const sdf::Root *_root)
 Check that for each frame, the attached_to attribute value does not match its own frame name but does match the name of a link, joint, or other frame in the model if the attribute is set and not empty. More...
 
GZ_SDFORMAT_VISIBLE void sdf::SDF_VERSION_NAMESPACE::checkJointAxisExpressedInValues (const sdf::Root *_root, Errors &_errors)
 Check that all joint axes in contained joints specify xyz expressed-in names that match the names of valid frames. More...
 
GZ_SDFORMAT_VISIBLE bool sdf::SDF_VERSION_NAMESPACE::checkJointParentChildNames (const sdf::Root *_root)
 Check that all joints in contained models specify parent and child link names that match the names of sibling links. More...
 
GZ_SDFORMAT_VISIBLE GZ_DEPRECATED(13) bool checkJointParentChildLinkNames(const sdf GZ_SDFORMAT_VISIBLE void sdf::SDF_VERSION_NAMESPACE::checkJointParentChildNames (const sdf::Root *_root, Errors &_errors)
 Check that all joints in contained models specify parent and child link names that match the names of sibling links. More...
 
GZ_SDFORMAT_VISIBLE bool sdf::SDF_VERSION_NAMESPACE::checkPoseRelativeToGraph (const sdf::Root *_root)
 For the world and each model, check that the attached_to graphs build without errors and have no cycles. More...
 
GZ_SDFORMAT_VISIBLE bool sdf::SDF_VERSION_NAMESPACE::checkPoseRelativeToGraph (sdf::Errors &_errors, const sdf::Root *_root)
 For the world and each model, check that the attached_to graphs build without errors and have no cycles. More...
 
GZ_SDFORMAT_VISIBLE std::string sdf::SDF_VERSION_NAMESPACE::computeMergedModelProxyFrameName (const std::string &_modelName)
 Function to compute a merged model's proxy frame name. More...
 
GZ_SDFORMAT_VISIBLE bool sdf::SDF_VERSION_NAMESPACE::convertFile (const std::string &_filename, const std::string &_version, const ParserConfig &_config, SDFPtr _sdf)
 Convert an SDF file to a specific SDF version. More...
 
GZ_SDFORMAT_VISIBLE bool sdf::SDF_VERSION_NAMESPACE::convertFile (const std::string &_filename, const std::string &_version, SDFPtr _sdf)
 Convert an SDF file to a specific SDF version. More...
 
GZ_SDFORMAT_VISIBLE sdf::Errors sdf::SDF_VERSION_NAMESPACE::convertFile (SDFPtr _sdf, const std::string &_filename, const std::string &_version, const ParserConfig &_config=ParserConfig::GlobalConfig())
 Convert an SDF file to a specific SDF version. More...
 
GZ_SDFORMAT_VISIBLE bool sdf::SDF_VERSION_NAMESPACE::convertString (const std::string &_sdfString, const std::string &_version, const ParserConfig &_config, SDFPtr _sdf)
 Convert an SDF string to a specific SDF version. More...
 
GZ_SDFORMAT_VISIBLE bool sdf::SDF_VERSION_NAMESPACE::convertString (const std::string &_sdfString, const std::string &_version, SDFPtr _sdf)
 Convert an SDF string to a specific SDF version. More...
 
GZ_SDFORMAT_VISIBLE sdf::Errors sdf::SDF_VERSION_NAMESPACE::convertString (SDFPtr _sdf, const std::string &_sdfString, const std::string &_version, const ParserConfig &_config=ParserConfig::GlobalConfig())
 Convert an SDF string to a specific SDF version. More...
 
GZ_SDFORMAT_VISIBLE std::string sdf::SDF_VERSION_NAMESPACE::getModelFilePath (const std::string &_modelDirPath)
 Get the file path to the model file. More...
 
GZ_SDFORMAT_VISIBLE std::string sdf::SDF_VERSION_NAMESPACE::getModelFilePath (sdf::Errors &_errors, const std::string &_modelDirPath)
 Get the file path to the model file. More...
 
GZ_SDFORMAT_VISIBLE bool sdf::SDF_VERSION_NAMESPACE::init (sdf::Errors &_errors, SDFPtr _sdf, const ParserConfig &_config)
 Initialize the SDF interface from the embedded root spec file. More...
 
GZ_SDFORMAT_VISIBLE bool sdf::SDF_VERSION_NAMESPACE::init (SDFPtr _sdf)
 Initialize the SDF interface from the embedded root spec file. More...
 
GZ_SDFORMAT_VISIBLE bool sdf::SDF_VERSION_NAMESPACE::init (SDFPtr _sdf, const ParserConfig &_config)
 Initialize the SDF interface from the embedded root spec file. More...
 
GZ_SDFORMAT_VISIBLE bool sdf::SDF_VERSION_NAMESPACE::initFile (const std::string &_filename, const ParserConfig &_config, ElementPtr _sdf)
 Initialize an SDFElement interface using a file. More...
 
GZ_SDFORMAT_VISIBLE bool sdf::SDF_VERSION_NAMESPACE::initFile (const std::string &_filename, const ParserConfig &_config, ElementPtr _sdf, sdf::Errors &_errors)
 Initialize an SDFElement interface using a file. More...
 
GZ_SDFORMAT_VISIBLE bool sdf::SDF_VERSION_NAMESPACE::initFile (const std::string &_filename, const ParserConfig &_config, SDFPtr _sdf)
 Initialize the SDF interface using a file. More...
 
GZ_SDFORMAT_VISIBLE bool sdf::SDF_VERSION_NAMESPACE::initFile (const std::string &_filename, const ParserConfig &_config, SDFPtr _sdf, sdf::Errors &_errors)
 Initialize the SDF interface using a file. More...
 
GZ_SDFORMAT_VISIBLE bool sdf::SDF_VERSION_NAMESPACE::initFile (const std::string &_filename, ElementPtr _sdf)
 Initialize an SDF Element interface using a file. More...
 
GZ_SDFORMAT_VISIBLE bool sdf::SDF_VERSION_NAMESPACE::initFile (const std::string &_filename, SDFPtr _sdf)
 Initialize the SDF interface using a file. More...
 
GZ_SDFORMAT_VISIBLE bool sdf::SDF_VERSION_NAMESPACE::initString (const std::string &_xmlString, const ParserConfig &_config, SDFPtr _sdf)
 Initialize the SDF interface using a string. More...
 
GZ_SDFORMAT_VISIBLE bool sdf::SDF_VERSION_NAMESPACE::initString (const std::string &_xmlString, const ParserConfig &_config, SDFPtr _sdf, sdf::Errors &_errors)
 Initialize the SDF interface using a string. More...
 
GZ_SDFORMAT_VISIBLE bool sdf::SDF_VERSION_NAMESPACE::initString (const std::string &_xmlString, SDFPtr _sdf)
 Initialize the SDF interface using a string. More...
 
GZ_SDFORMAT_VISIBLE sdf::SDFPtr sdf::SDF_VERSION_NAMESPACE::readFile (const std::string &_filename)
 Populate the SDF values from a file. More...
 
GZ_SDFORMAT_VISIBLE sdf::SDFPtr sdf::SDF_VERSION_NAMESPACE::readFile (const std::string &_filename, const ParserConfig &_config, Errors &_errors)
 Populate the SDF values from a file. More...
 
GZ_SDFORMAT_VISIBLE bool sdf::SDF_VERSION_NAMESPACE::readFile (const std::string &_filename, const ParserConfig &_config, SDFPtr _sdf, Errors &_errors)
 Populate the SDF values from a file. More...
 
GZ_SDFORMAT_VISIBLE sdf::SDFPtr sdf::SDF_VERSION_NAMESPACE::readFile (const std::string &_filename, Errors &_errors)
 Populate the SDF values from a file. More...
 
GZ_SDFORMAT_VISIBLE bool sdf::SDF_VERSION_NAMESPACE::readFile (const std::string &_filename, SDFPtr _sdf)
 Populate the SDF values from a file. More...
 
GZ_SDFORMAT_VISIBLE bool sdf::SDF_VERSION_NAMESPACE::readFile (const std::string &_filename, SDFPtr _sdf, Errors &_errors)
 Populate the SDF values from a file. More...
 
GZ_SDFORMAT_VISIBLE bool sdf::SDF_VERSION_NAMESPACE::readFileWithoutConversion (const std::string &_filename, const ParserConfig &_config, SDFPtr _sdf, Errors &_errors)
 Populate the SDF values from a file without converting to the latest SDF version. More...
 
GZ_SDFORMAT_VISIBLE bool sdf::SDF_VERSION_NAMESPACE::readFileWithoutConversion (const std::string &_filename, SDFPtr _sdf, Errors &_errors)
 Populate the SDF values from a file without converting to the latest SDF version. More...
 
GZ_SDFORMAT_VISIBLE bool sdf::SDF_VERSION_NAMESPACE::readString (const std::string &_xmlString, const ParserConfig &_config, ElementPtr _sdf, Errors &_errors)
 Populate the SDF values from a string. More...
 
GZ_SDFORMAT_VISIBLE bool sdf::SDF_VERSION_NAMESPACE::readString (const std::string &_xmlString, const ParserConfig &_config, SDFPtr _sdf, Errors &_errors)
 Populate the SDF values from a string. More...
 
GZ_SDFORMAT_VISIBLE bool sdf::SDF_VERSION_NAMESPACE::readString (const std::string &_xmlString, ElementPtr _sdf)
 Populate the SDF values from a string. More...
 
GZ_SDFORMAT_VISIBLE bool sdf::SDF_VERSION_NAMESPACE::readString (const std::string &_xmlString, ElementPtr _sdf, Errors &_errors)
 Populate the SDF values from a string. More...
 
GZ_SDFORMAT_VISIBLE bool sdf::SDF_VERSION_NAMESPACE::readString (const std::string &_xmlString, SDFPtr _sdf)
 Populate the SDF values from a string. More...
 
GZ_SDFORMAT_VISIBLE bool sdf::SDF_VERSION_NAMESPACE::readString (const std::string &_xmlString, SDFPtr _sdf, Errors &_errors)
 Populate the SDF values from a string. More...
 
GZ_SDFORMAT_VISIBLE bool sdf::SDF_VERSION_NAMESPACE::readStringWithoutConversion (const std::string &_xmlString, const ParserConfig &_config, SDFPtr _sdf, Errors &_errors)
 Populate the SDF values from a string. More...
 
GZ_SDFORMAT_VISIBLE bool sdf::SDF_VERSION_NAMESPACE::readStringWithoutConversion (const std::string &_xmlString, SDFPtr _sdf, Errors &_errors)
 Populate the SDF values from a string without converting to the latest SDF version. More...
 
GZ_SDFORMAT_VISIBLE bool sdf::SDF_VERSION_NAMESPACE::recursiveSameTypeUniqueNames (sdf::ElementPtr _elem)
 Check that all sibling elements of the same type have unique names. More...
 
GZ_SDFORMAT_VISIBLE bool sdf::SDF_VERSION_NAMESPACE::recursiveSameTypeUniqueNames (sdf::Errors &_errors, sdf::ElementPtr _elem)
 Check that all sibling elements of the same type have unique names. More...
 
GZ_SDFORMAT_VISIBLE bool sdf::SDF_VERSION_NAMESPACE::recursiveSiblingNoDoubleColonInNames (sdf::ElementPtr _elem)
 Check that all sibling elements do not contain the delimiter double colons '::' in element names, which is reserved for forming scopes in SDFormat 1.8. More...
 
GZ_SDFORMAT_VISIBLE bool sdf::SDF_VERSION_NAMESPACE::recursiveSiblingNoDoubleColonInNames (sdf::Errors &_errors, sdf::ElementPtr _elem)
 Check that all sibling elements do not contain the delimiter double colons '::' in element names, which is reserved for forming scopes in SDFormat 1.8. More...
 
GZ_SDFORMAT_VISIBLE bool sdf::SDF_VERSION_NAMESPACE::recursiveSiblingUniqueNames (sdf::ElementPtr _elem)
 Check that all sibling elements of the any type have unique names. More...
 
GZ_SDFORMAT_VISIBLE bool sdf::SDF_VERSION_NAMESPACE::recursiveSiblingUniqueNames (sdf::Errors &_errors, sdf::ElementPtr _elem)
 Check that all sibling elements of the any type have unique names. More...
 
GZ_SDFORMAT_VISIBLE bool sdf::SDF_VERSION_NAMESPACE::shouldValidateElement (sdf::ElementPtr _elem)
 Check whether the element should be validated. More...