collision.h
Go to the documentation of this file.
1 
26 #ifndef TESSERACT_URDF_COLLISION_H
27 #define TESSERACT_URDF_COLLISION_H
28 
31 #include <memory>
32 #include <string_view>
34 
35 #include <tesseract_common/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 COLLISION_ELEMENT_NAME = "collision";
47 
55 std::shared_ptr<tesseract_scene_graph::Collision> parseCollision(const tinyxml2::XMLElement* xml_element,
56  const tesseract_common::ResourceLocator& locator,
57  bool make_convex_meshes);
58 
70 tinyxml2::XMLElement* writeCollision(const std::shared_ptr<const tesseract_scene_graph::Collision>& collision,
71  tinyxml2::XMLDocument& doc,
72  const std::string& package_path,
73  const std::string& link_name,
74  int id);
75 
76 } // namespace tesseract_urdf
77 
78 #endif // TESSERACT_URDF_COLLISION_H
tesseract_urdf::writeCollision
tinyxml2::XMLElement * writeCollision(const std::shared_ptr< const tesseract_scene_graph::Collision > &collision, tinyxml2::XMLDocument &doc, const std::string &package_path, const std::string &link_name, int id)
writeCollision Write collision object to URDF XML
Definition: collision.cpp:90
TESSERACT_COMMON_IGNORE_WARNINGS_PUSH
#define TESSERACT_COMMON_IGNORE_WARNINGS_PUSH
tesseract_urdf::parseCollision
std::shared_ptr< tesseract_scene_graph::Collision > parseCollision(const tinyxml2::XMLElement *xml_element, const tesseract_common::ResourceLocator &locator, bool make_convex_meshes)
Parse xml element collision.
Definition: collision.cpp:45
tesseract_common::ResourceLocator
TESSERACT_COMMON_IGNORE_WARNINGS_POP
fwd.h
tesseract_urdf::COLLISION_ELEMENT_NAME
static constexpr std::string_view COLLISION_ELEMENT_NAME
Definition: collision.h:46
tinyxml2
macros.h
tesseract_urdf
Definition: box.h:43


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