Each lane within a road cross section can be provided with several road markentries. More...
#include <RoadInfoMarkRecord.h>
Public Types | |
enum | LaneChange : uint8_t { LaneChange::None = 0x00, LaneChange::Increase = 0x01, LaneChange::Decrease = 0x02, LaneChange::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. More... | |
double | GetHeight () const |
Physical distance of top edge of road mark from reference plane of the lane. More... | |
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. More... | |
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. More... | |
int | GetRoadMarkId () const |
Unique identifer for the road mark. More... | |
const std::string & | GetType () const |
Type of the road mark. More... | |
const std::string & | GetTypeName () const |
Name of the road mark type if it has one. More... | |
double | GetTypeWidth () const |
Width of the road mark type if it has one. More... | |
const std::string & | GetWeight () const |
Weight of the road mark. More... | |
double | GetWidth () const |
Width of the road mark –optional. More... | |
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) | |
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 std::string | _color |
const double | _height |
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) | |
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.
|
strong |
Can be used as flags.
Enumerator | |
---|---|
None | |
Increase | |
Decrease | |
Both |
Definition at line 29 of file RoadInfoMarkRecord.h.
|
inline |
Definition at line 36 of file RoadInfoMarkRecord.h.
|
inline |
Definition at line 51 of file RoadInfoMarkRecord.h.
|
inlinefinalvirtual |
Implements carla::road::element::RoadInfo.
Definition at line 75 of file RoadInfoMarkRecord.h.
|
inline |
|
inline |
Physical distance of top edge of road mark from reference plane of the lane.
Definition at line 119 of file RoadInfoMarkRecord.h.
References _height.
|
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 113 of file RoadInfoMarkRecord.h.
References _lane_change.
|
inline |
Definition at line 133 of file RoadInfoMarkRecord.h.
References _lines.
|
inline |
Material of the road mark (identifiers to be defined, use "standard" for the moment.
Definition at line 101 of file RoadInfoMarkRecord.h.
References _material.
|
inline |
Unique identifer for the road mark.
Definition at line 80 of file RoadInfoMarkRecord.h.
References _road_mark_id.
|
inline |
|
inline |
Name of the road mark type if it has one.
Definition at line 124 of file RoadInfoMarkRecord.h.
References _type_name.
|
inline |
Width of the road mark type if it has one.
Definition at line 129 of file RoadInfoMarkRecord.h.
References _type_width.
|
inline |
|
inline |
Width of the road mark –optional.
Definition at line 106 of file RoadInfoMarkRecord.h.
References _width.
|
private |
Definition at line 145 of file RoadInfoMarkRecord.h.
Referenced by GetColor().
|
private |
Definition at line 153 of file RoadInfoMarkRecord.h.
Referenced by GetHeight().
|
private |
Definition at line 151 of file RoadInfoMarkRecord.h.
Referenced by GetLaneChange().
|
private |
Definition at line 159 of file RoadInfoMarkRecord.h.
Referenced by GetLines().
|
private |
Definition at line 147 of file RoadInfoMarkRecord.h.
Referenced by GetMaterial().
|
private |
Definition at line 139 of file RoadInfoMarkRecord.h.
Referenced by GetRoadMarkId().
|
private |
Definition at line 141 of file RoadInfoMarkRecord.h.
Referenced by GetType().
|
private |
Definition at line 155 of file RoadInfoMarkRecord.h.
Referenced by GetTypeName().
|
private |
Definition at line 157 of file RoadInfoMarkRecord.h.
Referenced by GetTypeWidth().
|
private |
Definition at line 143 of file RoadInfoMarkRecord.h.
Referenced by GetWeight().
|
private |
Definition at line 149 of file RoadInfoMarkRecord.h.
Referenced by GetWidth().