How sagigile/navigationdrone works
This is a UAV visual-localization system: reference-flight imagery and telemetry establish a georeferenced map, while query-video frames are matched and combined with visual odometry and satellite/reference anchors to estimate a view-center trajectory. Offline fusion smooths and exports the route; a separate real-time demo uses a constant-velocity Kalman filter. The README establishes the product capabilities and entry points; some pipeline handoffs are only implied by the documented architecture and are marked unverified.
Main entry points: localize_query_video.py Query localization · option2_fusion_optimizer.py Robust fusion · wgs84.py WGS84 transforms · geo_align.py Geo alignment
Components 19
Reference Mapping
- Reference extraction
build_once/extract_reference.py - Frame extraction
src/frame_io.py - Telemetry parsing
src/telemetry.py - SfM map builder
build_once/build_map_hloc.py - Geo alignment
src/geo_align.py
Query Localization
- Offline entry
Main.py - Query localization
build_once/localize_query_video.py - Match reranking
pipeline/fast_rerank_query_reference_matches.py - Real-time demo
RealTime_Demo.py
Trajectory Fusion
- Anchor and VO route
pipeline/anchor_vo_v2.py - Satellite map priors
pipeline/option2_satellite_prior.py - Robust fusion
pipeline/option2_fusion_optimizer.py
Geospatial Core
- COLMAP model reader
src/colmap_model.py - Configuration
src/config.py - Kalman filter
src/kalman.py - WGS84 transforms
src/wgs84.py - KML export
src/kml_export.py
Other components
- Operator / video
- Localized route
Connections 24
- Operator / video → Offline entry: starts offline
README.md - Offline entry → Robust fusion: runs offline fusion
- Operator / video → Reference extraction: provides reference flights
- Reference extraction → Frame extraction: extracts frames
build_once/extract_reference.py - Frame extraction → Telemetry parsing: reads telemetry
src/frame_io.py - Operator / video → SfM map builder: provides reference images
- SfM map builder → Configuration: loads settings
build_once/build_map_hloc.py - Operator / video → Geo alignment: provides reference metadata
- Geo alignment → COLMAP model reader: reads image poses
src/geo_align.py - Geo alignment → WGS84 transforms: converts coordinates
src/geo_align.py - Operator / video → Query localization: provides query video
- Query localization → Frame extraction: extracts query frames
build_once/localize_query_video.py - Query localization → Configuration: loads settings
build_once/localize_query_video.py - Query localization → Kalman filter: smooths locations
build_once/localize_query_video.py - Query localization → WGS84 transforms: converts coordinates
build_once/localize_query_video.py - Query localization → KML export: exports route
build_once/localize_query_video.py - Match reranking → Anchor and VO route: ranks reference matches
- Anchor and VO route → WGS84 transforms: converts anchor positions
pipeline/anchor_vo_v2.py - Anchor and VO route → Robust fusion: supplies initial route
- Satellite map priors → Robust fusion: supplies map priors
- Robust fusion → WGS84 transforms: converts coordinates
pipeline/option2_fusion_optimizer.py - Robust fusion → Localized route: writes fused route
- Operator / video → Real-time demo: starts live demo
README.md - Real-time demo → Kalman filter: filters live positions
RealTime_Demo.py