Git Product home page Git Product logo

rldronepilot's Introduction

RLDronePilot - Fully Autonomous Line-Follower Drone

This project was realized by the REDS institute @ HEIG-VD.

Authors: Guillaume Chacun, Mehdi Akeddar, Thomas Rieder, Bruno Da Rocha Carvalho and Marina Zapater
REDS. School of Engineering and Management Vaud, HES-SO University of Applied sciences and Arts Western Switzerland
Email: {guillaume.chacun, mehdi.akeddar, thomas.rieder, bruno.darochacarvalho, marina.zapater}@heig-vd.ch

Goal

This Jupyter notebook is used to train a DDPG (reinforcement learning) model to control a drone, specifically to guide it to follow a predefined line on the ground. A separate deep learning model is used to identify and track the line from images captured by the on-board camera. The pilot module processes real-world normalized coordinates of the line and outputs forward, lateral, and angular velocities for the drone.

Content of this repository

  • train_drone_pilot.ipynb : Notebook used to train the reinforcement learning model.
  • Agents.py : DDPG related classes (OUActionNoise, abstract Agent class, LearningAgent, ExplorationAgent).
  • DDPGNetworks.py : DDPG related classes (CriticNetwork, ActorNetwork).
  • SharedReplayBuffer.py : DDPG replay buffer shared across processes.
  • Drone.py : Class to simulate the behavior of the drone.
  • Line.py : Class to generate a random line for the drone to follow.
  • Environment.py : Class to handle the simulation (episodes). Contains an instance of Drone and Line.

Setup

Install dependencies:

poetry install

Activate the virtual environment of Poetry:

poetry shell

Start your Jupyter Lab server:

jupyter lab

Disclaimer

Most of the DDPG code is from @philtabor's GitHub (last visited on March 5th, 2024).

rldronepilot's People

Contributors

chacungu avatar

Stargazers

 avatar  avatar

Watchers

REDS institute avatar  avatar

Forkers

bastien18

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.