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

Each lane within a road cross section may be provided with several entries defining the visibility in four directions relative to the lane’s direction. More...

#include <RoadInfoLaneVisibility.h>

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

Public Member Functions

void AcceptVisitor (RoadInfoVisitor &v) final
 
double GetBack () const
 
double GetForward () const
 
double GetLeft () const
 
double GetRight () const
 
 RoadInfoLaneVisibility (double s, double forward, double back, double left, double right)
 
- 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 double _back
 
const double _forward
 
const double _left
 
const double _right
 

Additional Inherited Members

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

Detailed Description

Each lane within a road cross section may be provided with several entries defining the visibility in four directions relative to the lane’s direction.

Each entry is valid until a new entry is defined. If multiple entries are defined, they must be listed in increasing order.

For left lanes (positive ID), the forward direction is oriented opposite to the track’s direction, for right lanes, the forward direction and the track’s direction are identical.

Definition at line 23 of file RoadInfoLaneVisibility.h.

Constructor & Destructor Documentation

◆ RoadInfoLaneVisibility()

carla::road::element::RoadInfoLaneVisibility::RoadInfoLaneVisibility ( double  s,
double  forward,
double  back,
double  left,
double  right 
)
inline

Definition at line 26 of file RoadInfoLaneVisibility.h.

Member Function Documentation

◆ AcceptVisitor()

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

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

Definition at line 39 of file RoadInfoLaneVisibility.h.

◆ GetBack()

double carla::road::element::RoadInfoLaneVisibility::GetBack ( ) const
inline

Definition at line 47 of file RoadInfoLaneVisibility.h.

References _back.

◆ GetForward()

double carla::road::element::RoadInfoLaneVisibility::GetForward ( ) const
inline

Definition at line 43 of file RoadInfoLaneVisibility.h.

References _forward.

◆ GetLeft()

double carla::road::element::RoadInfoLaneVisibility::GetLeft ( ) const
inline

Definition at line 51 of file RoadInfoLaneVisibility.h.

References _left.

◆ GetRight()

double carla::road::element::RoadInfoLaneVisibility::GetRight ( ) const
inline

Definition at line 55 of file RoadInfoLaneVisibility.h.

References _right.

Member Data Documentation

◆ _back

const double carla::road::element::RoadInfoLaneVisibility::_back
private

Definition at line 63 of file RoadInfoLaneVisibility.h.

Referenced by GetBack().

◆ _forward

const double carla::road::element::RoadInfoLaneVisibility::_forward
private

Definition at line 61 of file RoadInfoLaneVisibility.h.

Referenced by GetForward().

◆ _left

const double carla::road::element::RoadInfoLaneVisibility::_left
private

Definition at line 65 of file RoadInfoLaneVisibility.h.

Referenced by GetLeft().

◆ _right

const double carla::road::element::RoadInfoLaneVisibility::_right
private

Definition at line 67 of file RoadInfoLaneVisibility.h.

Referenced by GetRight().


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