Giter Club home page Giter Club logo

inter-iit-midprep-ps-drdo-uav-guided-ugv-navigation's Introduction

Submission for DRDO's UAV Guided UGV challenge at InterIIT Tech Meet 10.0

Installation Instructions

Installing Ardupilot and MAVProxy In home directory (both git clone and update will take time):

cd ~/ 
sudo apt install git
git clone https://github.com/ArduPilot/ardupilot.git 
cd ardupilot 
git checkout Copter-3.6
git submodule update --init --recursive

Install Dependencies

sudo apt-get update -y
sudo apt-get install -y ros-melodic-mavros geographiclib-tools python-matplotlib python-serial python-wxgtk3.0 python-wxtools python-lxml python-scipy python-opencv ccache gawk python-pip python-pexpect 
sudo geographiclib-get-geoids egm96-5 
sudo pip install future pymavlink MAVProxy

Install Gazebo plugin for APM (ArduPilot Master) :

cd ~
git clone https://github.com/khancyr/ardupilot_gazebo.git
cd ardupilot_gazebo
git checkout dev

Build and install plugin

mkdir build
cd build
cmake .. make -j4 
sudo make install

Install the package

cd ~/catkin_ws/src/
git clone https://github.com/Roboaries/MP_DR_T8 
catkin_make

Or, download the repository as zip and extract in your "catkin_ws/src" folder

Add to .bashrc or .zshrc and reload (This step is very important to ensure that gazebo finds the models and your terminal finds the sim_vehicle.py script)

export PATH=$PATH:$HOME/ardupilot/Tools/autotest:/usr/lib/ccache
export GAZEBO_RESOURCE_PATH=${GAZEBO_RESOURCE_PATH}:$HOME/ardupilot_gazebo/worlds 
export GAZEBO_MODEL_PATH=${GAZEBO_MODEL_PATH}:$HOME/ardupilot_gazebo/models
export GAZEBO_MODEL_PATH=${GAZEBO_MODEL_PATH}:$HOME/catkin_ws/src/MP_DR_T8-main/MP_DR_T8-main/interiit22/interiit22/models

Launch the simulation for world 1 (for running world 2 , change the launch file name to "drdo_world2.launch")

roslaunch interiit22 drdo_world1.launch 
cd ~/ardupilot/ArduCopter/ && sim_vehicle.py -v ArduCopter -f gazebo-iris --console 

After takeoff, run the scripts

rosrun interiit22 ugv_nav.py 
rosrun interiit22 drone_nav.py

NOTE:

  • The line contours,hierarchy=cv2.findContours() may give an error: too many values to unpack, because the function cv2.findContours() returns 2 or 3 values depending on the python version. If the script gives an error , just add an extra argument: _,contours,hierarchy=cv2.findContours()
  • The spawn location of the UAV has been changed slightly, (within 5 meters of the UGV), to aid in takeoff.
  • The range of the depth camera has been increased, but the FOV has not been changed (in accordance with the rules).
  • Some paths/URIs in the .launch and the .world files may need to be changed according to one's own directory structure.

inter-iit-midprep-ps-drdo-uav-guided-ugv-navigation's People

Contributors

shreshth-29 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.