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

#include <LaneGraph.h>

Public Attributes

bool all_junctions_traffic_lights = false
 
std::optional< geom::Box > clip
 Clip the network to this box in model metres, as the Python pipeline clips to the requested bbox.
 
double cluster_m = 30.0
 Two intersection nodes join one junction when a chain shorter than this links them and they are closer than this; profiles.py's JunctionRules.cluster_m, 30 m for the dense European profile.
 
bool generate_traffic_lights = false
 
double junction_radius = 6.0
 Radius around a junction node that the incoming roads are trimmed back by, so the connecting roads have room to turn.
 
double min_road_length = 1.0
 Ways shorter than this are merged into their neighbour rather than becoming a road of their own.
 
double uturn_deg = 150.0
 Turns sharper than this are U-turns and get no connection; the profile's JunctionRules.uturn_deg.
 

Detailed Description

Definition at line 18 of file LaneGraph.h.

Member Data Documentation

◆ all_junctions_traffic_lights

bool twinmodel::LaneGraphOptions::all_junctions_traffic_lights = false

Definition at line 41 of file LaneGraph.h.

Referenced by osm2odr::ConvertOSMToOpenDRIVE().

◆ clip

std::optional<geom::Box> twinmodel::LaneGraphOptions::clip

Clip the network to this box in model metres, as the Python pipeline clips to the requested bbox.

Empty keeps every way whole.

Definition at line 38 of file LaneGraph.h.

Referenced by twinmodel::BuildLaneGraph(), and osm2odr::ConvertOSMToOpenDRIVE().

◆ cluster_m

double twinmodel::LaneGraphOptions::cluster_m = 30.0

Two intersection nodes join one junction when a chain shorter than this links them and they are closer than this; profiles.py's JunctionRules.cluster_m, 30 m for the dense European profile.

Definition at line 30 of file LaneGraph.h.

Referenced by twinmodel::BuildLaneGraph().

◆ generate_traffic_lights

bool twinmodel::LaneGraphOptions::generate_traffic_lights = false

Definition at line 40 of file LaneGraph.h.

Referenced by osm2odr::ConvertOSMToOpenDRIVE().

◆ junction_radius

double twinmodel::LaneGraphOptions::junction_radius = 6.0

Radius around a junction node that the incoming roads are trimmed back by, so the connecting roads have room to turn.

Definition at line 25 of file LaneGraph.h.

Referenced by twinmodel::BuildLaneGraph().

◆ min_road_length

double twinmodel::LaneGraphOptions::min_road_length = 1.0

Ways shorter than this are merged into their neighbour rather than becoming a road of their own.

Definition at line 21 of file LaneGraph.h.

Referenced by twinmodel::BuildLaneGraph().

◆ uturn_deg

double twinmodel::LaneGraphOptions::uturn_deg = 150.0

Turns sharper than this are U-turns and get no connection; the profile's JunctionRules.uturn_deg.

Definition at line 34 of file LaneGraph.h.

Referenced by twinmodel::BuildLaneGraph().


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