visual.h
Go to the documentation of this file.
1 
26 #ifndef TESSERACT_URDF_VISUAL_H
27 #define TESSERACT_URDF_VISUAL_H
28 
31 #include <memory>
32 #include <unordered_map>
33 #include <string_view>
35 
36 #include <tesseract_common/fwd.h>
38 
39 namespace tinyxml2
40 {
41 class XMLElement; // NOLINT
42 class XMLDocument;
43 } // namespace tinyxml2
44 
45 namespace tesseract_urdf
46 {
47 static constexpr std::string_view VISUAL_ELEMENT_NAME = "visual";
48 
55 std::shared_ptr<tesseract_scene_graph::Visual>
56 parseVisual(const tinyxml2::XMLElement* xml_element,
57  const tesseract_common::ResourceLocator& locator,
58  std::unordered_map<std::string, std::shared_ptr<tesseract_scene_graph::Material>>& available_materials);
59 
71 tinyxml2::XMLElement* writeVisual(const std::shared_ptr<const tesseract_scene_graph::Visual>& visual,
72  tinyxml2::XMLDocument& doc,
73  const std::string& package_path,
74  const std::string& link_name,
75  int id);
76 
77 } // namespace tesseract_urdf
78 
79 #endif // TESSERACT_URDF_VISUAL_H
TESSERACT_COMMON_IGNORE_WARNINGS_PUSH
#define TESSERACT_COMMON_IGNORE_WARNINGS_PUSH
tesseract_urdf::writeVisual
tinyxml2::XMLElement * writeVisual(const std::shared_ptr< const tesseract_scene_graph::Visual > &visual, tinyxml2::XMLDocument &doc, const std::string &package_path, const std::string &link_name, int id)
writeVisual Write one visual geometry object to URDF XML
Definition: visual.cpp:110
tesseract_urdf::parseVisual
std::shared_ptr< tesseract_scene_graph::Visual > parseVisual(const tinyxml2::XMLElement *xml_element, const tesseract_common::ResourceLocator &locator, std::unordered_map< std::string, std::shared_ptr< tesseract_scene_graph::Material >> &available_materials)
Parse xml element visual.
tesseract_urdf::VISUAL_ELEMENT_NAME
static constexpr std::string_view VISUAL_ELEMENT_NAME
Definition: visual.h:47
tesseract_common::ResourceLocator
TESSERACT_COMMON_IGNORE_WARNINGS_POP
fwd.h
tinyxml2
macros.h
tesseract_urdf
Definition: box.h:43


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