Python Sensor Fusion
Fuse IMU data into a Quaternion pose.
Install
To install the library run: pip install py-imu
Development
- Install Poetry
make initto create the virtual environment and install dependenciesmake formatto format the code and check for errorsmake testto run the test suitemake cleanto delete the temporary files and directoriespoetry publish --buildto build and publish to https://pypi.org/project/py-imu
Usage
from py_imu.madgwick import Madgwick
from py_imu.motion import Motion
from py_imu.quaternion import Vector3D
def main():
"""Test the modules in py-imu."""
madgwick = Madgwick(frequency=100.0, gain=0.033)
estimator = Motion(
declination=9.27, latitude=32.253460, altitude=730, magfield=47392.3
)
# provide time increment dt based on time expired between each sensor reading
for data in data_stream:
gyr = Vector3D(data[0:3])
acc = Vector3D(data[3:6])
madgwick.update(gyr=gyr, acc=acc, dt=0.01)
estimator.update(q=madgwick.q, acc=acc, timestamp=0.01, moving=True)
if __name__ == "__main__":
main()
Metadata
Release files for py-imu 0.1.0
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 |
|---|---|---|---|---|
| py_imu-0.1.0.tar.gz | 15.6 kB | Without provenance | Details for py_imu-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| py_imu-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for py_imu-0.1.0-py3-none-any.whl |
Total release size: 32.5 kB
Release files / py_imu-0.1.0.tar.gz
| Download URL | py_imu-0.1.0.tar.gz |
|---|---|
| Size | 15.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9499bf755b6b3ad964a48b64a2e98c671fc540adfdcf5e22935dc5a8e6af2ef9
|
|
BLAKE2b-256 checksum How to use checksums |
82babd12aee591479f2941b3cbcd69e356c1dbd2f42f3afc603ce2b0cd2bb7c3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.1.2 CPython/3.13.6 Darwin/25.0.0
|
Release files / py_imu-0.1.0-py3-none-any.whl
| Download URL | py_imu-0.1.0-py3-none-any.whl |
|---|---|
| Size | 17.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
389ce69862543168a3b9b8c79957b5ed114de3b7a1b2eb7a12846a1c7abdaf95
|
|
BLAKE2b-256 checksum How to use checksums |
6dd4e4fae9bb4808e42b15209f8353614ff93cb2d71d776dba070960c0a49972
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.1.2 CPython/3.13.6 Darwin/25.0.0
|
Security for py-imu 0.1.0
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.