From deca5acbc174c6d5f265dd5cdf856b9344958e3e Mon Sep 17 00:00:00 2001 From: Matthew Powelson Date: Mon, 20 May 2019 13:29:20 -0500 Subject: [PATCH] Add ConvexHull --- urdf_model/include/urdf_model/link.h | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/urdf_model/include/urdf_model/link.h b/urdf_model/include/urdf_model/link.h index e470b43..6ee85c6 100644 --- a/urdf_model/include/urdf_model/link.h +++ b/urdf_model/include/urdf_model/link.h @@ -50,7 +50,7 @@ namespace urdf{ class Geometry { public: - enum {SPHERE, BOX, CYLINDER, MESH} type; + enum {SPHERE, BOX, CYLINDER, MESH, CONVEX_HULL} type; virtual ~Geometry(void) { @@ -112,6 +112,23 @@ class Mesh : public Geometry }; }; +class ConvexHull : public Geometry +{ +public: + ConvexHull() { this->clear(); type = CONVEX_HULL; }; + std::string filename; + Vector3 scale; + + void clear() + { + filename.clear(); + // default scale + scale.x = 1; + scale.y = 1; + scale.z = 1; + }; +}; + class Material { public: