Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions dgp/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
Common DGP constants. Constants here only depened on dgp.proto to avoid circular imports.
"""
from collections import OrderedDict
from dataclasses import dataclass

from dgp.proto import annotations_pb2, dataset_pb2, features_pb2

Expand Down Expand Up @@ -34,3 +35,12 @@
FEATURE_TYPE_ID_TO_KEY = OrderedDict({v: k for k, v in FEATURE_KEY_TO_TYPE_ID.items()})
# String identifiers for feature types
ALL_FEATURE_TYPES = tuple(FEATURE_KEY_TO_TYPE_ID.keys())


@dataclass
class Vehicle:
vehicle_name: str
vehicle_length: float
vehicle_width: float
vehicle_height: float
vehicle_applanix_origin_to_r_bumper: float
Loading