Code Monkey home page Code Monkey logo

carnd-capstone's Introduction

Udacity Final Project

System integration for a real self-driving car

Introduction

The goal of this project is to integrate the perception, planning and control software subsystems for a provided Udacity car (called "Carla") so that the car can drive around a given test track using a waypoint navigation. Waypoints are an ordered set of coordinates (in a real world or in a simulator). Since we work remotely from different places and the car is located in the Udacity headquarter, we use a simulator during our development which is provided by Udacity.

The provided car has these hardware specifications:

  • 31.4 GiB Memory
  • Intel Core i7-6700K CPU @ 4 GHz x 8
  • TITAN X Graphics
  • 64-bit OS

The perception subsystem contains obstacle and traffic light detection. The detection provides a traffic light color detection so that the car knows when to stop or drive if the car approaches an intersection with a traffic light.

In the planning subsystem, we implement a waypoint updater for updating the next waypoint depending on the desired behavior. The throttle, break, and steering of the car are actuated by the control subsystem. The implemented subsystem overview for this project can be visualized as following:

subsystem architecture

The Team

Name Location Function
Dongping Xie Germany team lead
David Browne South Africa team member
Klemens Esterle Germany team member
Martin Kretzer Germany team member
Yongkie Wiyogo Germany team member

Getting Started

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.

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

[Optional]: If you are using a VM for Virtual Box and want to run the Simulator on your host system, so you need to manually enable port 4567. Follow the following points:

Port Forwarding

  • First open up Oracle VM VirtualBox
  • Click on the default session and select settings.
  • Click on Network, and then Advanced.
  • Click on Port Forwarding
  • Click on the green plus, adds new port forwarding rule.
  • Add a rule that has 4567 as both the host and guest IP.
  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_files.zip
  1. Play the bag file
rosbag play -l traffic_light_bag_files/loop_with_traffic_light.bag
  1. Launch your project in site mode
cd CarND-Capstone/ros
roslaunch launch/site.launch

carnd-capstone's People

Contributors

klemense1 avatar dave-browne avatar xie-dongping avatar ckirksey3 avatar mk0712 avatar swwelch avatar carlosgalvezp avatar awbrown90 avatar spicavigo avatar bydavy avatar huang-siting avatar ianboyanzhang avatar j-rojas avatar yogiwhy avatar luisandroide avatar

Stargazers

Eddie Tang avatar

Watchers

James Cloos avatar Yongkie Wiyogo avatar  avatar

carnd-capstone's Issues

Traffic Light Detection Way Points

Waypoint publishing: Once you have correctly identified the traffic light and determined its position, you can convert it to a waypoint index and publish it.

DBW Node / Controller

Once your waypoint updater is publishing /final_waypoints, the waypoint_follower node will start publishing messages to the/twist_cmd topic. At this point, you have everything needed to build the dbw_node. After completing this step, the car should drive in the simulator, ignoring the traffic lights.

Automatic Capturing / Labeling Traffic Light Datasets

In order to train the traffic light detection system, the simulator provided information at the following rostopic for one to record the information for training the neural network.

/vehicle/traffic_lights
/camera/image_raw

Related to #3

System Identification of the Vehicle

To set up a MPC and for tuning the PID parameters, a model-based method could be interesting.

Maybe reading the from the Udacity source code would be another option.

Related to #2

Traffic Light Detection / Machine Learning

Detection: Detect the traffic light and its color from the /camera/image_raw. The topic /vehicle/traffic_lights contains the exact location and status of all traffic lights in simulator, so you can test your output.

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.