Code Monkey home page Code Monkey logo

uav_tracking's Introduction

This repository is based on Reinforcement Learning (DDPG), YOLOV5, Robust controller for UAV target tracking.

After about 700 episodes, the performance is shown as follows:

Requirements

Python 3.10
Tensorflow 2.14.0
tensorlayer 2.2.5

File description

  • gym_examples/: Custom Environment: The agent (blue dot) navigates through both static and dynamic obstacles (black) to reach the goal (green).
  • ddpg_model/: The folder that stores the model weights in each episode.
  • gym_examples/envs/gazebo_world.py: The detailed implementation of the env gazebo_world.
  • gym_examples/envs/multirotor_communication.py: Main file1, Start the communication of UAV and the env gazebo_world.
  • gym_examples/envs/tracking_IBVS.py: Main file2, the controller of the env gazebo_world.
  • DDPG_UAV.py: Main file3๏ผŒ enhancing DDPG with Robust Controller for Accelerated Training.

Results

"The DDPG algorithm is used for calcuating the parameter of robust controller, comeared to pure Reinforcement learning it is faster and using only cpu computing resources."

Please refer to the installation environment of this PX4_YOLO

Start

Modify some launch files

  • cp -r gazeboworld/outdoor.launch* ~/PX4_Firmware/launch/
  • cp -r gazeboworld/world_nightmare.world* ~/PX4_Firmware/Tools/sitl_gazebo/worlds/

Run

  • roslaunch px4 outdoor.launch # world

  • roslaunch yolov5_ros yolov5.launch # find target

  • python3 multirotor_communication.py iris 0 # for communication

  • python3 multirotor_keboard_control.py iris 1 vel # for control uav to move

  • Close the file multirotor_keboard_control.py

  • python3 tracking_IBVS.py # for tracking

  • python3 DDPG_UAV.py # for training

  • python3 DDPG_UAV.py --mode test --save_path /path/to/your/model # for testing

uav_tracking's People

Contributors

doggystyle-star avatar bithuanglq avatar

Stargazers

BaiChuan avatar  avatar  avatar  avatar zjz-BIT avatar

Watchers

 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.