Tesseract
Motion Planning Environment
Loading...
Searching...
No Matches
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 <vector>
35
36namespace tinyxml2
37{
38class XMLElement; // NOLINT
39class XMLDocument;
40} // namespace tinyxml2
42{
43class Visual;
44class Material;
45} // namespace tesseract_scene_graph
46namespace tesseract_common
47{
48class ResourceLocator;
49}
50
51namespace tesseract_urdf
52{
60std::vector<std::shared_ptr<tesseract_scene_graph::Visual>>
61parseVisual(const tinyxml2::XMLElement* xml_element,
63 std::unordered_map<std::string, std::shared_ptr<tesseract_scene_graph::Material>>& available_materials,
64 int version);
65
77tinyxml2::XMLElement* writeVisual(const std::shared_ptr<const tesseract_scene_graph::Visual>& visual,
78 tinyxml2::XMLDocument& doc,
79 const std::string& package_path,
80 const std::string& link_name,
81 int id);
82
83} // namespace tesseract_urdf
84
85#endif // TESSERACT_URDF_VISUAL_H
Abstract class for resource loaders.
Definition: resource_locator.h:43
Common Tesseract Macros.
#define TESSERACT_COMMON_IGNORE_WARNINGS_PUSH
Definition: macros.h:71
Definition: create_convex_hull.cpp:36
Definition: allowed_collision_matrix.h:16
Definition: graph.h:82
Definition: box.h:45
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:130
std::vector< 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, int version)
Parse xml element visual.
Definition: collision_margins.h:36
tesseract_common::fs::path package_path
Definition: resource_locator_unit.cpp:55
ResourceLocator::Ptr locator
Definition: resource_locator_unit.cpp:57
std::unordered_map< std::string, tesseract_scene_graph::Material::Ptr > available_materials
Definition: tesseract_urdf_material_unit.cpp:20