Issue #45: add lane properties.

This commit is contained in:
Sergey Vartanov 2021-06-03 03:43:54 +03:00
parent 96b49632d6
commit b63a0ed397

View file

@ -2,7 +2,7 @@
Road shape drawing. Road shape drawing.
""" """
from dataclasses import dataclass from dataclasses import dataclass
from typing import List from typing import List, Optional
import numpy as np import numpy as np
import svgwrite import svgwrite
@ -19,7 +19,13 @@ class Lane:
Road lane specification. Road lane specification.
""" """
width: float # Width in meters width: Optional[float] = None # Width in meters
is_forward: Optional[bool] = None # Whether lane is forward or backward
min_speed: Optional[float] = None # Minimal speed on the lane
# "none", "merge_to_left", "slight_left", "slight_right"
turn: Optional[str] = None
change: Optional[str] = None # "not_left", "not_right"
destination: Optional[str] = None # Lane destination
class RoadPart: class RoadPart: