Git Product home page Git Product logo

rl-quadcopter-2's Introduction

Deep RL Quadcopter Controller

Teach a Quadcopter How to Fly!

In this project, you will design an agent to fly a quadcopter, and then train it using a reinforcement learning algorithm of your choice!

Project Instructions

  1. Clone the repository and navigate to the downloaded folder.
git clone https://github.com/udacity/RL-Quadcopter-2.git
cd RL-Quadcopter-2
  1. Create and activate a new environment.
conda create -n quadcop python=3.6 matplotlib numpy pandas
source activate quadcop
  1. Create an IPython kernel for the quadcop environment.
python -m ipykernel install --user --name quadcop --display-name "quadcop"
  1. Open the notebook.
jupyter notebook Quadcopter_Project.ipynb
  1. Before running code, change the kernel to match the quadcop environment by using the drop-down menu (Kernel > Change kernel > quadcop). Then, follow the instructions in the notebook.

  2. You will likely need to install more pip packages to complete this project. Please curate the list of packages needed to run your project in the requirements.txt file in the repository.

rl-quadcopter-2's People

Contributors

abhiojha8 avatar alexisbcook avatar lcrucks avatar michelml avatar sudkul 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  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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

rl-quadcopter-2's Issues

Udacity course

Is this (or RL-Quadcopter) still taught in any Udacity course?

Possible unstable velocity damping dynamics

Hi Alexa

I have placed the quadcopter physics into AI Gym. I shall include a GitHub repo link to that in a subsequent post. I have checked the physics lines of your code with mine and there is no difference. That repo link I'll send has the notebook to test the AI gym quadcopter.

I have noticed a velocity divergence for negative x and y body frame velocities. I'm a bit worried as this may be affecting the RL-Quadcopter project, (although I imagine the RL can compensate if properly trained).

Test:

In level flight at height of 10, zero angles:

I initialize the velocity to vx=10 and that appears to damp away.

position - vx init to 10

velocity - vx init to 10

I initialize the velocity to vx=-10 and that appears to damp away.

position - vx init to -10

velocity - vx init to -10

PhysicsSim doesn't work with init_velocities

When I was experimenting, I found a bug in PhysicsSim.
It doesn't work with init_velocities properly. please check the following sample.
I will create a pull request for this bug.

# init
sim = PhysicsSim(init_velocities=np.array([0.0, 0.0, 0.0]))
sim.v
=> array([0., 0., 0.])
sim.init_velocities
=> array([0., 0., 0.])

# take step
sim.next_timestep([0.0, 0.0, 0.0, 0.0])

sim.init_velocities
=> array([ 0.    ,  0.    , -0.1962]) # init_velocities has been changed

sim.reset()

sim.v
=> array([ 0.    ,  0.    , -0.1962]) # initial v didn't get reset properly due to the updated init_velocities

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.