From 34c675ef88080bb068f4fc7e693ad56e329d1d79 Mon Sep 17 00:00:00 2001 From: William Qi Date: Thu, 12 May 2022 21:13:15 -0400 Subject: [PATCH] Add UNKNOWN lane mark type to map schema (#58) * Add UNKNOWN lane mark type to map schema * Tag map schema enums with @unique --- src/av2/map/lane_segment.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/av2/map/lane_segment.py b/src/av2/map/lane_segment.py index 6f654d83..a3a25130 100644 --- a/src/av2/map/lane_segment.py +++ b/src/av2/map/lane_segment.py @@ -6,7 +6,7 @@ import logging from dataclasses import dataclass -from enum import Enum +from enum import Enum, unique from typing import Any, Dict, Final, List, Optional import av2.geometry.infinity_norm_utils as infinity_norm_utils @@ -20,6 +20,7 @@ logger = logging.getLogger(__name__) +@unique class LaneType(str, Enum): """Describes the sorts of objects that may use the lane for travel.""" @@ -28,6 +29,7 @@ class LaneType(str, Enum): BUS: str = "BUS" +@unique class LaneMarkType(str, Enum): """Color and pattern of a painted lane marking, located on either the left or ride side of a lane segment. @@ -48,6 +50,7 @@ class LaneMarkType(str, Enum): SOLID_DASH_YELLOW: str = "SOLID_DASH_YELLOW" SOLID_BLUE: str = "SOLID_BLUE" NONE: str = "NONE" + UNKNOWN: str = "UNKNOWN" @dataclass