GithubHelp home page GithubHelp logo

brahms's Introduction

Brahms

Self Driving Car Simulator for Udacity Challenge #2

This is to help evaluate your models. Given the model and images, steering angle, speed, time, the simulator will try to show how the car will move using the predicted steerings.

Requirements
  • OpenCV
  • Scipy
  • Numpy
  • Pygame

Usage

Check out sim_runner.py for example usage

Sample Video

Motivation

At instance t0, the heading for both real and predicted car is the same (0 degree) We get real_steering and predicted_steering from this step

At t1, we calculate the heading caused by each of the above steering angles (using speed at t0 and t1-t0). The difference in these angles (theta_error) is the amount that we will rotate our image. That is, if the car was steered according to prediction instead of the real thing, the image visible to the camera will be rotated by this much.

At t2, we again calculate the above diff and add it to theta_error. This will be the new rotation

A failure scenario is reached when either

  • Rotation of the image is not possible
  • An upper limit of rotation angle is reached

We could also have used net horizontal displacement for crashing out (like in the NVIDIA paper).

Also, I am not using horizontal displacement in the simulator as of now. May be in the next version I will use the left and right images and stich them together to get translation error too.

Questions and Contributions

Reach out to me (@yousuf) on Udacity's Slack Channel

Adapted from comma.ai's view_steering_model.py

brahms's People

Contributors

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