Go to the documentation of this file.
   17 #ifndef SDF_PARSER_HH_ 
   18 #define SDF_PARSER_HH_ 
   23 #include "sdf/sdf_config.h" 
   39   inline namespace SDF_VERSION_NAMESPACE {
 
  105       const std::string &_filename, 
SDFPtr _sdf, 
Errors &_errors);
 
  167       const std::string &_xmlString, 
SDFPtr _sdf, 
Errors &_errors);
 
  219   bool convertFile(
const std::string &_filename, 
const std::string &_version,
 
  229                      const std::string &_version, 
SDFPtr _sdf);
 
  
SDFORMAT_VISIBLE bool recursiveSiblingUniqueNames(sdf::ElementPtr _elem)
Check that all sibling elements of the any type have unique names.
 
SDFORMAT_VISIBLE bool readStringWithoutConversion(const std::string &_xmlString, SDFPtr _sdf, Errors &_errors)
Populate the SDF values from a string without converting to the latest SDF version.
 
SDFORMAT_VISIBLE bool initString(const std::string &_xmlString, SDFPtr _sdf)
Initialize the SDF interface using a string.
 
SDFORMAT_VISIBLE sdf::SDFPtr readFile(const std::string &_filename)
Populate the SDF values from a file.
 
SDFORMAT_VISIBLE bool initFile(const std::string &_filename, SDFPtr _sdf)
Initialize the SDF interface using a file.
 
std::shared_ptr< SDF > SDFPtr
Definition: SDFImpl.hh:50
 
namespace for Simulation Description Format parser
Definition: Actor.hh:32
 
SDFORMAT_VISIBLE bool recursiveSameTypeUniqueNames(sdf::ElementPtr _elem)
Check that all sibling elements of the same type have unique names.
 
SDFORMAT_VISIBLE bool convertFile(const std::string &_filename, const std::string &_version, SDFPtr _sdf)
Convert an SDF file to a specific SDF version.
 
SDFORMAT_VISIBLE bool checkFrameAttachedToGraph(const sdf::Root *_root)
For the world and each model, check that the attached_to graphs build without errors and have no cycl...
 
SDFORMAT_VISIBLE bool checkFrameAttachedToNames(const sdf::Root *_root)
Check that for each frame, the attached_to attribute value does not match its own frame name but does...
 
SDFORMAT_VISIBLE bool readFileWithoutConversion(const std::string &_filename, SDFPtr _sdf, Errors &_errors)
Populate the SDF values from a file without converting to the latest SDF version.
 
SDFORMAT_VISIBLE bool readString(const std::string &_xmlString, SDFPtr _sdf, Errors &_errors)
Populate the SDF values from a string.
 
std::vector< Error > Errors
A vector of Error.
Definition: Types.hh:89
 
#define SDFORMAT_VISIBLE
Definition: system_util.hh:48
 
SDFORMAT_VISIBLE void addNestedModel(ElementPtr _sdf, ElementPtr _includeSDF)
Copy the contents of the first model element from one ElementPtr to another ElementPtr,...
 
SDFORMAT_VISIBLE bool checkJointParentChildLinkNames(const sdf::Root *_root)
Check that all joints in contained models specify parent and child link names that match the names of...
 
SDFORMAT_VISIBLE bool convertString(const std::string &_sdfString, const std::string &_version, SDFPtr _sdf)
Convert an SDF string to a specific SDF version.
 
SDFORMAT_VISIBLE bool checkCanonicalLinkNames(const sdf::Root *_root)
Check that for each model, the canonical_link attribute value matches the name of a link in the model...
 
Root class that acts as an entry point to the SDF document model.
Definition: Root.hh:54
 
std::shared_ptr< Element > ElementPtr
Definition: Element.hh:53
 
SDFORMAT_VISIBLE std::string getModelFilePath(const std::string &_modelDirPath)
Get the file path to the model file.
 
SDFORMAT_VISIBLE bool checkPoseRelativeToGraph(const sdf::Root *_root)
For the world and each model, check that the attached_to graphs build without errors and have no cycl...
 
SDFORMAT_VISIBLE bool init(SDFPtr _sdf)
Init based on the installed sdf_format.xml file.
 
SDFORMAT_VISIBLE bool shouldValidateElement(sdf::ElementPtr _elem)
Check whether the element should be validated.