From 4a0979fe67dd5971e2ea4944267d6df021f8a443 Mon Sep 17 00:00:00 2001 From: unexcellent <> Date: Wed, 30 Oct 2024 09:43:40 +0100 Subject: [PATCH] feat: add JSONCoordinateSystem --- raillabel/json_format/coordinate_system.py | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 raillabel/json_format/coordinate_system.py diff --git a/raillabel/json_format/coordinate_system.py b/raillabel/json_format/coordinate_system.py new file mode 100644 index 0000000..d8815a0 --- /dev/null +++ b/raillabel/json_format/coordinate_system.py @@ -0,0 +1,18 @@ +# Copyright DB InfraGO AG and contributors +# SPDX-License-Identifier: Apache-2.0 + +from __future__ import annotations + +from typing import Literal + +from pydantic import BaseModel +from transform_data import JSONTransformData + + +class JSONCoordinateSystem(BaseModel): + """A 3D reference frame.""" + + children: list[str] + parent: Literal["base", ""] + pose_wrt_parent: JSONTransformData + type: Literal["sensor", "local"]