mesh.h
Go to the documentation of this file.
1 
26 #ifndef TESSERACT_URDF_MESH_H
27 #define TESSERACT_URDF_MESH_H
28 
31 #include <memory>
32 #include <vector>
33 #include <string_view>
35 
36 #include <tesseract_common/fwd.h>
37 #include <tesseract_geometry/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 MESH_ELEMENT_NAME = "mesh";
48 
57 std::vector<std::shared_ptr<tesseract_geometry::PolygonMesh>>
58 parseMesh(const tinyxml2::XMLElement* xml_element,
59  const tesseract_common::ResourceLocator& locator,
60  bool visual,
61  bool make_convex);
62 
73 tinyxml2::XMLElement* writeMesh(const std::shared_ptr<const tesseract_geometry::PolygonMesh>& mesh,
74  tinyxml2::XMLDocument& doc,
75  const std::string& package_path,
76  const std::string& filename);
77 
78 } // namespace tesseract_urdf
79 
80 #endif // TESSERACT_URDF_MESH_H
tesseract_urdf::MESH_ELEMENT_NAME
static constexpr std::string_view MESH_ELEMENT_NAME
Definition: mesh.h:47
TESSERACT_COMMON_IGNORE_WARNINGS_PUSH
#define TESSERACT_COMMON_IGNORE_WARNINGS_PUSH
tesseract_urdf::writeMesh
tinyxml2::XMLElement * writeMesh(const std::shared_ptr< const tesseract_geometry::PolygonMesh > &mesh, tinyxml2::XMLDocument &doc, const std::string &package_path, const std::string &filename)
writeMesh Write a mesh to URDF XML and PLY file
Definition: mesh.cpp:131
tesseract_common::ResourceLocator
TESSERACT_COMMON_IGNORE_WARNINGS_POP
fwd.h
tinyxml2
macros.h
tesseract_urdf
Definition: box.h:43
tesseract_urdf::parseMesh
std::vector< std::shared_ptr< tesseract_geometry::PolygonMesh > > parseMesh(const tinyxml2::XMLElement *xml_element, const tesseract_common::ResourceLocator &locator, bool visual, bool make_convex)
Parse xml element mesh.
Definition: mesh.cpp:47


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