trajectory_supervisor.helper_funcs.src.zone_loader_generic module

trajectory_supervisor.helper_funcs.src.zone_loader_generic.zone_loader_generic(path_map: str, raceline: numpy.ndarray)tuple[source]

This script reads in the roborace json map including the zone definitions. It outputs the zones with their respective s coordinates for start and end points, the pit-lane and the map reference point.

Parameters
  • path_map – path pointing to the map file to be loaded

  • raceline – raceline with (at least) following first three columns: s, x, y

Returns

  • zones - list of dicts, where each dict describes a zone with the following keys:

    • ’type’: integer describing zone type:

      • 0: start/finish

      • 1: trigger

      • 2: overtake left

      • 3: overtake right

      • 4: stop zone

      • 5: pit

    • ’id’: unique id for each zone

    • ’s_start’: s-coordinate along the race-line, where zone starts

    • ’s_end’: s-coordinate along the race-line, where zone ends

    • ’pos_start’: position where zone starts

    • ’pos_end’: position where zone ends

  • pitline - pitline s-coord and coords (columns: s, x, y)

  • map_ref_point - reference point for the map

Authors
Created on

02.07.2020