![]() |
Tesseract 0.28.4
|
Parse geometry from xml string. More...
#include <tesseract/common/macros.h>#include <memory>#include <string_view>#include <tesseract/common/fwd.h>#include <tesseract/geometry/fwd.h>Functions | |
| std::shared_ptr< tesseract::geometry::Geometry > | tesseract::urdf::parseGeometry (const tinyxml2::XMLElement *xml_element, const tesseract::common::ResourceLocator &locator, bool visual, bool make_convex_meshes) |
| Parse xml element geometry. | |
| tinyxml2::XMLElement * | tesseract::urdf::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 | |
Parse geometry from xml string.
| tesseract::geometry::Geometry::Ptr tesseract::urdf::parseGeometry | ( | const tinyxml2::XMLElement * | xml_element, |
| const tesseract::common::ResourceLocator & | locator, | ||
| bool | visual, | ||
| bool | make_convex_meshes | ||
| ) |
Parse xml element geometry.
| xml_element | The xml element |
| locator | The Tesseract resource locator |
| visual | Indicate if visual |
| make_convex_meshes | Flag to indicate if the meshes should be converted to convex hulls |
| tinyxml2::XMLElement * tesseract::urdf::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
| geometry | Geometry to be written |
| doc | XML Document to which xml will belong |
| package_path | /<path>/<to>/<your-package>. If set, geometry will be saved relative to the package. If not set, geometry will be saved with absolute paths. |
| filename | The desired filename. The extension will be added according to geometry type. If package_path is set, this should be relative to the package (e.g. "collision/link1_geometry"). If package_path is not set, this should be an absolute path (e.g. "/tmp/link1_geometry") |