rpos::features::artifact_provider::RectangleArea Struct

RectangleArea is a rectangular area with specified usage

Header File

rpos/features/artifact_provider/feature.h

Applies to

  • Slamware

Constructors

/**
* Construct an empty RectangleArea(usage is MaintenanceArea as default).
*/
RectangleArea();
/**
* Construct an RectangleArea.
*/
RectangleArea(ArtifactUsage usage, 
    const rpos::core::Point& start,
    const rpos::core::Point& nd,
    float halfWidth);
/**
* Construct an RectangleArea with id.
*/
RectangleArea(ArtifactUsage usage,
    const rpos::core::ORectangleF &rect,
    rpos::core::SegmentID id);

Member Fields

rpos::core::SegmentID id;

rpos::core::ORectangleF area;

ArtifactUsage usage;

rpos::core::Metadata metadata; 

Metadata is used to hold some detail data related to specific usage. Here area some internally defined keys:

static const char MetaDataKey_RectangleAreaType[] = "rectangle_area_type";
static const char MetaDataKey_EscapeDistance[] = "escape_distance"; 

Enums

RectangleAreaType

For details, please refer to RectangleAreaType.