mirror of
https://github.com/enzet/map-machine.git
synced 2025-06-06 04:41:54 +02:00
Issue #45: add lane properties.
This commit is contained in:
parent
96b49632d6
commit
b63a0ed397
1 changed files with 8 additions and 2 deletions
|
@ -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:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue