Coder Social home page Coder Social logo

bneld / drone-hover-rl Goto Github PK

View Code? Open in Web Editor NEW
18.0 4.0 7.0 349 KB

A hover system for Microsoft AirSim using reinforcement learning (Q-learning and SARSA)

License: MIT License

Python 100.00%
reinforcement-learning q-learning sarsa airsim drones

drone-hover-rl's Introduction

Drone-Hover-RL

A hover system for Microsoft AirSim using reinforcement learning and Q-learning

Unmanned aerial vehicle (UAV) controller design is an important building block in creating an autonomous UAV, and it has been the subject of much research in recent years. In this work, we present an approach to this challenge using reinforcement learning (RL) combined with a neural network to teach a simulated quadrotor how to hover. Using two techniques, Q-learning and SARSA, we managed to build an agent that can intelligently adjust its pose to hover in a certain spot. Our results showed that combining RL with a neural network and a suitable reward function can achieve our goal.

How To Run

AirSim (in particular AirSim Neighborhood) is required to train the RL agent. We also used the Python client for AirSim, which is downloadable via the AirSim Github. Before running rl-agent.py, make sure AirSimClient.py is in the same directory and AirSim Neighborhood is running.

When training, the weights for the hidden and output layers of the neural net will be saved as weights_hidden.txt and weights_output.txt, which can then be loaded back into the system by setting the readWeights boolean to True in rl-agent.py.

drone-hover-rl's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

drone-hover-rl's Issues

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.