Tesseract
Motion Planning Environment
Loading...
Searching...
No Matches
convex_decomposition_hacd.h
Go to the documentation of this file.
1
26#ifndef TESSERACT_COLLISION_CONVEX_DECOMPOSITION_HACD_H
27#define TESSERACT_COLLISION_CONVEX_DECOMPOSITION_HACD_H
28
30
31namespace tesseract_collision
32{
34{
35 double compacity_weight{ 0.1 };
36 double volume_weight{ 0.0 };
37 double concavity{ 0.001 };
38 uint32_t max_num_vertices_per_ch{ 256 };
39 uint32_t min_num_clusters{ 2 };
40 bool add_extra_dist_points{ false };
42 bool add_faces_points{ false };
43
44 void print() const;
45};
46
48{
49public:
50 using Ptr = std::shared_ptr<ConvexDecompositionHACD>;
51 using ConstPtr = std::shared_ptr<const ConvexDecompositionHACD>;
52
55
56 std::vector<tesseract_geometry::ConvexMesh::Ptr> compute(const tesseract_common::VectorVector3d& vertices,
57 const Eigen::VectorXi& faces) const override;
58
59private:
61};
62
63} // namespace tesseract_collision
64
65#endif // TESSERACT_COLLISION_CONVEX_DECOMPOSITION_HACD_H
Definition: convex_decomposition_hacd.h:48
HACDParameters params_
Definition: convex_decomposition_hacd.h:60
std::vector< tesseract_geometry::ConvexMesh::Ptr > compute(const tesseract_common::VectorVector3d &vertices, const Eigen::VectorXi &faces) const override
Run convex decomposition algorithm.
Definition: convex_decomposition_hacd.cpp:20
std::shared_ptr< ConvexDecompositionHACD > Ptr
Definition: convex_decomposition_hacd.h:50
std::shared_ptr< const ConvexDecompositionHACD > ConstPtr
Definition: convex_decomposition_hacd.h:51
Definition: convex_decomposition.h:37
Convex decomposition interface.
Definition: bullet_cast_bvh_manager.h:49
std::vector< Eigen::Vector3d > VectorVector3d
Definition: types.h:64
Definition: convex_decomposition_hacd.h:34
bool add_extra_dist_points
Definition: convex_decomposition_hacd.h:40
void print() const
Definition: convex_decomposition_hacd.cpp:102
bool add_neighbours_dist_points
Definition: convex_decomposition_hacd.h:41
double volume_weight
Definition: convex_decomposition_hacd.h:36
uint32_t min_num_clusters
Definition: convex_decomposition_hacd.h:39
uint32_t max_num_vertices_per_ch
Definition: convex_decomposition_hacd.h:38
double concavity
Definition: convex_decomposition_hacd.h:37
bool add_faces_points
Definition: convex_decomposition_hacd.h:42
double compacity_weight
Definition: convex_decomposition_hacd.h:35
std::shared_ptr< const Eigen::VectorXi > faces
Definition: tesseract_geometry_unit.cpp:16