Class DetectionArea

Inheritance Relationships

Base Type

  • public lanelet::RegulatoryElement

Class Documentation

class DetectionArea : public lanelet::RegulatoryElement

Public Types

using Ptr = std::shared_ptr<DetectionArea>

Public Functions

ConstPolygons3d detectionAreas() const

get the relevant detection_areas

Returns:

detection_areas

Polygons3d detectionAreas()
void addDetectionArea(const Polygon3d &primitive)

add a new detection area

Parameters:

primitive – detection area to add

bool removeDetectionArea(const Polygon3d &primitive)

remove a detection area

Parameters:

primitive – the primitive

Returns:

true if the detection area existed and was removed

ConstLineString3d stopLine() const

get the stop line for the detection area

Returns:

the stop line as LineString

LineString3d stopLine()
void setStopLine(const LineString3d &stopLine)

set a new stop line, overwrite the old one

Parameters:

stopLine – new stop line

void removeStopLine()

Deletes the stop line.

Public Static Functions

static inline Ptr make(Id id, const AttributeMap &attributes, const Polygons3d &detectionAreas, const LineString3d &stopLine)

Directly construct a stop line from its required rule parameters. Might modify the input data in oder to get correct tags.

Public Static Attributes

static constexpr char RuleName[] = "detection_area"