Giter Club home page Giter Club logo

sensorcar's Introduction

SensorCar

Software for a self-driving car, based on artificial neural networks (ANNs). An Unity simulation is provided to run the car.

Gif of the SensorCar in action

Multiple sensors provide distance information to the ANN. In the evaluation process, these data is used to get the steering angle.

A module is provided for generating an infinitely long, randomly generated road. The SensorCar is capable of driving through this road map without any collisions.

❗ This project started as a proof of principle and contains two different networks. One is programmed without the use of any high-level libraries whereas the other is build with Tensorflow.

Getting Started

These instructions will get you a copy of the project up and running on your local machine.

Prerequisites

This project requires Unity3D and Python +3.6.

Installing

  • Download a copy of this project.

  • Install the required Python packages with pip:

pip install -r requirements.txt

Run the Car on the ANN

  • Load TF Network and start socket server
python3 mainCli.py --drive ./examples/21-100-50-20-1-0_001-21SensorsTF/model
  • Open the scene infinityRoad21 from ./simulation/sensorCar/Assets/Scenes/ with Unity and start it by pressing on the play button.

Generate a Training Dataset

  • Load the scene infinityRoad{3|21} from ./simulation/sensorCar/Assets/Scenes/ with Unity.

  • Start the scene and manoeuvre the car with the , , , keys.

  • Press r to start the recording and then f to stop it again.

Train The Neural Network

  • Train a TF network
python3 mainCli.py --train ./examples/dataset21Sensors/ds21.txt \
--shape 21 100 50 20 1 --learningrate 0.001 --epochs 1000 --saveinterval 10

License

This project is licensed under the MIT License - see the LICENSE.md file for details

sensorcar's People

Contributors

jcjgraf avatar

Stargazers

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