Extracts table tops from a polygon array. More...
#include <table_extraction.h>
Public Member Functions | |
| bool | isTable () |
| Check if the polygon is a table top. | |
| void | setAreaMax (double area_max) |
| Set the maximum area of the table top. | |
| void | setAreaMin (double area_min) |
| Set the minimum area of the table top. | |
| void | setHeightMax (double height_max) |
| Set the maximum height of the table top. | |
| void | setHeightMin (double height_min) |
| Set the minimum height of the table top. | |
| void | setInputPolygon (Polygon::Ptr poly_ptr) |
| Set the input polygon. | |
| void | setNormalBounds (double tilt_angle) |
| Set the allowed normal vector bounds for a given tilt angle. | |
| TableExtraction () | |
| Constructor. | |
| ~TableExtraction () | |
| Destructor. | |
Protected Member Functions | |
| bool | isHeightOk () |
| Check if the height of the plane polygon is within bounds. | |
| bool | isHorizontal () |
| Check if the plane of the polygon is horizontal. | |
| bool | isSizeOk () |
| Check if the area of the plane polygon is within bounds. | |
Protected Attributes | |
| double | area_max_ |
| The maximum area of the table. | |
| double | area_min_ |
| The minimum area of the table. | |
| double | height_max_ |
| The maximum height of the table. | |
| double | height_min_ |
| The minimum height of the table. | |
| double | norm_x_max_ |
| The maximum x component of the plane normal. | |
| double | norm_x_min_ |
| The minimum x component of the plane normal. | |
| double | norm_y_max_ |
| The maximum y component of the plane normal. | |
| double | norm_y_min_ |
| The minimum y component of the plane normal. | |
| double | norm_z_max_ |
| The maximum z component of the plane normal. | |
| double | norm_z_min_ |
| The minimum z component of the plane normal. | |
| Polygon::Ptr | poly_ptr_ |
| The polygon to be evaluated. | |
Extracts table tops from a polygon array.
Definition at line 95 of file table_extraction.h.
| TableExtraction::TableExtraction | ( | ) | [inline] |
| TableExtraction::~TableExtraction | ( | ) | [inline] |
| bool TableExtraction::isHeightOk | ( | ) | [protected] |
Check if the height of the plane polygon is within bounds.
Definition at line 100 of file table_extraction.cpp.
| bool TableExtraction::isHorizontal | ( | ) | [protected] |
Check if the plane of the polygon is horizontal.
Definition at line 84 of file table_extraction.cpp.
| bool TableExtraction::isSizeOk | ( | ) | [protected] |
Check if the area of the plane polygon is within bounds.
Definition at line 109 of file table_extraction.cpp.
| bool TableExtraction::isTable | ( | ) |
Check if the polygon is a table top.
Definition at line 69 of file table_extraction.cpp.
| void TableExtraction::setAreaMax | ( | double | area_max | ) | [inline] |
Set the maximum area of the table top.
| area_max | The maximum area. |
Definition at line 181 of file table_extraction.h.
| void TableExtraction::setAreaMin | ( | double | area_min | ) | [inline] |
Set the minimum area of the table top.
| area_min | The minimum area. |
Definition at line 169 of file table_extraction.h.
| void TableExtraction::setHeightMax | ( | double | height_max | ) | [inline] |
Set the maximum height of the table top.
| height_man | The maximum height. |
Definition at line 157 of file table_extraction.h.
| void TableExtraction::setHeightMin | ( | double | height_min | ) | [inline] |
Set the minimum height of the table top.
| height_min | The minimum height. |
Definition at line 145 of file table_extraction.h.
| void TableExtraction::setInputPolygon | ( | Polygon::Ptr | poly_ptr | ) | [inline] |
Set the input polygon.
| poly_ptr | Pointer to the polygon. |
Definition at line 193 of file table_extraction.h.
| void TableExtraction::setNormalBounds | ( | double | tilt_angle | ) | [inline] |
Set the allowed normal vector bounds for a given tilt angle.
| [in] | tilt_angle | The allowed tilt angle (in degrees). |
Definition at line 125 of file table_extraction.h.
double TableExtraction::area_max_ [protected] |
The maximum area of the table.
Definition at line 245 of file table_extraction.h.
double TableExtraction::area_min_ [protected] |
The minimum area of the table.
Definition at line 244 of file table_extraction.h.
double TableExtraction::height_max_ [protected] |
The maximum height of the table.
Definition at line 242 of file table_extraction.h.
double TableExtraction::height_min_ [protected] |
The minimum height of the table.
Definition at line 241 of file table_extraction.h.
double TableExtraction::norm_x_max_ [protected] |
The maximum x component of the plane normal.
Definition at line 235 of file table_extraction.h.
double TableExtraction::norm_x_min_ [protected] |
The minimum x component of the plane normal.
Definition at line 234 of file table_extraction.h.
double TableExtraction::norm_y_max_ [protected] |
The maximum y component of the plane normal.
Definition at line 237 of file table_extraction.h.
double TableExtraction::norm_y_min_ [protected] |
The minimum y component of the plane normal.
Definition at line 236 of file table_extraction.h.
double TableExtraction::norm_z_max_ [protected] |
The maximum z component of the plane normal.
Definition at line 239 of file table_extraction.h.
double TableExtraction::norm_z_min_ [protected] |
The minimum z component of the plane normal.
Definition at line 238 of file table_extraction.h.
Polygon::Ptr TableExtraction::poly_ptr_ [protected] |
The polygon to be evaluated.
Definition at line 247 of file table_extraction.h.