Code Monkey home page Code Monkey logo

cone-sim's Introduction

Cone-SIM

A simple self-driving car simulator built with Unity.

The fist version of this game is being developed to train neural networks using supervised learning.

  • Easy to create new tracks
  • Save training data in txt files
  • Udp interface with autonomous mode

Precompiled builds

V0 - 1/19/18

Download
Extract the contents of Linux_x86_universal.zip

Inside Linux_x86_universal/Linux_x86_universal folder
Right click on Cone_SIM.x86 or Cone_SIM.x86_64
Properties-> Permission-> Check "Allow executing file as program"
Double click on Cone_SIM.x86 or Cone_SIM.x86_64

Or in terminal
$ cd Linux_x64_universal/Linux_x64_universal
$ chmod +x Cone_SIM.x86          # 32-bit
$ chmod +x Cone_SIM.x86_64       # 64-bit
$ ./Cone_SIM.x86                 # 32-bit
$ ./Cone_SIM.x86_64              # 64-bit

Unity configuration window will be open, where is possible to configure graphics and input settings.
Click Ok to start the game.
Download
Extract the contents of Windows_64b.zip
  
Inside Windows_64b/Windows_64b folder
Double click on Cone_SIM.exe
  
Unity configuration window will be open, where is possible to configure graphics and input settings.
Click Ok to start the game.
 

 

Training Mode

In Table 1. is shown the data that is store which frame

Table 1

Index Data
0 Recording time
1 Throttle input
2 Brake input
3 Steering input
4 Handbrake input
5 Car speed
6 Acceleration x
7 Acceleration z
8 Position x
9 Position z
10 to 45 36 raycasts distance

P.S.:

  • From the image below z is the vertical axis, and x is the horizontal axis
  • Raycast[0] is in the right side (90º) of the car

Autonomous Mode

Which frame a string is send throgh udp. This string contais the same data shown in Table 1. The game waits for a csv string with the data shown in Table 2.

Table 2

Index Data
0 Throttle
1 Brake
2 Steering
3 Handbrake

Track Editor

To-do List

There is many things to be done

  • Improve joystick and racing wheel interface
  • Reinforcement Mode

Some bugs may apper!

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.