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

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for riann-0.1.2.tar.gz
Algorithm Hash digest
SHA256 48e2c97a89ec604a0da9344742ab90c4f9331b8c9fb17af435654ea16450eb4e
MD5 a353125813b420826f857e90a9a6f8aa
BLAKE2b-256 0fa6151b25d969f16cf37c85fa0ee75ef42764b7757df599fb3c700eac8392c7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: riann-0.1.2-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.10.16

File hashes

Hashes for riann-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 98d1e857c7d3af39a34a9126d27d8fb8f61c7e7b77a51b4df73ad68b213fa7c4
MD5 8099cc74c61917a2fca77d9a0965e852
BLAKE2b-256 52a54decddc42d5c3f55449bfbe7c2c9fa5194ce7eb5a06960f74e93a2e3bf54

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