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

Instead of describing lanes by their width entries and, thus, invariably depending on influences of inner lanes on outer lanes, it might be more convenient to just describe the outer border of each lane independent of any inner lanes’ parameters. More...

#include <RoadInfoLaneBorder.h>

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

Public Member Functions

void AcceptVisitor (RoadInfoVisitor &v) final
 
const geom::CubicPolynomialGetPolynomial () const
 
 RoadInfoLaneBorder (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 _border
 

Additional Inherited Members

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

Detailed Description

Instead of describing lanes by their width entries and, thus, invariably depending on influences of inner lanes on outer lanes, it might be more convenient to just describe the outer border of each lane independent of any inner lanes’ parameters.

Especially in cases where road data is derived from measurements, this type of definition will provide a more convenient method without the need to tesselate road sections into too many parts. Note. Lane borders and widths are mutually exclusive.

Definition at line 23 of file RoadInfoLaneBorder.h.

Constructor & Destructor Documentation

◆ RoadInfoLaneBorder()

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

Definition at line 26 of file RoadInfoLaneBorder.h.

Member Function Documentation

◆ AcceptVisitor()

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

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

Definition at line 35 of file RoadInfoLaneBorder.h.

◆ GetPolynomial()

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

Definition at line 39 of file RoadInfoLaneBorder.h.

References _border.

Member Data Documentation

◆ _border

const geom::CubicPolynomial carla::road::element::RoadInfoLaneBorder::_border
private

Definition at line 45 of file RoadInfoLaneBorder.h.

Referenced by GetPolynomial().


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