Skip to content

Chaitanya-01/P4-navigating-the-unknown

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Optical flow based structure-less gap detection for drone flight

In this project a perception stack for the DJI Tello EDU quadcopter is designed to enabe it to autonomously navigate through irregular, unknown-shaped windows. The primary goal is to identify and fly through the largest gap in a wall. The process begins by maneuvering the quadcopter to a position where the full gap is visible, followed by detecting the optical flow of the window. Subsequently, this flow data is postprocessed to outline the largest gap’s contour and pinpoint its center. With the center identified we employ visual servoing to guide the quadcopter to align its image center with the gap’s center, facilitating a successful flight through the gap.

(Check the full problem statements here project 4)

Steps to run the code

  • Install Numpy, OpenCV, djitellopy, torch, cudatoolkit, matplotlib libraries before running the code.
  • Install all the library dependencies mentioned here
  • Turn the drone on and connect to it.
  • To run the main code run the Wrapper.py file after installing all dependancies. This will save the final output in Code folder itself.
  • In Code folder:
    python3 Wrapper.py --model=RAFT/models/raft-sintel.pth
  • In our testing we found the weights for sintel dataset are giving better results. Try other weights if you want to by changing the weight file accordingly.

Report

For detailed description see the report here.

Plots and Animations

Blender simulation

Testing the flow detection in blender simulation:

Case 1:

Case 2:

Real world run

Gaussian splat of the real window in the lab:

Live demo runs:

Watch the good quality video of demo run 1 on the real tello drone here (link1 and link2).

Watch the good quality video of demo run 2 on the real tello drone here (link1 and link2).

References

  1. https://github.com/princeton-vl/RAFT

Collaborators

Chaitanya Sriram Gaddipati - [email protected]

Shiva Surya Lolla - [email protected]

Ankit Talele - [email protected]

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published