mirror of
https://github.com/azaion/gps-denied-onboard.git
synced 2026-04-22 22:06:37 +00:00
bbc19c0b25
Real VPAIR sample layout differs from the prior speculative adapter: - poses_query.txt (not poses.csv) with ECEF xyz + Euler roll/pitch/yaw - no native timestamps — synthesised at 5 Hz - PNG images referenced by relative filepath Adapter now uses coord helpers (ecef_to_wgs84, euler_to_quaternion). Test fixture and conftest skip-reason updated to match. Integration test xfail condition extended to cover large ATE values when VO+GPR is not yet tuned for 300-400m nadir aerial imagery. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
41 lines
1.1 KiB
Python
41 lines
1.1 KiB
Python
"""Shared fixtures for e2e tests — dataset discovery + skip markers."""
|
|
|
|
from pathlib import Path
|
|
|
|
import pytest
|
|
|
|
REPO_ROOT = Path(__file__).resolve().parents[2]
|
|
DATASETS_ROOT = REPO_ROOT / "datasets"
|
|
|
|
|
|
@pytest.fixture(scope="session")
|
|
def euroc_mh01_root() -> Path:
|
|
root = DATASETS_ROOT / "euroc" / "MH_01"
|
|
if not (root / "mav0").is_dir():
|
|
pytest.skip(
|
|
f"EuRoC MH_01 not present at {root}. "
|
|
"Run `python scripts/download_dataset.py euroc_mh01` to fetch it."
|
|
)
|
|
return root
|
|
|
|
|
|
@pytest.fixture(scope="session")
|
|
def vpair_sample_root() -> Path:
|
|
root = DATASETS_ROOT / "vpair" / "sample"
|
|
if not (root / "poses_query.txt").is_file():
|
|
pytest.skip(
|
|
f"VPAIR sample not present at {root}. "
|
|
"Download the sample zip from the Zenodo link on "
|
|
"https://github.com/AerVisLoc/vpair, then unpack so that "
|
|
f"{root}/poses_query.txt exists."
|
|
)
|
|
return root
|
|
|
|
|
|
@pytest.fixture(scope="session")
|
|
def mars_lvig_root() -> Path:
|
|
root = DATASETS_ROOT / "mars_lvig"
|
|
if not root.is_dir():
|
|
pytest.skip(f"MARS-LVIG not present at {root}.")
|
|
return root
|