#include <structure_extraction.h>
Public Member Functions | |
bool | classify (unsigned int &label) |
Classify the polygon. | |
void | setCeilingHeight (double height) |
Set the height of the ceiling. | |
void | setFloorHeight (double height) |
Set the height of the floor. | |
void | setInputPolygon (Polygon::Ptr poly_ptr) |
Set the input polygon. | |
StructureExtraction () | |
Constructor. | |
~StructureExtraction () | |
Destructor. | |
Protected Member Functions | |
bool | isCeiling () |
Check if the polygon is a ceiling. | |
bool | isFloor () |
Check if the polygon is a floor. | |
bool | isWall () |
Check if the polygon is a wall. | |
Protected Attributes | |
double | ceiling_height_ |
The ceiling height. | |
double | floor_height_ |
The floor height. | |
Polygon::Ptr | poly_ptr_ |
The pointer to the polygon to be classified. |
Classifies a polygon as floor, ceiling or wall in order to obtain the structure of the environment.
Definition at line 95 of file structure_extraction.h.
StructureExtraction::StructureExtraction | ( | ) | [inline] |
StructureExtraction::~StructureExtraction | ( | ) | [inline] |
bool StructureExtraction::classify | ( | unsigned int & | label | ) |
Classify the polygon.
[out] | label | The class of the polygon (ceiling = 1, floor = 2, wall = 3, other = 0). |
Definition at line 99 of file structure_extraction.cpp.
bool StructureExtraction::isCeiling | ( | ) | [protected] |
Check if the polygon is a ceiling.
Definition at line 89 of file structure_extraction.cpp.
bool StructureExtraction::isFloor | ( | ) | [protected] |
Check if the polygon is a floor.
Definition at line 79 of file structure_extraction.cpp.
bool StructureExtraction::isWall | ( | ) | [protected] |
Check if the polygon is a wall.
Definition at line 69 of file structure_extraction.cpp.
void StructureExtraction::setCeilingHeight | ( | double | height | ) | [inline] |
Set the height of the ceiling.
height | The ceiling height. |
Definition at line 137 of file structure_extraction.h.
void StructureExtraction::setFloorHeight | ( | double | height | ) | [inline] |
Set the height of the floor.
height | The floor height. |
Definition at line 125 of file structure_extraction.h.
void StructureExtraction::setInputPolygon | ( | Polygon::Ptr | poly_ptr | ) | [inline] |
Set the input polygon.
poly_ptr | Pointer to the polygon. |
Definition at line 149 of file structure_extraction.h.
double StructureExtraction::ceiling_height_ [protected] |
The ceiling height.
Definition at line 190 of file structure_extraction.h.
double StructureExtraction::floor_height_ [protected] |
The floor height.
Definition at line 189 of file structure_extraction.h.
Polygon::Ptr StructureExtraction::poly_ptr_ [protected] |
The pointer to the polygon to be classified.
Definition at line 192 of file structure_extraction.h.