pybtls.traffic.vehicle_generator.VehicleGenGarage#

class VehicleGenGarage(garage, kernel, garage_format=None, **kwargs)[source]#

Bases: object

The VehicleGenGarage instance in Python stores the data for creating a CVehicleGenGarage instance in C++.

This generation is a bootstrapping process.

Parameters:
  • garage (Union[Path, list[_Vehicle]]) – The path to the garage file, or a list of Vehicle objects.

  • kernel (list[list[float]]) –

    The kernel is to ensure variation between the generated vehicles and garages.

    kernel = [

    [Mean_GVW, Std_GVW],

    [Mean_AxleWeight, Std_AxleWeight],

    [Mean_AxleSpacing, Std_AxleSpacing]

    ].

  • garage_format (Literal[1,2,3,4], optional) –

    The format of the .txt garage file.

    1: CASTOR format.

    2: BEDIT format.

    3: DITIS format.

    4: MON format.

Keyword Arguments:
  • classifier_type (str) – Vehicle classifier type. “axle” or “pattern”. Default is “pattern”.

  • lane_eccentricity_std (float) – Standard deviation of lane eccentricity. Default is 0.0.

  • kernel_type (int) – Kernel type. 0 (Normal) or 1 (Triangle). Default is 1 (Triangle).

Methods

Attributes

tag