Skip to content

Commit

Permalink
feat: add JSONStreamOther
Browse files Browse the repository at this point in the history
  • Loading branch information
tklockau committed Nov 4, 2024
1 parent 3b86427 commit 183729a
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions raillabel/json_format/stream_other.py
Original file line number Diff line number Diff line change
@@ -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."

0 comments on commit 183729a

Please sign in to comment.