mirror of
https://github.com/azaion/gps-denied-onboard.git
synced 2026-06-22 06:11:14 +00:00
bae8587c51
- 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.
33 lines
974 B
Python
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",
|
|
]
|