MRSL DecompUtil Library  0.1
An implementaion of convex decomposition over point cloud
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
EllipsoidDecomp< Dim > Class Template Reference

EllipsoidDecomp Class. More...

#include <ellipsoid_decomp.h>

Inheritance diagram for EllipsoidDecomp< Dim >:
IterativeDecomp< Dim >

Public Member Functions

 EllipsoidDecomp ()
 Simple constructor.
 
 EllipsoidDecomp (const Vecf< Dim > &origin, const Vecf< Dim > &dim)
 Basic constructor. More...
 
void set_obs (const vec_Vecf< Dim > &obs)
 Set obstacle points.
 
void set_local_bbox (const Vecf< Dim > &bbox)
 Set dimension of bounding box.
 
vec_Vecf< Dim > get_path () const
 Get the path that is used for dilation.
 
vec_E< Polyhedron< Dim > > get_polyhedrons () const
 Get the Safe Flight Corridor.
 
vec_E< Ellipsoid< Dim > > get_ellipsoids () const
 Get the ellipsoids.
 
vec_E< LinearConstraint< Dim > > get_constraints () const
 Get the constraints of SFC as $Ax\leq b $.
 
void dilate (const vec_Vecf< Dim > &path, double offset_x=0)
 Decomposition thread. More...
 

Protected Member Functions

template<int U = Dim>
std::enable_if< U==2 >::type add_global_bbox (Polyhedron< Dim > &Vs)
 
template<int U = Dim>
std::enable_if< U==3 >::type add_global_bbox (Polyhedron< Dim > &Vs)
 

Protected Attributes

vec_Vecf< Dim > path_
 
vec_Vecf< Dim > obs_
 
vec_E< Ellipsoid< Dim > > ellipsoids_
 
vec_E< Polyhedron< Dim > > polyhedrons_
 
std::vector< std::shared_ptr< LineSegment< Dim > > > lines_
 
Vecf< Dim > local_bbox_ {Vecf<Dim>::Zero()}
 
Vecf< Dim > global_bbox_min_ {Vecf<Dim>::Zero()}
 
Vecf< Dim > global_bbox_max_ {Vecf<Dim>::Zero()}
 

Detailed Description

template<int Dim>
class EllipsoidDecomp< Dim >

EllipsoidDecomp Class.

EllipsoidDecomp takes input as a given path and find the Safe Flight Corridor around it using Ellipsoids

Constructor & Destructor Documentation

template<int Dim>
EllipsoidDecomp< Dim >::EllipsoidDecomp ( const Vecf< Dim > &  origin,
const Vecf< Dim > &  dim 
)
inline

Basic constructor.

Parameters
originThe origin of the global bounding box
dimThe dimension of the global bounding box

Member Function Documentation

template<int Dim>
void EllipsoidDecomp< Dim >::dilate ( const vec_Vecf< Dim > &  path,
double  offset_x = 0 
)
inline

Decomposition thread.

Parameters
pathThe path to dilate
offset_xoffset added to the long semi-axis, default is 0

The documentation for this class was generated from the following file: