Tesseract
Motion Planning Environment
Loading...
Searching...
No Matches
utils.h
Go to the documentation of this file.
1#ifndef TESSERACT_URDF_UTILS_H
2#define TESSERACT_URDF_UTILS_H
3
6#include <sstream>
7#include <string>
8
9// #include <assimp/scene.h>
11
13
14namespace tesseract_urdf
15{
16std::string toString(const double& float_value, int precision = 3);
17
18std::string trailingSlash(const std::string& path);
19
20std::string noTrailingSlash(const std::string& path);
21
22std::string noLeadingSlash(const std::string& filename);
23
24std::string makeURDFFilePath(const std::string& package_path, const std::string& filename);
25
26/* Commented out due to nebulous errors during initial testing.
27 * If errors are resolved, this is probably superior to the writeSimplePLY method used.
28aiScene createAssetFromMesh(const std::shared_ptr<const tesseract_geometry::PolygonMesh>& mesh);
29*/
30
31void writeMeshToFile(const std::shared_ptr<const tesseract_geometry::PolygonMesh>& mesh, const std::string& filepath);
32
33} // namespace tesseract_urdf
34
35#endif // TESSERACT_URDF_UTILS_H
Common Tesseract Macros.
#define TESSERACT_COMMON_IGNORE_WARNINGS_PUSH
Definition: macros.h:71
Definition: create_convex_hull.cpp:36
Definition: box.h:45
std::string toString(const double &float_value, int precision=3)
Definition: utils.cpp:11
std::string makeURDFFilePath(const std::string &package_path, const std::string &filename)
Definition: utils.cpp:54
std::string trailingSlash(const std::string &path)
Definition: utils.cpp:19
void writeMeshToFile(const std::shared_ptr< const tesseract_geometry::PolygonMesh > &mesh, const std::string &filepath)
Definition: utils.cpp:139
std::string noLeadingSlash(const std::string &filename)
Definition: utils.cpp:44
std::string noTrailingSlash(const std::string &path)
Definition: utils.cpp:34
Tesseract Polygon Mesh Geometry.
tesseract_common::fs::path package_path
Definition: resource_locator_unit.cpp:55
auto mesh
Definition: tesseract_geometry_unit.cpp:25