Skip to content

Commit

Permalink
Add UNKNOWN lane mark type to map schema (#58)
Browse files Browse the repository at this point in the history
* Add UNKNOWN lane mark type to map schema

* Tag map schema enums with @unique
  • Loading branch information
wqi authored May 13, 2022
1 parent 82f6ae3 commit 34c675e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/av2/map/lane_segment.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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."""

Expand All @@ -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.
Expand All @@ -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
Expand Down

0 comments on commit 34c675e

Please sign in to comment.