Class Crosswalk

Nested Relationships

Nested Types

Inheritance Relationships

Base Type

  • public lanelet::RegulatoryElement

Class Documentation

class Crosswalk : public lanelet::RegulatoryElement

Public Types

using Ptr = std::shared_ptr<Crosswalk>

Public Functions

ConstPolygons3d crosswalkAreas() const

get the relevant crosswalk area

Returns:

crosswalk area

ConstLineStrings3d stopLines() const

get the relevant crosswalk line

Returns:

stop line

ConstLanelet crosswalkLanelet() const

get the relevant crosswalk lanelet

Returns:

lanelet

void addCrosswalkArea(const Polygon3d &primitive)

add a new crosswalk area

Parameters:

primitive – crosswalk area to add

bool removeCrosswalkArea(const Polygon3d &primitive)

remove a crosswalk area

Parameters:

primitive – the primitive

Returns:

true if the crosswalk area existed and was removed

Public Static Functions

static inline Ptr make(Id id, const AttributeMap &attributes, const Lanelet &crosswalk_lanelet, const Polygon3d &crosswalk_area, const LineStrings3d &stop_line)

Public Static Attributes

static constexpr char RuleName[] = "crosswalk"
struct AutowareRoleNameString

Public Static Attributes

static constexpr const char CrosswalkPolygon[] = "crosswalk_polygon"