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

#include <RoadInfoSignal.h>

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

Public Member Functions

void AcceptVisitor (RoadInfoVisitor &v) final
 
SignalOrientation GetOrientation () const
 
RoadId GetRoadId () const
 
double GetS () const
 
const SignalGetSignal () const
 
SignId GetSignalId () const
 
double GetT () const
 
const std::vector< LaneValidity > & GetValidities () const
 
bool IsDynamic () const
 
 RoadInfoSignal (SignId signal_id, Signal *signal, RoadId road_id, double s, double t, std::string orientation)
 
 RoadInfoSignal (SignId signal_id, RoadId road_id, double s, double t, std::string orientation)
 
- Public Member Functions inherited from carla::road::element::RoadInfo
double GetDistance () const
 Distance from road's start location. More...
 
virtual ~RoadInfo ()=default
 

Private Attributes

std::string _orientation
 
RoadId _road_id
 
double _s
 
Signal_signal
 
SignId _signal_id
 
double _t
 
std::vector< LaneValidity_validities
 
friend MapBuilder
 

Additional Inherited Members

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

Detailed Description

Definition at line 16 of file RoadInfoSignal.h.

Constructor & Destructor Documentation

◆ RoadInfoSignal() [1/2]

carla::road::element::RoadInfoSignal::RoadInfoSignal ( SignId  signal_id,
Signal signal,
RoadId  road_id,
double  s,
double  t,
std::string  orientation 
)
inline

Definition at line 19 of file RoadInfoSignal.h.

◆ RoadInfoSignal() [2/2]

carla::road::element::RoadInfoSignal::RoadInfoSignal ( SignId  signal_id,
RoadId  road_id,
double  s,
double  t,
std::string  orientation 
)
inline

Definition at line 34 of file RoadInfoSignal.h.

Member Function Documentation

◆ AcceptVisitor()

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

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

Definition at line 47 of file RoadInfoSignal.h.

◆ GetOrientation()

SignalOrientation carla::road::element::RoadInfoSignal::GetOrientation ( ) const
inline

Definition at line 75 of file RoadInfoSignal.h.

References _orientation, carla::road::Both, carla::road::Negative, and carla::road::Positive.

Referenced by carla::client::Landmark::GetOrientation().

+ Here is the caller graph for this function:

◆ GetRoadId()

RoadId carla::road::element::RoadInfoSignal::GetRoadId ( ) const
inline

Definition at line 59 of file RoadInfoSignal.h.

References _road_id.

Referenced by carla::client::Landmark::GetRoadId().

+ Here is the caller graph for this function:

◆ GetS()

double carla::road::element::RoadInfoSignal::GetS ( ) const
inline

Definition at line 67 of file RoadInfoSignal.h.

References _s.

Referenced by carla::client::Landmark::GetS().

+ Here is the caller graph for this function:

◆ GetSignal()

const Signal* carla::road::element::RoadInfoSignal::GetSignal ( ) const
inline

◆ GetSignalId()

SignId carla::road::element::RoadInfoSignal::GetSignalId ( ) const
inline

Definition at line 51 of file RoadInfoSignal.h.

References _signal_id.

Referenced by carla::client::Landmark::GetId().

+ Here is the caller graph for this function:

◆ GetT()

double carla::road::element::RoadInfoSignal::GetT ( ) const
inline

Definition at line 71 of file RoadInfoSignal.h.

References _t.

Referenced by carla::client::Landmark::GetT().

+ Here is the caller graph for this function:

◆ GetValidities()

const std::vector<LaneValidity>& carla::road::element::RoadInfoSignal::GetValidities ( ) const
inline

Definition at line 85 of file RoadInfoSignal.h.

References _validities.

Referenced by carla::client::Landmark::GetValidities().

+ Here is the caller graph for this function:

◆ IsDynamic()

bool carla::road::element::RoadInfoSignal::IsDynamic ( ) const
inline

Definition at line 63 of file RoadInfoSignal.h.

References _signal, and carla::road::Signal::GetDynamic().

Referenced by carla::client::Landmark::IsDynamic().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Member Data Documentation

◆ _orientation

std::string carla::road::element::RoadInfoSignal::_orientation
private

Definition at line 102 of file RoadInfoSignal.h.

Referenced by GetOrientation().

◆ _road_id

RoadId carla::road::element::RoadInfoSignal::_road_id
private

Definition at line 96 of file RoadInfoSignal.h.

Referenced by GetRoadId().

◆ _s

double carla::road::element::RoadInfoSignal::_s
private

Definition at line 98 of file RoadInfoSignal.h.

Referenced by GetS().

◆ _signal

Signal* carla::road::element::RoadInfoSignal::_signal
private

Definition at line 94 of file RoadInfoSignal.h.

Referenced by GetSignal(), and IsDynamic().

◆ _signal_id

SignId carla::road::element::RoadInfoSignal::_signal_id
private

Definition at line 92 of file RoadInfoSignal.h.

Referenced by GetSignalId().

◆ _t

double carla::road::element::RoadInfoSignal::_t
private

Definition at line 100 of file RoadInfoSignal.h.

Referenced by GetT().

◆ _validities

std::vector<LaneValidity> carla::road::element::RoadInfoSignal::_validities
private

◆ MapBuilder

friend carla::road::element::RoadInfoSignal::MapBuilder
private

Definition at line 90 of file RoadInfoSignal.h.


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