geometry.h
Go to the documentation of this file.
1 
26 #ifndef TESSERACT_URDF_GEOMETRY_H
27 #define TESSERACT_URDF_GEOMETRY_H
28 
31 #include <memory>
32 #include <string_view>
34 
35 #include <tesseract_common/fwd.h>
36 #include <tesseract_geometry/fwd.h>
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 GEOMETRY_ELEMENT_NAME = "geometry";
47 
56 std::shared_ptr<tesseract_geometry::Geometry> parseGeometry(const tinyxml2::XMLElement* xml_element,
57  const tesseract_common::ResourceLocator& locator,
58  bool visual,
59  bool make_convex_meshes);
60 
72 tinyxml2::XMLElement* writeGeometry(const std::shared_ptr<const tesseract_geometry::Geometry>& geometry,
73  tinyxml2::XMLDocument& doc,
74  const std::string& package_path,
75  const std::string& filename);
76 
77 } // namespace tesseract_urdf
78 
79 #endif // TESSERACT_URDF_GEOMETRY_H
tesseract_urdf::parseGeometry
std::shared_ptr< tesseract_geometry::Geometry > parseGeometry(const tinyxml2::XMLElement *xml_element, const tesseract_common::ResourceLocator &locator, bool visual, bool make_convex_meshes)
Parse xml element geometry.
Definition: geometry.cpp:51
tesseract_urdf::GEOMETRY_ELEMENT_NAME
static constexpr std::string_view GEOMETRY_ELEMENT_NAME
Definition: geometry.h:46
TESSERACT_COMMON_IGNORE_WARNINGS_PUSH
#define TESSERACT_COMMON_IGNORE_WARNINGS_PUSH
tesseract_common::ResourceLocator
TESSERACT_COMMON_IGNORE_WARNINGS_POP
fwd.h
tesseract_urdf::writeGeometry
tinyxml2::XMLElement * writeGeometry(const std::shared_ptr< const tesseract_geometry::Geometry > &geometry, tinyxml2::XMLDocument &doc, const std::string &package_path, const std::string &filename)
writeGeometry Write geometry to URDF XML
Definition: geometry.cpp:196
tinyxml2
macros.h
tesseract_urdf
Definition: box.h:43


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