Skip to main content

A Neural Network for attitude estimation using IMU data

Project description

RIANN (Robust IMU-based Attitude Neural Network)

#hide
from riann.riann import *

What is RIANN?

RIANN is a lightweight neural network implementation for estimating orientation (attitude) from inertial measurement unit (IMU) data. It processes accelerometer and gyroscope readings to provide quaternion-based attitude estimation, optimized for real-time applications.

Key Features

  • Fast and accurate quaternion-based attitude estimation
  • Optimized for real-time processing with state preservation
  • Supports both batch processing and step-by-step integration
  • Robust against sensor noise and motion artifacts
  • Simple Python API with minimal dependencies

Installation

pip install riann

or from source

```bash
git clone https://github.com/daniel-om-weber/riann.git
cd riann
pip install -e .

## Quickstart

::: {.cell}
``` {.python .cell-code}
import numpy as np
from riann.riann import RIANN

# Initialize RIANN
riann = RIANN()

# Prepare IMU data
acc = np.ones((100, 3))  # Accelerometer data (100 samples, XYZ axes)
gyr = np.zeros((100, 3)) # Gyroscope data (100 samples, XYZ axes)
fs = 200                 # Sampling rate in Hz

# Get attitude quaternions
attitude = riann.predict(acc, gyr, fs)
print(f"Output shape: {attitude.shape}")  # (100, 4) - 100 quaternions
Output shape: (100, 4)

:::

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

riann-0.1.0.tar.gz (1.8 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

riann-0.1.0-py3-none-any.whl (1.4 MB view details)

Uploaded Python 3

File details

Details for the file riann-0.1.0.tar.gz.

File metadata

  • Download URL: riann-0.1.0.tar.gz
  • Upload date:
  • Size: 1.8 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.9

File hashes

Hashes for riann-0.1.0.tar.gz
Algorithm Hash digest
SHA256 1cd20fb632a25cecf413e43c0b91409c665feb34fb990822d160dca596b3ca65
MD5 9b2a23a4ae836c133b3c86a577c51e71
BLAKE2b-256 24edd2ae9299c4247fb1f67b37a74649b067ed8a35ce08f4de96c91824eafc35

See more details on using hashes here.

File details

Details for the file riann-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: riann-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 1.4 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.9

File hashes

Hashes for riann-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d34aa5b0fe0a5d864ad6d4d7413b0801b8c946a77dcdd477b70a0c54da2f087b
MD5 6c86c1f8df3df376c4f359b01d0cc816
BLAKE2b-256 684d4199aa2390f0c0bf8726fdffbdb049ab0fbe012e5e91f163b183c4c6566d

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page