From 183729acda0e5642f0dee9e8d6ed5704070e4346 Mon Sep 17 00:00:00 2001 From: Tobias Klockau Date: Mon, 4 Nov 2024 08:56:59 +0100 Subject: [PATCH] feat: add JSONStreamOther --- raillabel/json_format/stream_other.py | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 raillabel/json_format/stream_other.py diff --git a/raillabel/json_format/stream_other.py b/raillabel/json_format/stream_other.py new file mode 100644 index 0000000..6c5da7d --- /dev/null +++ b/raillabel/json_format/stream_other.py @@ -0,0 +1,24 @@ +# Copyright DB InfraGO AG and contributors +# SPDX-License-Identifier: Apache-2.0 + +from __future__ import annotations + +from typing import Literal + +from pydantic import BaseModel + + +class JSONStreamRadar(BaseModel): + """A stream describes the source of a data sequence, usually a sensor. + + This specific object describes a sensor without intrinsic calibration. + """ + + type: Literal["lidar", "gps_imu", "other"] + "A string encoding the type of the stream." + + uri: str | None + "A string encoding the subdirectory containing the sensor files." + + description: str | None + "Description of the stream."