material.h
Go to the documentation of this file.
1 
26 #ifndef TESSERACT_URDF_MATERIAL_H
27 #define TESSERACT_URDF_MATERIAL_H
28 
31 #include <memory>
32 #include <unordered_map>
33 #include <string_view>
35 
37 
38 namespace tinyxml2
39 {
40 class XMLElement; // NOLINT
41 class XMLDocument;
42 } // namespace tinyxml2
43 
44 namespace tesseract_urdf
45 {
46 static constexpr std::string_view MATERIAL_ELEMENT_NAME = "material";
47 
56 std::shared_ptr<tesseract_scene_graph::Material>
57 parseMaterial(const tinyxml2::XMLElement* xml_element,
58  std::unordered_map<std::string, std::shared_ptr<tesseract_scene_graph::Material>>& available_materials,
59  bool allow_anonymous);
60 
61 tinyxml2::XMLElement* writeMaterial(const std::shared_ptr<const tesseract_scene_graph::Material>& material,
62  tinyxml2::XMLDocument& doc);
63 
64 } // namespace tesseract_urdf
65 #endif // TESSERACT_URDF_MATERIAL_H
tesseract_urdf::MATERIAL_ELEMENT_NAME
static constexpr std::string_view MATERIAL_ELEMENT_NAME
Definition: material.h:46
TESSERACT_COMMON_IGNORE_WARNINGS_PUSH
#define TESSERACT_COMMON_IGNORE_WARNINGS_PUSH
TESSERACT_COMMON_IGNORE_WARNINGS_POP
fwd.h
tesseract_urdf::writeMaterial
tinyxml2::XMLElement * writeMaterial(const std::shared_ptr< const tesseract_scene_graph::Material > &material, tinyxml2::XMLDocument &doc)
Definition: material.cpp:124
tinyxml2
macros.h
tesseract_urdf
Definition: box.h:43
tesseract_urdf::parseMaterial
std::shared_ptr< tesseract_scene_graph::Material > parseMaterial(const tinyxml2::XMLElement *xml_element, std::unordered_map< std::string, std::shared_ptr< tesseract_scene_graph::Material >> &available_materials, bool allow_anonymous)
Parse xml element material.


tesseract_urdf
Author(s): Levi Armstrong
autogenerated on Thu Apr 24 2025 03:10:44