sensorfusion-tools
Python tools for sensor fusion and state estimation. The library provides dynamics and observation models, least-squares estimators, Kalman and particle filters, moment transforms, and plotting helpers.
Requires Python 3.14 or later.
Install
In a new project:
uv init --python 3.14 sensorfusion-example
cd sensorfusion-example
uv add sensorfusion-tools
In an existing uv project, run uv add sensorfusion-tools.
The package is installed as sensorfusion-tools and imported as sftools.
Quick start
This example simulates a noisy observation and estimates the state using weighted least squares:
import numpy as np
from sftools import create_observation, estimator
rng = np.random.default_rng(0)
model = create_observation(
"linear",
H=np.eye(2),
R=np.diag([0.1, 0.2]),
)
truth = np.array([[1.0], [2.0]])
measurement = model.random(x=truth, rng=rng)
estimate = estimator.wls(model, measurement, np.zeros((2, 1)))
print("Mean:", estimate.mean())
print("Covariance:", estimate.cov())
The seeded example prints:
Mean: [[0.95822477]
[2.05622826]]
Covariance: [[0.1 0. ]
[0. 0.2]]
Documentation
License
MIT. See LICENSE for the full text.
Contributing
See DEVELOPMENT.md for development setup, testing, and instructions for working on the website.
Metadata
Release files for sensorfusion-tools 2026.0.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| sensorfusion_tools-2026.0.3.tar.gz | 18.3 kB | Without provenance | Details for sensorfusion_tools-2026.0.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| sensorfusion_tools-2026.0.3-py3-none-any.whl | Python 3 | none | any | Details for sensorfusion_tools-2026.0.3-py3-none-any.whl |
Total release size: 40.0 kB
Release files / sensorfusion_tools-2026.0.3.tar.gz
| Download URL | sensorfusion_tools-2026.0.3.tar.gz |
|---|---|
| Size | 18.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
de10a942a15d3e0dd71928799861430f1eabd7355e7a94b8ecb4923cc5991694
|
|
BLAKE2b-256 checksum How to use checksums |
3b48379576e7983dcddff9bbaf26c887c2c4cf7839879095f453b025bd6213e4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.13.8 {"installer":{"name":"uv","version":"0.13.8","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Release files / sensorfusion_tools-2026.0.3-py3-none-any.whl
| Download URL | sensorfusion_tools-2026.0.3-py3-none-any.whl |
|---|---|
| Size | 21.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c32057c1220e53223dc93f323fbf72d9448db4c867c285eb8374672a47cf9aa7
|
|
BLAKE2b-256 checksum How to use checksums |
6df01bfb7d6bd741cb5db6a49927a4902ff794f405f9f5f7ba2674bf29bbdfe7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.13.8 {"installer":{"name":"uv","version":"0.13.8","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Security for sensorfusion-tools 2026.0.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.