From SUMO
Generate Protobuf Data
from mosstool.map.osm import RoadNet
object = RoadNet()
Input files
- SUMO road net (definitions)
net_path
- SUMO AOIs and POIs (definitions)
poly_path
- SUMO bus stops (definitions)
additional_path
- SUMO traffic light (definitions)
Args of MapConverter
net_path (str)
: the path to the SUMO road net filedefault_lane_width (float)
: default width for generated lanesgreen_time (float)
: traffic light green time in fixed programyellow_time (float)
: traffic light yellow time in fixed programpoly_path (str)
: the path to the SUMO AOIs and POIs fileadditional_path (str)
: the path to the SUMO additional filetraffic_light_path (str)
: the path to the SUMO traffic-light filetraffic_light_min_direction_group (int)
: minimum number of lane directions for traffic-light generationmerge_aoi (bool)
: whether merge nearby AOIs or notworkers (int)
: number of workers