Giter VIP home page Giter VIP logo

camdroneloc's Introduction

CamDroneLoc

Visual Odometry for Drones using a Particle Filter Approach with Image Encoding Measurements

Authors

Overview

In this project, we present a vision-based method that uses camera image input for localization and visual odometry in a mapped environment by using an encoder to encode camera input which is then used as the measurement for a particle filter localization system. We assume a setup where a drone with constant zero pitch and roll is moving around in a mapped environment with a monocular camera facing down at all times (with a shutter speed high enough to prevent image imperfections while moving at high speeds). We also assume known control inputs (within the limits of reasonable error) to drive the drone in a particular desired motion.

Image Encoding

We experiment with and make use of three different image encoders to generate inputs for the Particle Filter's measurement model. They include the following.

  • CNN-based Encoder
  • VecKM-based Encoder
  • Histogram of Features Encoder

Particle Filter

Motion Model

The velocity of the drone is updated using local ododmetry measurements from the drone's IMU.

Measurement Model

The measurement model uses the similairity score between the encoded image vectors to update the weights of and resample particles. The different similarity score methods used include the following.

  • CNN-based Encoder: Cosine Similarity
  • VecKM Encoder: Inner Product Sum
  • Histogram of Features Encoder: Histogram Correlation and Intersection

Update Step

Systematic Resampling is used with a weighting method reflecting the Bayes Theorem every couple iterations.

Results

Fast convergence of particles to the ground-truth drone location is observed by visual results as well as obtained odomtery readings by the average particle in the Particle Filter. The depiction of the same by running the Particle Filter Model that uses VecKM-based Encodings in a realistic Gazebo PX4 SITL world is shown in the video embedded below.

Video

Executing the Code

To run the Particle Filter model independtly of ROS, execute the following command.

    python3 particle_filter.py

To run the Particle Filter model with ROS (to listen to and publish ROS Topics), execute the command below.

    python3 particle_filter_ros.py

camdroneloc's People

Contributors

vinay-lanka avatar vikrams169 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.