Skip to content

Global optical flow-based estimation of velocity for multicopters using monocular vision in GPS-denied environments

License

Notifications You must be signed in to change notification settings

KennethYangle/guidance_ws

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Global optical flow-based estimation of velocity for multicopters using monocular vision in GPS-denied environments

outdoor sim

This repository provides a code base to simulation and flight experiment codes from the paper "Deng H, Arif U, Yang K, et al. Global optical flow-based estimation of velocity for multicopters using monocular vision in GPS-denied environments[J]. Optik, 2020: 164923.".

Paper video: [1] https://youtu.be/RUCoJWjlo0w [2] https://youtu.be/ZHzTNDAerCc

License and Citation

This project is licensed under the terms of the MIT license. By using the software, you are agreeing to the terms of the license agreement.

If you use this code in your research, please cite us.

@article{deng2020global,
  title={Global optical flow-based estimation of velocity for multicopters using monocular vision in GPS-denied environments},
  author={Deng, Heng and Arif, Usman and Yang, Kun and Xi, Zhiyu and Quan, Quan and Cai, Kai-Yuan},
  journal={Optik},
  pages={164923},
  year={2020},
  publisher={Elsevier}
}

Recommended system

Recommended system (tested):

  • Ubuntu 16.04
  • ROS Kinetic
  • AirSim 1.2.8
  • Python 2.7.12
  • OpenCV 3.3.1

ROS packages used by the example provided and their recommended version:

Remark: UE4 is not required if you don't need a custom scene. You can download the binaries from AirSim releases.

How to use

Clone the repo to the workspace source directory guidance_ws and then

cd ~/guidance_ws
catkin_make
source ~/guidance_ws/devel/setup.bash

Simulation

In order for you to simulation the velocity estimation you first need to install AirSim.

  • Build AirSim on Linux
  • (Optional) Download the binaries for the environment you like. We test in Neighborhood
  • Run simulation environment and velocity estimation algorithms simultaneously.
    roscd airsim_environment/shell/
    ./all.sh
    
    If you use a custom environment, remember to modify *.json under settings folder and modify the environment path in *.sh.
  • In the real flight experiment, the computer only needs to run the velocity estimation algorithms. Therefore, we recommend that the simulation environment and the velocity estimation algorithms be run separately.
    # Use the keyboard to control the drone
    ./teleop.sh
    # Collect visual data
    ./record.sh
    # Run the velocity estimation algorithm
    ./play.sh
    # View in PlotJuggler
    ./plot
    

sim_graph

Flight experiment

In the real flight experiment, you need to prepare the hardwares and compile the Gudiance-SDK-ROS in advance.

The Matrice 100 is equipped with a Guidance unit, which consists of stereo cameras and sonar sensors.

roslaunch rfly_launch main.launch

real_graph

Contributing

This project welcomes contributions and suggestions. Most contributions require you to agree to a Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us the rights to use your contribution.

About

Global optical flow-based estimation of velocity for multicopters using monocular vision in GPS-denied environments

Resources

License

Stars

Watchers

Forks

Packages

No packages published