Skip to main content

Kalman Filter for GPS Metadata Correction

Project description

KalmanGps

Overview

KalmanGps is an advanced GPS correction tool that utilizes sensor data, including magnetometer, gyroscope, accelerometer, and GPS information, to provide accurate and corrected latitude and longitude coordinates. This application is particularly useful for scenarios where precise location data is essential, such as navigation systems, robotics, or any application requiring accurate positioning.

Features

  • Sensor Fusion: KalmanGps integrates data from multiple sensors, including magnetometer, gyroscope, and accelerometer, to enhance the accuracy of GPS coordinates.

  • Real-time Correction: Corrects GPS coordinates in real-time, providing continuously refined location information.

  • Timestamp Precision: Utilizes high-resolution timestamps (timestamp_ns) for precise time synchronization.

  • Adaptive Correction: The Kalman filter adapts to changing conditions, ensuring reliable correction under various scenarios.

  • User-Configurable: Offers flexibility with configurable settings to adjust the correction algorithm based on specific requirements.

  • Export Corrected Data: Easily export the corrected latitude and longitude data for further analysis or integration into other applications.

Getting Started

These instructions will help you get a copy of the project up and running on your local machine for development and testing purposes.

Prerequisites

Make sure you have the following installed before proceeding:

Installation

pip install kalmangps

or clone the repository and install the necessary dependencies:

# Clone the repository
git clone https://github.com/your-username/KalmanGps.git

# Change into the project directory
cd KalmanGps

# Create a virtual environment (optional but recommended)
virtualenv venv

# Activate the virtual environment
source venv/bin/activate  # On Windows: .\venv\Scripts\activate

# Install dependencies
pip install -r requirements.txt

Usage

  1. Input: Path to the input data file containing sensor information (magnetometer, gyro, ACC, timestamp_ns, and GPS data).
  2. Output: Path to save the corrected latitude and longitude data.
  3. mapit: Flag to visualize the corrected data on a map. If specified, the application will generate a map displaying the corrected GPS coordinates.

Example command:

python kalman_processor.py --input_path /path/to/input_csv --output_path /path/to/output.csv --mapit 

or

from kalmangps.kalman_processor import Kalman
input_path=r'' 
output_path=r''
klmn = Kalman(csv_path=input_path, output_path=output_path, mapit=True)
output = klmn()

Contribution

Contributions and feedback are welcome! If you encounter any issues or have suggestions for improvements, please open an issue or submit a pull request.

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

kalmangps-0.0.3.tar.gz (12.3 kB view details)

Uploaded Source

Built Distribution

kalmangps-0.0.3-py2.py3-none-any.whl (13.0 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file kalmangps-0.0.3.tar.gz.

File metadata

  • Download URL: kalmangps-0.0.3.tar.gz
  • Upload date:
  • Size: 12.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.6

File hashes

Hashes for kalmangps-0.0.3.tar.gz
Algorithm Hash digest
SHA256 d5d24b5555955f6712cbb30ee768e274ed9bb7a47680b75c97310f6b539d9aa6
MD5 c5a194177815c9deb34e8dc96ae32d69
BLAKE2b-256 205ce6ddcb63d45bc9ef4f6b6f63b1f6d223531c8139f71f0c9f56f62130153e

See more details on using hashes here.

File details

Details for the file kalmangps-0.0.3-py2.py3-none-any.whl.

File metadata

  • Download URL: kalmangps-0.0.3-py2.py3-none-any.whl
  • Upload date:
  • Size: 13.0 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.6

File hashes

Hashes for kalmangps-0.0.3-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 2c0789dd005315fd23e444474cce354ed99ad76d42546452a225622170004144
MD5 dd0e4577cfc7874a70f9398ad1b1482a
BLAKE2b-256 5aafa58b675e082638ab683ab0000acc1b188ba1e2236e0b63ea171fb68e25af

See more details on using hashes here.

Supported by

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