Files
gps-denied-onboard/src/gps_denied/core/vo.py
T
Yuzviak bae8587c51 refactor(01-03): replace core/vo.py with re-export shim to components/vio
- core/vo.py is now ~30 LOC of pure re-exports from
  components/vio/{protocol, orbslam_backend, cuvslam_backend, factory}.
- All 8 public symbols (VisualOdometry, ISequentialVisualOdometry,
  ORBVisualOdometry, SequentialVisualOdometry, CuVSLAMVisualOdometry,
  CuVSLAMMonoDepthVisualOdometry, create_vo_backend, _CUVSLAM_AVAILABLE)
  remain importable from the legacy path with class identity preserved
  (re-export, not redefinition — isinstance checks still hold).
- tests/test_vo.py: 22/22 passing unchanged. No test files edited.
- Shim is removed in Phase 2 when TEST-01 reorganizes test taxonomy.
2026-05-10 23:01:17 +03:00

33 lines
974 B
Python

"""Legacy import path for VIO. Phase 1 shim — code lives in components/vio/.
This shim preserves ``from gps_denied.core.vo import ...`` for tests that
were green at the start of Phase 1. Future phases may migrate test
imports to the new path; the shim is removed in Phase 2 (TEST-01
reorganization).
"""
from gps_denied.components.vio.cuvslam_backend import (
_CUVSLAM_AVAILABLE,
CuVSLAMMonoDepthVisualOdometry,
CuVSLAMVisualOdometry,
)
from gps_denied.components.vio.factory import create_vo_backend
from gps_denied.components.vio.orbslam_backend import (
ORBVisualOdometry,
SequentialVisualOdometry,
)
from gps_denied.components.vio.protocol import (
ISequentialVisualOdometry,
VisualOdometry,
)
__all__ = [
"VisualOdometry",
"ISequentialVisualOdometry",
"ORBVisualOdometry",
"SequentialVisualOdometry",
"CuVSLAMVisualOdometry",
"CuVSLAMMonoDepthVisualOdometry",
"create_vo_backend",
"_CUVSLAM_AVAILABLE",
]