Class Lanelet
Defined in File Lanelet.h
Inheritance Relationships
Base Type
public lanelet::Primitive< ConstLanelet >
(Template Class Primitive)
Class Documentation
-
class Lanelet : public lanelet::Primitive<ConstLanelet>
The famous (mutable) lanelet class.
Public Functions
-
Lanelet() = default
-
inline Lanelet(const LaneletDataPtr &data, bool inverted)
-
inline LineString3d leftBound()
Get the left bound.
-
inline LineString2d leftBound2d()
get the left bound in 2d. To be used over leftBound where geometric calculations are required.
-
inline LineString3d leftBound3d()
get the left bound in 3d. To be used over leftBound where geometric calculations are required.
-
inline LineString3d rightBound()
Get the right bound.
-
inline LineString2d rightBound2d()
get the right bound in 2d. To be used over rightBound where geometric calculations are required.
-
inline LineString3d rightBound3d()
get the right bound in 3d. To be used over rightBound where geometric calculations are required.
-
inline ConstLineString3d rightBound() const
get the right bound.
-
inline void setLeftBound(const LineString3d &bound)
Sets a new left bound and resets the cached centerline.
-
inline void setRightBound(const LineString3d &bound)
Sets a new right bound and resets the cached centerline.
-
inline void setCenterline(const LineString3d ¢erline)
Forcefully set a new centerline. Must have a valid Id.
This overrides the default behaviour where the centerline is automatically calculated by the library. The centerline will not be updated if the bounds of the lanelet are modified.
There is no check whether the centerline is actually valid.
-
inline const RegulatoryElementPtrs ®ulatoryElements()
Return regulatoryElements that affect this lanelet.
-
inline void addRegulatoryElement(RegulatoryElementPtr regElem)
Add a new regulatory element.
-
inline bool removeRegulatoryElement(const RegulatoryElementPtr ®Elem)
Removes a regulatory element, returns true on success.
Get the regulatoryElements that could be converted to RegElemT.
-
Primitive() = default
Construct a new primitive from shared_ptr to its data.
Friends
- friend class ConstWeakLanelet
- friend class Primitive
-
Lanelet() = default