mirror of
https://github.com/azaion/gps-denied-onboard.git
synced 2026-06-22 13:01:14 +00:00
5dfd9a577e
Closes cumulative review 46-48 F1 (Medium) + F3 (Low). Adds iso_ts_from_clock(clock) alongside iso_ts_now() in the Layer-1 helper; migrates four duplicate definitions in c2_vpr (net_vlad, ultra_vpr, _faiss_bridge) and c12_operator_orchestrator (operator_reloc_service). Output format flipped +00:00 -> Z to align with iso_ts_now() and the canonical FDR _TS fixture (FDR schema test passes unmodified). 18 helper AC tests + 186 sibling tests pass; ruff clean. Co-authored-by: Cursor <cursoragent@cursor.com>
97 lines
2.3 KiB
Python
97 lines
2.3 KiB
Python
"""Shared utilities (E-CC-HELPERS / AZ-264).
|
|
|
|
Each helper has its own task (AZ-276..AZ-283). This package exposes the
|
|
ones that have landed so consumers can depend on a stable public surface
|
|
without reaching into the helper modules directly.
|
|
"""
|
|
|
|
from gps_denied_onboard.helpers.descriptor_normaliser import (
|
|
ALLOWED_DTYPES,
|
|
DescriptorNormaliser,
|
|
DescriptorNormaliserError,
|
|
)
|
|
from gps_denied_onboard.helpers.engine_filename_schema import (
|
|
ALLOWED_PRECISIONS,
|
|
ENGINE_SUFFIX,
|
|
EngineFilenameSchema,
|
|
EngineFilenameSchemaError,
|
|
)
|
|
from gps_denied_onboard.helpers.imu_preintegrator import (
|
|
CombinedImuFactor,
|
|
ImuPreintegrationError,
|
|
ImuPreintegrator,
|
|
make_imu_preintegrator,
|
|
)
|
|
from gps_denied_onboard.helpers.iso_timestamps import (
|
|
iso_ts_from_clock,
|
|
iso_ts_now,
|
|
)
|
|
from gps_denied_onboard.helpers.lightglue_runtime import (
|
|
LightGlueConcurrentAccessError,
|
|
LightGlueRuntime,
|
|
LightGlueRuntimeError,
|
|
)
|
|
from gps_denied_onboard.helpers.ransac_filter import (
|
|
RansacFilter,
|
|
RansacFilterError,
|
|
RansacResult,
|
|
)
|
|
from gps_denied_onboard.helpers.se3_utils import (
|
|
SE3,
|
|
Se3InvalidMatrixError,
|
|
adjoint,
|
|
exp_map,
|
|
is_valid_rotation,
|
|
log_map,
|
|
matrix_to_se3,
|
|
se3_to_matrix,
|
|
)
|
|
from gps_denied_onboard.helpers.sha256_sidecar import (
|
|
SIDECAR_SUFFIX,
|
|
Sha256Sidecar,
|
|
Sha256SidecarError,
|
|
)
|
|
from gps_denied_onboard.helpers.wgs_converter import (
|
|
MAX_ZOOM,
|
|
WEB_MERCATOR_MAX_LAT_DEG,
|
|
WgsConversionError,
|
|
WgsConverter,
|
|
)
|
|
|
|
__all__ = [
|
|
"ALLOWED_DTYPES",
|
|
"ALLOWED_PRECISIONS",
|
|
"ENGINE_SUFFIX",
|
|
"MAX_ZOOM",
|
|
"SE3",
|
|
"SIDECAR_SUFFIX",
|
|
"WEB_MERCATOR_MAX_LAT_DEG",
|
|
"CombinedImuFactor",
|
|
"DescriptorNormaliser",
|
|
"DescriptorNormaliserError",
|
|
"EngineFilenameSchema",
|
|
"EngineFilenameSchemaError",
|
|
"ImuPreintegrationError",
|
|
"ImuPreintegrator",
|
|
"LightGlueConcurrentAccessError",
|
|
"LightGlueRuntime",
|
|
"LightGlueRuntimeError",
|
|
"RansacFilter",
|
|
"RansacFilterError",
|
|
"RansacResult",
|
|
"Se3InvalidMatrixError",
|
|
"Sha256Sidecar",
|
|
"Sha256SidecarError",
|
|
"WgsConversionError",
|
|
"WgsConverter",
|
|
"adjoint",
|
|
"exp_map",
|
|
"is_valid_rotation",
|
|
"iso_ts_from_clock",
|
|
"iso_ts_now",
|
|
"log_map",
|
|
"make_imu_preintegrator",
|
|
"matrix_to_se3",
|
|
"se3_to_matrix",
|
|
]
|