This record defines access restrictions for certain types of road users. More...
#include <RoadInfoLaneAccess.h>
Public Member Functions | |
void | AcceptVisitor (RoadInfoVisitor &v) final |
const std::string & | GetRestriction () const |
RoadInfoLaneAccess (double s, std::string restriction) | |
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 | _restriction |
Additional Inherited Members | |
Protected Member Functions inherited from carla::road::element::RoadInfo | |
RoadInfo (double distance=0.0) | |
This record defines access restrictions for certain types of road users.
The record can be used to complement restrictions resulting from signs or signals in order to control the traffic flow in a scenario. Each entry is valid in direction of the increasing s co-ordinate until a new entry is defined. If multiple entries are defined, they must be listed in increasing order.
Definition at line 22 of file RoadInfoLaneAccess.h.
|
inline |
Definition at line 25 of file RoadInfoLaneAccess.h.
|
inlinefinalvirtual |
Implements carla::road::element::RoadInfo.
Definition at line 32 of file RoadInfoLaneAccess.h.
|
inline |
Definition at line 36 of file RoadInfoLaneAccess.h.
References _restriction.
|
private |
Definition at line 42 of file RoadInfoLaneAccess.h.
Referenced by GetRestriction().