CARLA
Loading...
Searching...
No Matches
Public Attributes | List of all members
twinmodel::Lane Struct Reference

One lane of a road, numbered outward from the reference line. More...

#include <Model.h>

Public Attributes

Direction direction = Direction::Forward
 
int id = 0
 
std::optional< Marking > marking
 
std::optional< int > predecessor_lane
 Lane this one continues from / into on the linked road; OpenDRIVE's <lane><link>, which is what lets a waypoint cross a road boundary.
 
std::optional< double > speed_limit
 
std::optional< int > successor_lane
 
Tags tags
 
LaneType type = LaneType::Driving
 
double width = 3.25
 

Detailed Description

One lane of a road, numbered outward from the reference line.

In CARLA's right-hand traffic the forward lanes take the negative ids.

Definition at line 68 of file Model.h.

Member Data Documentation

◆ direction

Direction twinmodel::Lane::direction = Direction::Forward

Definition at line 72 of file Model.h.

Referenced by twinmodel::BuildLaneGraph().

◆ id

int twinmodel::Lane::id = 0

Definition at line 69 of file Model.h.

Referenced by twinmodel::BuildLaneGraph().

◆ marking

std::optional<Marking> twinmodel::Lane::marking

Definition at line 73 of file Model.h.

◆ predecessor_lane

std::optional<int> twinmodel::Lane::predecessor_lane

Lane this one continues from / into on the linked road; OpenDRIVE's <lane><link>, which is what lets a waypoint cross a road boundary.

Definition at line 77 of file Model.h.

Referenced by twinmodel::BuildLaneGraph().

◆ speed_limit

std::optional<double> twinmodel::Lane::speed_limit

Definition at line 74 of file Model.h.

◆ successor_lane

std::optional<int> twinmodel::Lane::successor_lane

Definition at line 78 of file Model.h.

Referenced by twinmodel::BuildLaneGraph().

◆ tags

Tags twinmodel::Lane::tags

Definition at line 79 of file Model.h.

◆ type

LaneType twinmodel::Lane::type = LaneType::Driving

Definition at line 70 of file Model.h.

Referenced by twinmodel::BuildLaneGraph().

◆ width

double twinmodel::Lane::width = 3.25

Definition at line 71 of file Model.h.

Referenced by twinmodel::BuildLaneGraph().


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