![]() |
Tesseract 0.28.4
|
Parse geometry from XML string. More...
#include <tesseract/common/macros.h>#include <stdexcept>#include <Eigen/Geometry>#include <tinyxml2.h>#include <tesseract/collision/common.h>#include <tesseract/collision/bullet/convex_hull_utils.h>#include <tesseract/geometry/geometries.h>#include <tesseract/common/resource_locator.h>#include <tesseract/urdf/box.h>#include <tesseract/urdf/cylinder.h>#include <tesseract/urdf/cone.h>#include <tesseract/urdf/capsule.h>#include <tesseract/urdf/geometry.h>#include <tesseract/urdf/mesh.h>#include <tesseract/urdf/octomap.h>#include <tesseract/urdf/sdf_mesh.h>#include <tesseract/urdf/sphere.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") |