CARLA
Public Member Functions | Private Attributes | List of all members
carla::road::element::RoadInfoLaneWidth Class Referencefinal

Lane Width RecordEach lane within a road’scross section can be provided with severalwidth entries. More...

#include <RoadInfoLaneWidth.h>

+ Inheritance diagram for carla::road::element::RoadInfoLaneWidth:
+ Collaboration diagram for carla::road::element::RoadInfoLaneWidth:

Public Member Functions

void AcceptVisitor (RoadInfoVisitor &v) final
 
const geom::CubicPolynomialGetPolynomial () const
 
 RoadInfoLaneWidth (double s, double a, double b, double c, double d)
 
- Public Member Functions inherited from carla::road::element::RoadInfo
double GetDistance () const
 Distance from road's start location. More...
 
virtual ~RoadInfo ()=default
 

Private Attributes

const geom::CubicPolynomial _width
 

Additional Inherited Members

- Protected Member Functions inherited from carla::road::element::RoadInfo
 RoadInfo (double distance=0.0)
 

Detailed Description

Lane Width RecordEach lane within a road’scross section can be provided with severalwidth entries.

At least one entry must be defined for each lane, except for the center lane which is, per convention, of zero width. Each entry is valid until a new entry is defined. If multiple entries are defined for a lane, they must be listed in ascendingorder.

Definition at line 21 of file RoadInfoLaneWidth.h.

Constructor & Destructor Documentation

◆ RoadInfoLaneWidth()

carla::road::element::RoadInfoLaneWidth::RoadInfoLaneWidth ( double  s,
double  a,
double  b,
double  c,
double  d 
)
inline

Definition at line 24 of file RoadInfoLaneWidth.h.

Member Function Documentation

◆ AcceptVisitor()

void carla::road::element::RoadInfoLaneWidth::AcceptVisitor ( RoadInfoVisitor v)
inlinefinalvirtual

Implements carla::road::element::RoadInfo.

Definition at line 33 of file RoadInfoLaneWidth.h.

◆ GetPolynomial()

const geom::CubicPolynomial& carla::road::element::RoadInfoLaneWidth::GetPolynomial ( ) const
inline

Definition at line 37 of file RoadInfoLaneWidth.h.

References _width.

Referenced by carla::road::Map::GetWaypoint().

+ Here is the caller graph for this function:

Member Data Documentation

◆ _width

const geom::CubicPolynomial carla::road::element::RoadInfoLaneWidth::_width
private

Definition at line 43 of file RoadInfoLaneWidth.h.

Referenced by GetPolynomial().


The documentation for this class was generated from the following file: