Code Monkey home page Code Monkey logo

drone-racer's Introduction

Drone Racer

Drone Racer is a project primarily developed for the DroneFest organized as part of the FabLab Festival 2015. Its aim is to provide an all-in-one interface for races organizers to:

  • create different events for drones competition;
  • register contestants and their associated drones;
  • classify drones into categories;
  • create several routes with their own set of rules for each event;
  • setup and monitor races on a designated route;
  • gather statistics on races for drivers, event or kind of route.

This project is targeted for raspberry pi where input data for drone along the race will be provided on the GPIO port. Data readers are however extensible to provide additional support.

To reduce the overhead of having extraneous services for database access, Drone Racer makes use of the python's built-in sqlite module. It uses it to store informations on the contestants, the drones, the different type of routes and the races leaderboards.

Additionally, setup, updates & leaderboard for each race can be sent to a REST API for the audience.

Dependencies

GUI

Readers (optional)

WebServer (optional)

A Note on Data

The software ships with 2 different data readers. Each reader should server as an interface between signals sent from gates and the internal representation needed by the software.

Provided readers are an StdInReader that converts input from the command line and an XBeeReader that expects data coming with the ZigBee protocol on a serial port.

It is easy to provide any other kind of reader, given the following constraints:

  • it is recommended that the reader is a subclass of threading.Thread;
  • as such, it has to provide a start() method;
  • a stop() method should be implemented for cleanup purposes;
  • the constructor must accept a callback method as unique parameter.

The callback method is a two parameters function that must be called each time a drone passes by a gate. The first parameter is the gate identification letter (or letters if there are more than 26 gates) and the second parameters is the 0-based drone identification number.

Other than that, readers can be implemented freely and expect any kind of input data.

Additional web server

Drone Racer is built with the ability to send satuses about races to a REST API (e.g. for the contestants and the audience to bo able to follow the races).

For cases where it is not possible to provide a REST + WebSocket API on a dedicated server, Drone Racer is shipped with a setup of a tornado web server. This web server can easily be used on a LAN and provide as much visual feedback as provided on the Gtk UI.

Edit the local_server.settings.Settings attributes to adapt it to your needs.

drone-racer's People

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.