Skip to main content

A Neural Network for attitude estimation using IMU data

Project description

RIANN (Robust IMU-based Attitude Neural Network)

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

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

Quickstart

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.1.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.1-py3-none-any.whl (1.4 MB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: riann-0.1.1.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.1.tar.gz
Algorithm Hash digest
SHA256 9c6095494d2b99e5053e2675b7da07ff0ee3a33106db9bccd1a18418ea381ed9
MD5 05356fbde433677dc8bbccee1f6452c3
BLAKE2b-256 ff9bf3250f74adb32350437ce109bffef753b8ee002ecdfc018469e98c2ee14f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: riann-0.1.1-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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 b0253b46c19d7f5f7713e2b9ea72fb78246195e30e8a5639f63848c64b14f02e
MD5 45411b77aa25479c141b33558aa04d89
BLAKE2b-256 038d1fa0190791255358e93795a5c5ca877d469f77d283f6f1738ba4d5ebd501

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