Giter VIP home page Giter VIP logo

ironcar's Introduction

IRONCAR

Picture of the IronCar

HARDWARE

Google doc with tutorial: https://docs.google.com/document/d/1jyRhlbmthMA_DuuulYnzUT38okIF_KFZH0a4hh8NCg8/edit?usp=sharing .

SETUP

Raspberry Pi

Clone this repo on your Raspberry Pi :

$ git clone https://github.com/vinzeebreak/ironcar.git
$ cd ironcar

You can easily setup everything on the raspi using the install.sh bash. To do so, go on your raspi and do:

$ ./install.sh

It will install keras, tensorflow and some other dependencies in the requirements. This can take 10 minutes or 1 hour... At the end of the install, you will need to choose if you want to enable the pi camera, i2c connections and augment the swap size (which is very small by default).

Laptop

You don't need to install anything on your laptop: you will only use your browser to connect to the raspi.

So that's it, you should be ready to go to the launching part!!

Launching

In order to communicate between the car and the laptop or another device like a smartphone, we used socketio on python. Therefore, we need to launch a server on the raspi. This python server on the raspi ensures the communication with the car hardware (motors, camera and other potential sensors if you want to add any).

On the Raspberry Pi

  • To launch the server, just do:
$ python3 main.py

On the laptop

You can access the control dashboard by visiting http://YOUR_RASPI_IP:5000.

On any device

The user interface is a javascript client that can be launched in any browser (Firefox, Chrome and Safari have been tested). Just go to YOUR_RASPI_IP:5000 and you should be able to choose the mode, the model, the speed, and control the car with a keyboard (the keyboard is obviously not supported if you connect from a smartphone !). You can also stream, take pictures and change the commands values of the configuration.

Training

In order to train the car to drive itself, you need 2 things:

  • images of the race
  • a model

Data

It is way too long to train the car by driving it with a remote controller. That's why we created a simulator. Nothing too fancy, it's quite easy to use. Just go there and follow the instructions.

Model

The model is also given there.

ironcar's People

Contributors

vhoulbreque avatar srdadian avatar hugoo avatar mathrb avatar adizout avatar

Watchers

James Cloos avatar Mohd Fitri Alif Bin Mohd Kasai 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.