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

The lane offset record defines a lateral shift of the lane reference line(which is usually identical to the road reference line). More...

#include <RoadInfoLaneOffset.h>

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

Public Member Functions

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

Additional Inherited Members

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

Detailed Description

The lane offset record defines a lateral shift of the lane reference line(which is usually identical to the road reference line).

This may be used for an easy implementation of a (local)lateralshift of the lanes relative to the road’s referenceline. Especially the modeling of inner-city layouts or "2+1" cross-country road layouts can be facilitated considerably by this feature.

Definition at line 22 of file RoadInfoLaneOffset.h.

Constructor & Destructor Documentation

◆ RoadInfoLaneOffset()

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

Definition at line 25 of file RoadInfoLaneOffset.h.

Member Function Documentation

◆ AcceptVisitor()

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

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

Definition at line 34 of file RoadInfoLaneOffset.h.

◆ GetPolynomial()

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

Definition at line 38 of file RoadInfoLaneOffset.h.

References _offset.

Member Data Documentation

◆ _offset

const geom::CubicPolynomial carla::road::element::RoadInfoLaneOffset::_offset
private

Definition at line 44 of file RoadInfoLaneOffset.h.

Referenced by GetPolynomial().


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