This project focuses on developing a monocular (inertial) visual odometry system for drone navigation. The goal is to provide accurate and robust localization capabilities using only visual and inertial sensor data. Please Understand that this is an ongoing project and some files may be missing.
Monocular (inertial) visual odometry is a technique that combines information from a single camera and inertial sensors to estimate the drone's motion and position. This repository implements a system that leverages these sensors to achieve reliable and precise navigation for drones. At the current state, the project produces a translation error or 1.2% and a rotation error of 0.015°/m on KITTI dataset ana a translation error of 1.8% on the TELLO DJI dron
Follow these steps to install and set up the monocular (inertial) visual odometry system:
- Clone the repository:
git clone https://github.com/Yacynte/Monocular-Visual-Odometry.git
- Install dependencies: OpenCV, numpy, matplotlib, tqdm
pip install -r docs/requirements.txt
To use the monocular (inertial) visual odometry system with your drone, follow these steps:
- Provide input images and inertial sensor in the Tello, UE or KITTI dataset folder in the same syntax as the other folders.
- Add the name of your folder in vo_gui.py
- Run the main script:
vo_gui.py
- Configure the system parameters in the
gui
. - Start the algorithm.
Customize the behavior of the system by modifying the parameters in the gui
. This parameters includes settings such as number of features to track, Quality of optical flow, and filtering parameters.
The monocular (inertial) visual odometry system supports the following data formats:
- Image formats: JPEG, PNG
- Inertial sensor data: CSV, TXT
- Ground truth data: CSV, TXT
Here are some visualizations demonstrating the results obtained by the monocular (inertial) visual odometry system:
- Similated Data from Unreal Engine
-
Error, RMSE/meter: translation 1.28%, rotation 0.13°/m
- Tello Dataset
-
Error, RMSE/meter: translation 5.32%, rotation 0.49°/m
- KITTI Data
-
Error, RMSE/meter: translation 0.94%, rotation 0.015°/m
MIT License
Copyright (c) [2024] [Batchaya Yacynte]
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish and/or distribute copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Contributions are welcome! Feel free to submit issues or pull requests to improve the implementation.