Optical tracking simulation

ORVESS-PAT

A Python and PySide6 simulation workbench for coarse pointing, acquisition, and tracking in free-space optical communications.

In progressPythonPySide6NumPySciPyOpenCVAdaptive EKF

ORVESS-PAT explores ISRO Smart India Hackathon problem SIH26169: testing coarse beacon acquisition and tracking algorithms in simulation without physical optical benches or collimated lasers.

Instead of wrapping a heavy object detector around a webcam dot, the simulator models a 640x480 focal-plane array (Airy disk PSF, shot noise, salt-and-pepper noise, fog attenuation) paired with sub-pixel intensity-weighted centroiding, observation quality scoring (q_t), an Adaptive-R Extended Kalman Filter, and a rate-limited Pan/Tilt controller.

Still in active research and simulation; nothing here claims flight readiness or hardware optical-bench validation.

How it works

Sensor & Physics
Simulated 640x480 monochrome FPA modeling Airy/Gaussian point-spread functions, Poisson shot noise, salt-and-pepper noise, and Beer-Lambert fog fade.
Estimator & Quality
Sub-pixel centroiding computing observation quality q_t in [0, 1] to modulate measurement covariance R dynamically in the EKF.
Testbed UI
PySide6 Qt6 CAD-inspired workbench comparing Baseline vs. Adaptive trackers side by side via a pluggable BaseTracker interface.

Engineering Case Study

Decisions, tradeoffs, and what broke.

Verified from source code and shipped iterations, including current constraints.

Problem & Role

Evaluating coarse optical beacon trackers under atmospheric fog, sensor noise, and gimbal slew limits requires repeatable experiments before hardware benches exist.

Architected the optical simulation pipeline (`core/sensor.py`, `perception.py`, `ekf.py`, `controller.py`), pluggable tracker interface, and PySide6 multi-viewport GUI.

Architecture

  • 2000x2000 virtual coordinate scene projected into a moving 640x480 camera FOV driven by a rate-limited Pan/Tilt controller.
  • Pluggable BaseTracker interface returning structured TrackerOutput metrics across Baseline, Alpha-Beta, Adaptive-R EKF, and hot-loaded custom scripts.

Technical Decisions

  • Intensity-weighted sub-pixel centroiding + Cramér-Rao uncertainty metrics instead of integer YOLO bounding boxes, preserving sub-pixel precision for faint spots.
  • Separating the simulation UI workbench cleanly from `mock/` placeholders so core physics modules can swap cleanly across test harnesses.

What Broke

  • An early comparison bug let Baseline and Adaptive trackers read from the same Perceptor instance, masking fog failure until per-tracker ROI bounds and fixed R clamping were isolated.
  • Unclamped PID windup originally pushed the simulated camera FOV outside the 2000x2000 canvas until physical travel bounds and coast velocity damping were added.

Outcome & What Next

Working desktop Python simulation suite with side-by-side tracker comparison and Monte Carlo test runner scripts (`runner.py`, `test_all.py`).

  • Standardize reproducible seed manifests cleanly across experimental notebooks and standalone UI builds.

Labeled in progress: synthetic optical simulation and standalone prototype UI, not tested on physical laser terminals or flight hardware.