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:
- Python (version 3.x)
- Pip
- Virtualenv (optional but recommended)
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
- Input: Path to the input data file containing sensor information (magnetometer, gyro, ACC, timestamp_ns, and GPS data).
- Output: Path to save the corrected latitude and longitude data.
- 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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
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
Algorithm | Hash digest | |
---|---|---|
SHA256 | d5d24b5555955f6712cbb30ee768e274ed9bb7a47680b75c97310f6b539d9aa6 |
|
MD5 | c5a194177815c9deb34e8dc96ae32d69 |
|
BLAKE2b-256 | 205ce6ddcb63d45bc9ef4f6b6f63b1f6d223531c8139f71f0c9f56f62130153e |
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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2c0789dd005315fd23e444474cce354ed99ad76d42546452a225622170004144 |
|
MD5 | dd0e4577cfc7874a70f9398ad1b1482a |
|
BLAKE2b-256 | 5aafa58b675e082638ab683ab0000acc1b188ba1e2236e0b63ea171fb68e25af |