Turbo-CKF: High-performance Cubature Kalman Filter
Project description
turbo-ckf
turbo-ckf is a Rust-backed Cubature Kalman Filter package for high-throughput prediction/update loops. Implemented here purely as an experiment after reading the paper.
What This Package Optimizes
- Fast prediction with built-in linear models:
predict_standard_model(...)predict_standard_model_ckf(...)predict_linear_model(F)predict_linear_model_ckf(F)
- Fast AHRS update path:
update_paper_ahrs(...)
predict(...) and update(...) also run through Rust, but callback cost in Python can dominate if your models are heavy.
Callback Contract
Custom fx and hx must be vectorized:
- Input shape is
(2 * dim_x, dim_x). fxoutput shape must be(2 * dim_x, dim_x).hxoutput shape must be(2 * dim_x, dim_z).
If you pass pointwise callbacks, TurboCKF raises immediately.
Install (Local Dev)
From turbo-ckf/:
bash turbo_ckf/setup_env.sh
Usage
from turbo_ckf import TurboCKF
kf = TurboCKF(dim_x=2, dim_z=1, dt=0.1, hx=hx_vectorized, fx=fx_vectorized)
kf.predict_standard_model("constant_velocity")
kf.update(z)
AHRS path:
kf.predict_linear_model(Fk)
kf.update_paper_ahrs(z6, sigma_acc2=1e-2, sigma_mag2=1e-2)
Research Basis
- This repo is an implementation of the KCKF AHRS equations described in:
- Shing, Y. C., et al., "KCKF: A Fast and Stable Quaternion-Based Orientation Estimator", arXiv:2602.12283 (2026), https://arxiv.org/abs/2602.12283.
- Credit for the method belongs to the paper authors.
License
Dual-licensed under either:
- MIT (
LICENSE-MIT) - Apache-2.0 (
LICENSE-APACHE)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distributions
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file turbo_ckf-0.1.1.tar.gz.
File metadata
- Download URL: turbo_ckf-0.1.1.tar.gz
- Upload date:
- Size: 29.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
941c462e8eaf15c61a78db752f7003e6766bcbee8a0b560e17fe44d15aa35f62
|
|
| MD5 |
b627c12bf134201f163b958268f74f1c
|
|
| BLAKE2b-256 |
81d910f36c3c785a4a5ed732eae84b2d0704cbf1cc5977e5b7d750f9a0344b46
|
Provenance
The following attestation bundles were made for turbo_ckf-0.1.1.tar.gz:
Publisher:
release.yml on mokhld/turbo-ckf
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
turbo_ckf-0.1.1.tar.gz -
Subject digest:
941c462e8eaf15c61a78db752f7003e6766bcbee8a0b560e17fe44d15aa35f62 - Sigstore transparency entry: 975907549
- Sigstore integration time:
-
Permalink:
mokhld/turbo-ckf@38179a3f884f6f3a93e92a0b6876d8af29c42758 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/mokhld
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@38179a3f884f6f3a93e92a0b6876d8af29c42758 -
Trigger Event:
workflow_dispatch
-
Statement type:
File details
Details for the file turbo_ckf-0.1.1-cp39-abi3-win_amd64.whl.
File metadata
- Download URL: turbo_ckf-0.1.1-cp39-abi3-win_amd64.whl
- Upload date:
- Size: 247.1 kB
- Tags: CPython 3.9+, Windows x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f557d4d2c7b14066fa54d0ba9ccc76a0d4c4c80dc5a24540948f224ada93a37d
|
|
| MD5 |
b670ee62b5fa6df7469255ee12a84dae
|
|
| BLAKE2b-256 |
cb47f4e640489f9324179f0b9be60fa96b1533b993fccaa0d056b146a16c3bc4
|
Provenance
The following attestation bundles were made for turbo_ckf-0.1.1-cp39-abi3-win_amd64.whl:
Publisher:
release.yml on mokhld/turbo-ckf
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
turbo_ckf-0.1.1-cp39-abi3-win_amd64.whl -
Subject digest:
f557d4d2c7b14066fa54d0ba9ccc76a0d4c4c80dc5a24540948f224ada93a37d - Sigstore transparency entry: 975907555
- Sigstore integration time:
-
Permalink:
mokhld/turbo-ckf@38179a3f884f6f3a93e92a0b6876d8af29c42758 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/mokhld
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@38179a3f884f6f3a93e92a0b6876d8af29c42758 -
Trigger Event:
workflow_dispatch
-
Statement type:
File details
Details for the file turbo_ckf-0.1.1-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.
File metadata
- Download URL: turbo_ckf-0.1.1-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 400.3 kB
- Tags: CPython 3.9+, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
52e8a976cbcdafbbdd3712bb8a8f0f19f5e7e3f731851aa898e546658850619a
|
|
| MD5 |
25192f4817078e510f9cd3c60a56af33
|
|
| BLAKE2b-256 |
0c449fa553c32174c31a78ae6f9c6079db00a4bf21dd78d34afade0b4a4b8489
|
Provenance
The following attestation bundles were made for turbo_ckf-0.1.1-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl:
Publisher:
release.yml on mokhld/turbo-ckf
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
turbo_ckf-0.1.1-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl -
Subject digest:
52e8a976cbcdafbbdd3712bb8a8f0f19f5e7e3f731851aa898e546658850619a - Sigstore transparency entry: 975907553
- Sigstore integration time:
-
Permalink:
mokhld/turbo-ckf@38179a3f884f6f3a93e92a0b6876d8af29c42758 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/mokhld
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@38179a3f884f6f3a93e92a0b6876d8af29c42758 -
Trigger Event:
workflow_dispatch
-
Statement type:
File details
Details for the file turbo_ckf-0.1.1-cp39-abi3-macosx_11_0_arm64.whl.
File metadata
- Download URL: turbo_ckf-0.1.1-cp39-abi3-macosx_11_0_arm64.whl
- Upload date:
- Size: 335.1 kB
- Tags: CPython 3.9+, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2ead648bd14d7ddb73a1cc444a2bcd98df0643aca83f1e82aa9ad9d13b0fccab
|
|
| MD5 |
a48a8dfc15f8306dc50b0081a964c08e
|
|
| BLAKE2b-256 |
7ae1a4ac0d58332e938c68b7b45c4930bb69f64c18517b5d6a68ddb7fd88d5a0
|
Provenance
The following attestation bundles were made for turbo_ckf-0.1.1-cp39-abi3-macosx_11_0_arm64.whl:
Publisher:
release.yml on mokhld/turbo-ckf
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
turbo_ckf-0.1.1-cp39-abi3-macosx_11_0_arm64.whl -
Subject digest:
2ead648bd14d7ddb73a1cc444a2bcd98df0643aca83f1e82aa9ad9d13b0fccab - Sigstore transparency entry: 975907551
- Sigstore integration time:
-
Permalink:
mokhld/turbo-ckf@38179a3f884f6f3a93e92a0b6876d8af29c42758 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/mokhld
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@38179a3f884f6f3a93e92a0b6876d8af29c42758 -
Trigger Event:
workflow_dispatch
-
Statement type: