Giter VIP home page Giter VIP logo

dqn-obstacle-avoidance's Introduction

Deep Reinforcement Learning for Fixed-Wing Flight Control

This is a Deep Q-Network (DQN) reinforcement learning agent which navigates a fixed wing aircraft in a simulator to a target waypoint while avoiding stationary and moving obstacles.

This is our submission to our final project of McGill University's ECSE 526 - Artificial Intelligence course.

screen shot 2016-11-30 at 02 24 59

Setup

To run this, one needs to set up MIT's director visualization tool as it will be used to display the simulator. Instructions on how to build this can be found here.

Following that, you must set up an alias for the directorPython executable that was built. This can be simply done by running:

alias director=/path/to/director/build/install/bin/directorPython

You can add this to your shell profile to avoid running this every time.

Finally, you need to install Tensorflow for Python 2.7. This can be done by following the steps here.

Running

Once everything is setup, you can simply run:

director simulator.py

or

director simulator.py --help

for advanced options.

If everything works out, a window should appear with a plane model that flies around slowly learning how to reach the green circle and avoiding the white circle as in the screenshot above. The white circles denote obstacles, whereas the green circle denotes a target waypoint. The rays protruding from the plane represent the distances measured by the plane's sensor.

The learning process will take several hundreds of episodes, but rerunning the simulation will proceed from where it left off by reusing the model.ckpt file.

Acknowledgements

This project was inspired by the work found here.

dqn-obstacle-avoidance's People

Contributors

anassinator avatar augustelalande avatar

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar  avatar

dqn-obstacle-avoidance's Issues

Why directpython cannot import tensorflow?

Thanks a lot for your advice.
I have changed the version to Python 2.7 and tensorflow 1.6.0.
Still, Python can import tensorflow but directpython cannot.
How can I fix it?

Running

Hi,

I think I have set everything up correctly, where should I run 'director simulator.py' in order to properly produce a result? is their a specific command that should be used?
Thanks!

Didn't see moving obstacle, am I run it in the wrong way?

thank you for your inspiring project
I have "director simulator.py" successfully and it looks like the picture below.
_20180308105236
all the obstacles are stationary.
I think it's an moving obstacle simulation right?
Do I do something wrong?

and when I “director simulator.py”, error occurs like this:
_20180308105503
how could I fix this?

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.