Skip to content

Add 3D MEM-QKF and MEM-RBPF ellipsoid trackers - #5576

Merged
FlorianPfaff merged 1 commit into
codex/mem-ekf-star-3dfrom
codex/spatial-mem-qkf-rbpf
Nov 26, 2026
Merged

FlorianPfaff merged 1 commit into
codex/mem-ekf-star-3dfrom
codex/spatial-mem-qkf-rbpf

Conversation

@FlorianPfaff

@FlorianPfaff FlorianPfaff commented Nov 25, 2026 •

Copy link
Copy Markdown
Owner

Summary

This follow-up to #5575 adds two experimental 3D filters for a single ellipsoid observed through associated point returns. The PR targets the MEM-EKF* branch so the diff shows only the new trackers and shared code.

  • MEMQKF3DTracker uses a Kalman update for kinematics, 27-point Gauss–Hermite quadrature over local SO(3) orientation errors, and a separate quadratic semi-axis update. It supports NumPy and eager CPU use with JAX and PyTorch.
  • MEMRBPF3DTracker samples orientation on SO(3) and maintains a conditional Gaussian estimate for the three axes of each particle. It uses a scan-centroid kinematic update, log likelihoods, and systematic resampling. It runs on NumPy and accepts a local random generator or seed.
  • Both filters share the spatial tracker's measurement layouts, rotation convention and geometric extent output. Their common semi-axis update evaluates the Gaussian fourth moments analytically, including correlations between axes and between source coordinates. The guide describes the assumptions and the differences between the spatial and planar filters.

Validation

Check Result
NumPy MEM filters and smoothers, related tracker contracts, API and backend metadata 248 passed, 1 optional-backend test skipped
Spatial filter and moment tests on JAX CPU x64 and PyTorch CPU 58 passed on each backend, 11 backend-specific skips each
JAX default precision, integer and floating-point input regressions 3 passed
Strict MkDocs, generated documentation checks, Black and Ruff Passed
Source and wheel build, strict Twine validation, clean wheel installs and seeded runs on Windows Python 3.13 and Linux Python 3.14 Passed

The numerical tests include independent Gaussian quadrature for the shared moments, a known-shape Kalman reference, and a comparison of RBPF weights with the joint scan density after integrating out center uncertainty.

Run python examples/basic/mem_ekf_star_3d_tracking.py --tracker qkf --seed 7 or select --tracker rbpf to reproduce the moving-ellipsoid example. Both runs use the same 60 scans, 50 points per scan and known rotation increment. The final relative extent error was 2.8% for MEM-QKF and 6.1% for MEM-RBPF with 100 particles.

@github-actions

Copy link
Copy Markdown
Contributor

✅⚠️MegaLinter analysis: Success with warnings

Descriptor Linter Files Fixed Errors Max errors Warnings Elapsed time
✅ COPYPASTE jscpd yes no no 4.74s
✅ JSON prettier 7 0 0 0 0.44s
✅ JSON v8r 7 0 0 2.39s
⚠️ MARKDOWN markdownlint 71 0 4 0 1.25s
✅ MARKDOWN markdown-table-formatter 71 1 0 0 0.2s
✅ PYTHON black 2052 0 0 0 32.6s
✅ PYTHON isort 2052 51 0 0 1.5s
✅ REPOSITORY betterleaks yes no no 0.87s
✅ REPOSITORY checkov yes no no 19.92s
✅ REPOSITORY git_diff yes no no 0.06s
✅ REPOSITORY secretlint yes no no 2.15s
✅ REPOSITORY syft yes no no 1.99s
✅ REPOSITORY trivy-sbom yes no no 2.42s
✅ YAML prettier 11 0 0 0 0.37s
✅ YAML v8r 11 0 0 10.67s
✅ YAML yamllint 11 0 0 0.34s

Detailed Issues

⚠️ MARKDOWN / markdownlint - 4 errors
docs/examples.md:19:58 error MD060/table-column-style Table column style [Table pipe does not align with header for style "aligned"]
docs/examples.md:19:155 error MD060/table-column-style Table column style [Table pipe does not align with header for style "aligned"]
docs/examples.md:19:212 error MD060/table-column-style Table column style [Table pipe does not align with header for style "aligned"]
docs/examples.md:19:270 error MD060/table-column-style Table column style [Table pipe does not align with header for style "aligned"]

See detailed reports in MegaLinter artifacts

Your project could benefit from a custom flavor, which would allow you to run only the linters you need, and thus improve runtime performances. (Skip this info by defining FLAVOR_SUGGESTIONS: false)

  • Documentation: Custom Flavors
  • Command: npx mega-linter-runner@10.2.0 --custom-flavor-setup --custom-flavor-linters PYTHON_BLACK,PYTHON_ISORT,COPYPASTE_JSCPD,JSON_V8R,JSON_PRETTIER,MARKDOWN_MARKDOWNLINT,MARKDOWN_MARKDOWN_TABLE_FORMATTER,REPOSITORY_CHECKOV,REPOSITORY_GIT_DIFF,REPOSITORY_BETTERLEAKS,REPOSITORY_SECRETLINT,REPOSITORY_SYFT,REPOSITORY_TRIVY_SBOM,YAML_PRETTIER,YAML_YAMLLINT,YAML_V8R

MegaLinter is provided by OX Security
Show us your support by starring ⭐ the repository

@FlorianPfaff
FlorianPfaff merged commit 9f12359 into codex/mem-ekf-star-3d Nov 26, 2026
28 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant