ed
convex_hull_calc.h
Go to the documentation of this file.
1 #ifndef ED_CONVEX_HULL_CALC_H_
2 #define ED_CONVEX_HULL_CALC_H_
3 
4 #include "ed/convex_hull.h"
5 
6 #include <vector>
7 
8 namespace ed
9 {
10 
11 namespace convex_hull
12 {
13 
14 void create(const std::vector<geo::Vec2f>& points, float z_min, float z_max, ConvexHull& chull, geo::Pose3D& pose);
15 
16 void createAbsolute(const std::vector<geo::Vec2f>& points, float z_min, float z_max, ConvexHull& chull);
17 
19 
20 bool collide(const ConvexHull& c1, const geo::Vector3& pos1,
21  const ConvexHull& c2, const geo::Vector3& pos2,
22  float xy_padding = 0, float z_padding = 0);
23 
25 
26 }
27 
28 }
29 
30 #endif
convex_hull.h
ed::ConvexHull
Definition: convex_hull.h:11
ed::convex_hull::calculateEdgesAndNormals
void calculateEdgesAndNormals(ConvexHull &chull)
Definition: convex_hull_calc.cpp:111
ed::convex_hull::create
void create(const std::vector< geo::Vec2f > &points, float z_min, float z_max, ConvexHull &chull, geo::Pose3D &pose)
create fill a ConvexHull and put its origin in the middle of the Convexhull
Definition: convex_hull_calc.cpp:21
vector
geo::Transform3T
ed::convex_hull::collide
bool collide(const ConvexHull &c1, const geo::Vector3 &pos1, const ConvexHull &c2, const geo::Vector3 &pos2, float xy_padding=0, float z_padding=0)
collide Check of two ConvexHull collide with padding in xy and in z.
Definition: convex_hull_calc.cpp:144
geo::Vector3
ed
Definition: convex_hull.h:8
ed::convex_hull::createAbsolute
void createAbsolute(const std::vector< geo::Vec2f > &points, float z_min, float z_max, ConvexHull &chull)
createAbsolute fill a ConvexHull with its origin in map frame.
Definition: convex_hull_calc.cpp:83
c
void c()
ed::convex_hull::calculateArea
void calculateArea(ConvexHull &c)
calculateArea calculate the area of the ConvexHull in xy-plane.
Definition: convex_hull_calc.cpp:221