![]() |
Tesseract 0.28.4
|
Parse mesh from xml string. More...
#include <tesseract/common/macros.h>#include <stdexcept>#include <boost/algorithm/string/classification.hpp>#include <boost/algorithm/string/split.hpp>#include <Eigen/Geometry>#include <tesseract/common/utils.h>#include <tinyxml2.h>#include <tesseract/collision/bullet/convex_hull_utils.h>#include <tesseract/geometry/impl/mesh.h>#include <tesseract/geometry/mesh_parser.h>#include <tesseract/urdf/mesh.h>#include <tesseract/common/resource_locator.h>#include <tesseract/urdf/utils.h>Functions | |
| std::vector< std::shared_ptr< tesseract::geometry::PolygonMesh > > | tesseract::urdf::parseMesh (const tinyxml2::XMLElement *xml_element, const tesseract::common::ResourceLocator &locator, bool visual, bool make_convex) |
| Parse xml element mesh. | |
| tinyxml2::XMLElement * | tesseract::urdf::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 | |
Parse mesh from xml string.
| std::vector< tesseract::geometry::PolygonMesh::Ptr > tesseract::urdf::parseMesh | ( | const tinyxml2::XMLElement * | xml_element, |
| const tesseract::common::ResourceLocator & | locator, | ||
| bool | visual, | ||
| bool | make_convex | ||
| ) |
Parse xml element mesh.
| xml_element | The xml element |
| locator | The Tesseract resource locator |
| visual | Indicate if visual |
| make_convex | Flag to indicate if the mesh should be converted to a convex hull |
| tinyxml2::XMLElement * tesseract::urdf::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
| mesh | Mesh to be saved out and described in XML |
| doc | XML Document to manage generated XML |
| 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 | Desired file location. If package_path is set, this should be relative to the package, If not, this should be an absolute path |