Code Monkey home page Code Monkey logo

carnd-catch-run-away-car-ukf-bonus-challenge's Introduction

Run Away Robot with Unscented Kalman Filter Bonus Challenge Starter Code

In this project, not only do you implement an UKF, but also use it to catch an escaped car driving in a circular path. The run away car will be being sensed by a stationary sensor, that is able to measure both noisy lidar and radar data. The capture vehicle will need to use these measurements to close in on the run away car. To capture the run away car the capture vehicle needs to come within .1 unit distance of its position. However the capture car and the run away car have the same max velocity, so if the capture vehicle wants to catch the car, it will need to predict where the car will be ahead of time.

How to run the program

1. mkdir build
2. cd build
3. cmake ..
4. make
5. ./UnscentedKF
6. and run the simulator and select Bonus Challenge: Catch the Run Away Car

The summary of the files and folders int repo is provided in the table below:

File/Folder Definition
src/json.hpp Various definitions.
src/ukf.cpp Initializes the filter, calls the predict and update function, defines the predict and
src/ukf.h update functions.
Src/measurement_package.h Definition of the package of measures.
src/tools.cpp Contains the function that calculate root mean squared error (RMSE).
src/tools.h
src/main.cpp Has several functions within main(), communicates with the Term 2 Simulator receiving data
measurements, calls a function to run the Kalman filter, calls a function to calculate RMSE
these all handle the uWebsocketIO communication between the simulator and it'sself.
src Folder where are all the source files of the project.
build Folder where the project executable has been compiled.

Note that the programs that need to be written to accomplish the project are src/ukf.cpp, ukf.h, and main.cpp which will use some stragety to catch the car, just going to the cars current esimtated position will not be enough since the capture vehicle is not fast enough. There are a number of different strageties you can use to try to catch the car, but all will likely involve prediciting where the car will be in the future which the UKF can do. Also remember that the run away car is simplying moving a circular path without any noise in its movements.

Here is the main protcol that main.cpp uses for uWebSocketIO in communicating with the simulator.

INPUT: values provided by the simulator to the c++ program

// current noiseless position state of the capture vehicle, called hunter

["hunter_x"] ["hunter_y"] ["hunter_heading"]

// get noisy lidar and radar measurments from the run away car.

["lidar_measurement"] ["radar_measurement"]

OUTPUT: values provided by the c++ program to the simulator

// best particle values used for calculating the error evaluation

["turn"] <= the desired angle of the capture car "hunter" no limit for the anlge ["dist"] <= the desired distance to move the capture car "hunter" can't move faster than run away car


Unscented Kalman Filter Produces results as the x-position is shown as 'px', y-position as 'py', velocity in the x-direction is 'vx', while velocity in the y-direction is 'vy'.

Final score


Discussion

Could improve the parametrization and analyze all cases in which it could be divided by 0 to obtain a better result.

carnd-catch-run-away-car-ukf-bonus-challenge's People

Contributors

abhaycl avatar

Watchers

 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.