mirror of
https://github.com/azaion/gps-denied-onboard.git
synced 2026-04-23 01:36:36 +00:00
initial structure implemented
docs -> _docs
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
from .sim3_transform import Sim3Transform
|
||||
from .chunk_handle import ChunkHandle
|
||||
from .chunk_bounds import ChunkBounds
|
||||
|
||||
__all__ = [
|
||||
"Sim3Transform",
|
||||
"ChunkHandle",
|
||||
"ChunkBounds",
|
||||
]
|
||||
|
||||
@@ -0,0 +1,9 @@
|
||||
from pydantic import BaseModel
|
||||
from ..core.gps_point import GPSPoint
|
||||
|
||||
|
||||
class ChunkBounds(BaseModel):
|
||||
estimated_center: GPSPoint
|
||||
estimated_radius: float
|
||||
confidence: float
|
||||
|
||||
@@ -0,0 +1,17 @@
|
||||
from typing import Optional
|
||||
from pydantic import BaseModel
|
||||
from ..core.gps_point import GPSPoint
|
||||
|
||||
|
||||
class ChunkHandle(BaseModel):
|
||||
chunk_id: str
|
||||
flight_id: str
|
||||
start_frame_id: int
|
||||
end_frame_id: Optional[int] = None
|
||||
frames: list[int] = []
|
||||
is_active: bool = True
|
||||
has_anchor: bool = False
|
||||
anchor_frame_id: Optional[int] = None
|
||||
anchor_gps: Optional[GPSPoint] = None
|
||||
matching_status: str = "unanchored"
|
||||
|
||||
@@ -0,0 +1,11 @@
|
||||
import numpy as np
|
||||
from pydantic import BaseModel, ConfigDict
|
||||
|
||||
|
||||
class Sim3Transform(BaseModel):
|
||||
model_config = ConfigDict(arbitrary_types_allowed=True)
|
||||
|
||||
translation: np.ndarray
|
||||
rotation: np.ndarray
|
||||
scale: float
|
||||
|
||||
Reference in New Issue
Block a user