Giter VIP home page Giter VIP logo

senza's Introduction

Senza

An 2D environment for training control policies for a quadrotor drone (technically a planar birotor). Right now, only Soft-Actor-Critic (SAC) is implemented but I may revisit later (there are some failed PID and TD3 attempts :)).

sac-agent-demo

Development

  1. Create a virtual environment (I recommend venv).
  2. Run .\venv\Scripts\activate to enter the virtual environment
  3. Install the dependencies with pip install -r requirements.txt
  4. To train a new SAC policy from scratch, edit src/main.py so that eval=False, load=False, render=False. Training rewards will be logged and checkpoints will be saved periodically. Training can be further configured in Agents/sac/run.py.
  5. To load a model, place the 3 checkpoints in the Agents/sac/load directory and specify load=True in run.py.
  6. I've supplied my best weights (trained on cpu...) in releases.

The drone environment runs on Pygame and can be found in drone/DroneEnv.py. I tried my best to make it Gym compliant, but there are likely things I've missed.

TODO

  • PID
  • LQR
  • MPC
  • TD3
  • Prioritized Replay
  • LA3P
  • Obstacles and LiDaR simulation for POMDP (using an LSTM based network)
  • State estimation
  • 3D env rendered in 3JS.

References

  • Inspiration for the environment came from John Buffer's AutoDrone which uses a genetic algorithm to train the policy.
  • The SAC implementation was primarily referenced from toshkiwa

senza's People

Contributors

yyassin avatar

Stargazers

 avatar

Watchers

 avatar  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.