utils.h
Go to the documentation of this file.
1 #ifndef TESSERACT_URDF_UTILS_H
2 #define TESSERACT_URDF_UTILS_H
3 
6 #include <string>
7 #include <memory>
8 // #include <assimp/scene.h>
10 
11 #include <tesseract_geometry/fwd.h>
12 
13 namespace tesseract_urdf
14 {
15 std::string toString(const double& float_value, int precision = 3);
16 
17 std::string trailingSlash(const std::string& path);
18 
19 std::string noTrailingSlash(const std::string& path);
20 
21 std::string noLeadingSlash(const std::string& filename);
22 
23 std::string makeURDFFilePath(const std::string& package_path, const std::string& filename);
24 
25 /* Commented out due to nebulous errors during initial testing.
26  * If errors are resolved, this is probably superior to the writeSimplePLY method used.
27 aiScene createAssetFromMesh(const std::shared_ptr<const tesseract_geometry::PolygonMesh>& mesh);
28 */
29 
30 void writeMeshToFile(const std::shared_ptr<const tesseract_geometry::PolygonMesh>& mesh, const std::string& filepath);
31 
32 } // namespace tesseract_urdf
33 
34 #endif // TESSERACT_URDF_UTILS_H
tesseract_urdf::makeURDFFilePath
std::string makeURDFFilePath(const std::string &package_path, const std::string &filename)
Definition: utils.cpp:55
tesseract_urdf::trailingSlash
std::string trailingSlash(const std::string &path)
Definition: utils.cpp:20
tesseract_urdf::noTrailingSlash
std::string noTrailingSlash(const std::string &path)
Definition: utils.cpp:35
TESSERACT_COMMON_IGNORE_WARNINGS_PUSH
#define TESSERACT_COMMON_IGNORE_WARNINGS_PUSH
TESSERACT_COMMON_IGNORE_WARNINGS_POP
tesseract_urdf::toString
std::string toString(const double &float_value, int precision=3)
Definition: utils.cpp:12
fwd.h
tesseract_urdf::writeMeshToFile
void writeMeshToFile(const std::shared_ptr< const tesseract_geometry::PolygonMesh > &mesh, const std::string &filepath)
Definition: utils.cpp:140
macros.h
tesseract_urdf
Definition: box.h:43
tesseract_urdf::noLeadingSlash
std::string noLeadingSlash(const std::string &filename)
Definition: utils.cpp:45


tesseract_urdf
Author(s): Levi Armstrong
autogenerated on Thu Apr 24 2025 03:10:44