CARLA
Loading...
Searching...
No Matches
Public Types | Public Member Functions | Private Attributes | List of all members
carla::road::element::RoadInfoMarkRecord Class Referencefinal

Each lane within a road cross section can be provided with several road markentries. More...

#include <RoadInfoMarkRecord.h>

+ Inheritance diagram for carla::road::element::RoadInfoMarkRecord:

Public Types

enum class  LaneChange : uint8_t { None = 0x00 , Increase = 0x01 , Decrease = 0x02 , Both = 0x03 }
 Can be used as flags. More...
 

Public Member Functions

void AcceptVisitor (RoadInfoVisitor &v) final
 
const std::string & GetColor () const
 Color of the road mark.
 
double GetHeight () const
 Physical distance of top edge of road mark from reference plane of the lane.
 
LaneChange GetLaneChange () const
 Allow a lane change in the indicated direction taking into account that lanes are numbered in ascending order from right to left.
 
std::vector< std::unique_ptr< RoadInfoMarkTypeLine > > & GetLines ()
 
const std::string & GetMaterial () const
 Material of the road mark (identifiers to be defined, use "standard" for the moment.
 
int GetRoadMarkId () const
 Unique identifer for the road mark.
 
const std::string & GetType () const
 Type of the road mark.
 
const std::string & GetTypeName () const
 Name of the road mark type if it has one.
 
double GetTypeWidth () const
 Width of the road mark type if it has one.
 
const std::string & GetWeight () const
 Weight of the road mark.
 
double GetWidth () const
 Width of the road mark –optional.
 
bool isRHT () const
 
 RoadInfoMarkRecord (double s, int road_mark_id)
 
 RoadInfoMarkRecord (double s, int road_mark_id, std::string type, std::string weight, std::string color, std::string material, double width, LaneChange lane_change, double height, std::string type_name, double type_width, bool is_rht)
 
- Public Member Functions inherited from carla::road::element::RoadInfo
double GetDistance () const
 Distance from road's start location.
 
virtual ~RoadInfo ()=default
 

Private Attributes

const std::string _color
 
const double _height
 
bool _is_rht
 
const LaneChange _lane_change
 
std::vector< std::unique_ptr< RoadInfoMarkTypeLine > > _lines
 
const std::string _material
 
const int _road_mark_id
 
const std::string _type
 
const std::string _type_name
 
const double _type_width
 
const std::string _weight
 
const double _width
 

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 can be provided with several road markentries.

The road mark information defines the style of the line at the lane’s outer border. For left lanes, this is the left border, for right lanes the right one. The style of the line separating left and right lanes is determined by the road mark entry for lane zero (i.e. the center lane)

Definition at line 25 of file RoadInfoMarkRecord.h.

Member Enumeration Documentation

◆ LaneChange

Can be used as flags.

Enumerator
None 
Increase 
Decrease 
Both 

Definition at line 29 of file RoadInfoMarkRecord.h.

Constructor & Destructor Documentation

◆ RoadInfoMarkRecord() [1/2]

carla::road::element::RoadInfoMarkRecord::RoadInfoMarkRecord ( double  s,
int  road_mark_id 
)
inline

Definition at line 36 of file RoadInfoMarkRecord.h.

◆ RoadInfoMarkRecord() [2/2]

carla::road::element::RoadInfoMarkRecord::RoadInfoMarkRecord ( double  s,
int  road_mark_id,
std::string  type,
std::string  weight,
std::string  color,
std::string  material,
double  width,
LaneChange  lane_change,
double  height,
std::string  type_name,
double  type_width,
bool  is_rht 
)
inline

Definition at line 52 of file RoadInfoMarkRecord.h.

Member Function Documentation

◆ AcceptVisitor()

void carla::road::element::RoadInfoMarkRecord::AcceptVisitor ( RoadInfoVisitor &  v)
inlinefinalvirtual

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

Definition at line 78 of file RoadInfoMarkRecord.h.

◆ GetColor()

const std::string & carla::road::element::RoadInfoMarkRecord::GetColor ( ) const
inline

Color of the road mark.

Definition at line 98 of file RoadInfoMarkRecord.h.

References _color.

◆ GetHeight()

double carla::road::element::RoadInfoMarkRecord::GetHeight ( ) const
inline

Physical distance of top edge of road mark from reference plane of the lane.

Definition at line 122 of file RoadInfoMarkRecord.h.

References _height.

◆ GetLaneChange()

LaneChange carla::road::element::RoadInfoMarkRecord::GetLaneChange ( ) const
inline

Allow a lane change in the indicated direction taking into account that lanes are numbered in ascending order from right to left.

If the attribute is missing, “both” is assumed to be valid.

Definition at line 116 of file RoadInfoMarkRecord.h.

References _lane_change.

◆ GetLines()

std::vector< std::unique_ptr< RoadInfoMarkTypeLine > > & carla::road::element::RoadInfoMarkRecord::GetLines ( )
inline

Definition at line 140 of file RoadInfoMarkRecord.h.

References _lines.

◆ GetMaterial()

const std::string & carla::road::element::RoadInfoMarkRecord::GetMaterial ( ) const
inline

Material of the road mark (identifiers to be defined, use "standard" for the moment.

Definition at line 104 of file RoadInfoMarkRecord.h.

References _material.

◆ GetRoadMarkId()

int carla::road::element::RoadInfoMarkRecord::GetRoadMarkId ( ) const
inline

Unique identifer for the road mark.

Definition at line 83 of file RoadInfoMarkRecord.h.

References _road_mark_id.

◆ GetType()

const std::string & carla::road::element::RoadInfoMarkRecord::GetType ( ) const
inline

Type of the road mark.

Definition at line 88 of file RoadInfoMarkRecord.h.

References _type.

◆ GetTypeName()

const std::string & carla::road::element::RoadInfoMarkRecord::GetTypeName ( ) const
inline

Name of the road mark type if it has one.

Definition at line 127 of file RoadInfoMarkRecord.h.

References _type_name.

◆ GetTypeWidth()

double carla::road::element::RoadInfoMarkRecord::GetTypeWidth ( ) const
inline

Width of the road mark type if it has one.

Definition at line 132 of file RoadInfoMarkRecord.h.

References _type_width.

◆ GetWeight()

const std::string & carla::road::element::RoadInfoMarkRecord::GetWeight ( ) const
inline

Weight of the road mark.

Definition at line 93 of file RoadInfoMarkRecord.h.

References _weight.

◆ GetWidth()

double carla::road::element::RoadInfoMarkRecord::GetWidth ( ) const
inline

Width of the road mark –optional.

Definition at line 109 of file RoadInfoMarkRecord.h.

References _width.

◆ isRHT()

bool carla::road::element::RoadInfoMarkRecord::isRHT ( ) const
inline

Definition at line 136 of file RoadInfoMarkRecord.h.

References _is_rht.

Member Data Documentation

◆ _color

const std::string carla::road::element::RoadInfoMarkRecord::_color
private

Definition at line 152 of file RoadInfoMarkRecord.h.

Referenced by GetColor().

◆ _height

const double carla::road::element::RoadInfoMarkRecord::_height
private

Definition at line 160 of file RoadInfoMarkRecord.h.

Referenced by GetHeight().

◆ _is_rht

bool carla::road::element::RoadInfoMarkRecord::_is_rht
private

Definition at line 166 of file RoadInfoMarkRecord.h.

Referenced by isRHT().

◆ _lane_change

const LaneChange carla::road::element::RoadInfoMarkRecord::_lane_change
private

Definition at line 158 of file RoadInfoMarkRecord.h.

Referenced by GetLaneChange().

◆ _lines

std::vector<std::unique_ptr<RoadInfoMarkTypeLine> > carla::road::element::RoadInfoMarkRecord::_lines
private

Definition at line 168 of file RoadInfoMarkRecord.h.

Referenced by GetLines().

◆ _material

const std::string carla::road::element::RoadInfoMarkRecord::_material
private

Definition at line 154 of file RoadInfoMarkRecord.h.

Referenced by GetMaterial().

◆ _road_mark_id

const int carla::road::element::RoadInfoMarkRecord::_road_mark_id
private

Definition at line 146 of file RoadInfoMarkRecord.h.

Referenced by GetRoadMarkId().

◆ _type

const std::string carla::road::element::RoadInfoMarkRecord::_type
private

Definition at line 148 of file RoadInfoMarkRecord.h.

Referenced by GetType().

◆ _type_name

const std::string carla::road::element::RoadInfoMarkRecord::_type_name
private

Definition at line 162 of file RoadInfoMarkRecord.h.

Referenced by GetTypeName().

◆ _type_width

const double carla::road::element::RoadInfoMarkRecord::_type_width
private

Definition at line 164 of file RoadInfoMarkRecord.h.

Referenced by GetTypeWidth().

◆ _weight

const std::string carla::road::element::RoadInfoMarkRecord::_weight
private

Definition at line 150 of file RoadInfoMarkRecord.h.

Referenced by GetWeight().

◆ _width

const double carla::road::element::RoadInfoMarkRecord::_width
private

Definition at line 156 of file RoadInfoMarkRecord.h.

Referenced by GetWidth().


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