Skip to main content

From SUMO

Generate Protobuf Data

from mosstool.map.osm import RoadNet
object = RoadNet()

Input files

Args of MapConverter

  1. net_path (str): the path to the SUMO road net file
  2. default_lane_width (float): default width for generated lanes
  3. green_time (float): traffic light green time in fixed program
  4. yellow_time (float): traffic light yellow time in fixed program
  5. poly_path (str): the path to the SUMO AOIs and POIs file
  6. additional_path (str): the path to the SUMO additional file
  7. traffic_light_path (str): the path to the SUMO traffic-light file
  8. traffic_light_min_direction_group (int): minimum number of lane directions for traffic-light generation
  9. merge_aoi (bool): whether merge nearby AOIs or not
  10. workers (int): number of workers