GithubHelp home page GithubHelp logo

vishalrangras / carnd-capstone Goto Github PK

View Code? Open in Web Editor NEW

This project forked from udacity/carnd-capstone

0.0 0.0 0.0 4.76 MB

License: MIT License

CMake 38.75% Python 35.46% Shell 0.30% C++ 25.49%

carnd-capstone's Introduction

Programming a Real Self-Driving Car - System Integration Project - Individual / Non-team submission

Submitted by - Vishal Rangras - [email protected]

Programming a real car to drive-by-wire, following published waypoints for the given track, while stopping at Traffic Signal lights based on their states.

The goals for this project are to:

  1. Implement Waypoint Updater Node of ROS project which publishes the next 200 waypoints and their target velocity based on the current position, base waypoint data and state of the traffic light ahead of current position. This node works basically as a Planning Part of the autonomous vehicle system which plans the trajectory needed to be followed by car along with the desired velocity to be followed on that trajectory.
  2. Implement DBW Node, which stands for Drive-By-Wire Node of ROS project. This node leverages a PID controller to decide value of throttle and brake, a Yaw Controller to decide value of steering of the car and a low pass filter for smoothing values of steering. It leverages the data coming from Waypoint Updater node to generate actuation signals and works as a Control Part of the autonomous vehicle system.
  3. Implement TLDetector Node, which detects a Traffic Light and Classify its states based on the camera feed which car receives from a dashcam. This node provides its detection indication to Waypoint Updater which then update target velocity of the upcoming waypoints which are to be followed by the car and also decides if braking is needed in case light state is RED. This node serves as Perception Part of the autonomous vehicle system.

Notes to Reviewer:

  • This is an individual submission and I have not worked in a team for this project and I don't intend to run this project on Carla hardware.
  • I have implemented TLDetector based on Ground Truth information which we get from state of the light published by the simulator and positions of all the traffic lights on our track which we get from YAML configuration file. I have not actually implemented an Traffic Light Detection and Classification model which can give prediction based on camera feed due to lack of time.
  • Since image based TL Detection is not implemented, I understand that this project cannot be evaluated for Test Site or real SDC i.e. Carla and I prefer to get my project evaluated on the simulator itself.
  • I would like to submit this project in its current state and proceed further with the graduation process.
  • When time permits in future, I will revisit the project and implement the image data based Traffic light detection and recognition.

Attributions

I would like to thank Udacity SDCND Team, David Silver, Atb, Micheal Virgo, my mentor Martijn de Boer, Jeremy Shannon, Oleg Potkin, An Nguyen, Bert Ciccone, Andrew Wilkie, Kaspar Sakmann, Team Robo4, Rana Khalil, Mohan Karthik, Subodh Malgonde, Davinder Chandhok and any other SDCND fellow batch mate who I might have missed to mention.

From time to time, the above mentioned people have helped me directly or indirectly sometimes through their blogs or code snippets or references or via slack chat to proceed further with not only Capstone project of SDCND but almost every module and every project of this entire program. I am grateful to be the part of this wonderful program and receive great technical as well as non-technical guidance from my fellow batch mates, forum mentors, past project reviewers, classroom mentor, Udacity Content Team, Udacity Mentorship Team and Udacity Support Team.

Results

Car at a RED traffic signal, stopped, waiting for singal to go green.

alt text

Car starts moving soon as the signal becomes GREEN.

alt text

Original Instructions provided by Udacity

This is the project repo for the final project of the Udacity Self-Driving Car Nanodegree: Programming a Real Self-Driving Car. For more information about the project, see the project introduction here.

Please use one of the two installation options, either native or docker installation.

Native Installation

  • Be sure that your workstation is running Ubuntu 16.04 Xenial Xerus or Ubuntu 14.04 Trusty Tahir. Ubuntu downloads can be found here.

  • If using a Virtual Machine to install Ubuntu, use the following configuration as minimum:

    • 2 CPU
    • 2 GB system memory
    • 25 GB of free hard drive space

    The Udacity provided virtual machine has ROS and Dataspeed DBW already installed, so you can skip the next two steps if you are using this.

  • Follow these instructions to install ROS

  • Dataspeed DBW

  • Download the Udacity Simulator.

Docker Installation

Install Docker

Build the docker container

docker build . -t capstone

Run the docker file

docker run -p 4567:4567 -v $PWD:/capstone -v /tmp/log:/root/.ros/ --rm -it capstone

Port Forwarding

To set up port forwarding, please refer to the instructions from term 2

Usage

  1. Clone the project repository
git clone https://github.com/udacity/CarND-Capstone.git
  1. Install python dependencies
cd CarND-Capstone
pip install -r requirements.txt
  1. Make and run styx
cd ros
catkin_make
source devel/setup.sh
roslaunch launch/styx.launch
  1. Run the simulator

Real world testing

  1. Download training bag that was recorded on the Udacity self-driving car.
  2. Unzip the file
unzip traffic_light_bag_file.zip
  1. Play the bag file
rosbag play -l traffic_light_bag_file/traffic_light_training.bag
  1. Launch your project in site mode
cd CarND-Capstone/ros
roslaunch launch/site.launch
  1. Confirm that traffic light detection works on real life images

carnd-capstone's People

Contributors

aoinakanishi avatar awbrown90 avatar baumanab avatar bydavy avatar carlosgalvezp avatar ckirksey3 avatar ianboyanzhang avatar j-rojas avatar luisandroide avatar mvirgo avatar ncondo avatar olala7846 avatar spicavigo avatar swwelch avatar vishalrangras 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.