ed
Functions
ed::convex_hull Namespace Reference

Functions

void calculateArea (ConvexHull &c)
 calculateArea calculate the area of the ConvexHull in xy-plane. More...
 
void calculateEdgesAndNormals (ConvexHull &chull)
 
bool collide (const ConvexHull &c1, const geo::Vector3 &pos1, const ConvexHull &c2, const geo::Vector3 &pos2, float xy_padding, float z_padding)
 collide Check of two ConvexHull collide with padding in xy and in z. More...
 
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 More...
 
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. More...
 

Function Documentation

◆ calculateArea()

void ed::convex_hull::calculateArea ( ConvexHull c)

calculateArea calculate the area of the ConvexHull in xy-plane.

Parameters
cConvexHull

Definition at line 221 of file convex_hull_calc.cpp.

◆ calculateEdgesAndNormals()

void ed::convex_hull::calculateEdgesAndNormals ( ConvexHull chull)

Definition at line 111 of file convex_hull_calc.cpp.

◆ collide()

bool ed::convex_hull::collide ( const ConvexHull c1,
const geo::Vector3 pos1,
const ConvexHull c2,
const geo::Vector3 pos2,
float  xy_padding,
float  z_padding 
)

collide Check of two ConvexHull collide with padding in xy and in z.

Parameters
c1ConvexHull 1
pos1position of ConvexHull 1
c2ConvexHull 2
pos2position of ConvexHull 2
xy_paddingpadding in xy-plane
z_paddingpadding in z-plane
Returns

Definition at line 144 of file convex_hull_calc.cpp.

◆ create()

void ed::convex_hull::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

Parameters
pointspoints describing the shape. Points should be in map frame.
z_minmin height
z_maxmax height
cfilled ConvexHull
posenew pose of the convexhull

Definition at line 21 of file convex_hull_calc.cpp.

◆ createAbsolute()

void ed::convex_hull::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.

Parameters
pointspoints describing the shape. Points should be in map frame.
z_minmin height
z_maxmax height
cfilled ConvexHull

Definition at line 83 of file convex_hull_calc.cpp.