Giter VIP home page Giter VIP logo

motion-planning-moving-target's Introduction

Motion Planning: A search-based motion planning algorithm to intercept a moving target

This project focuses on search-based planning algorithm to solve the problem of intercepting a moving target by feeding the shortest path to the robot. The maps are provided in form of 2D matrices with known initial positions of robot and target along with the obstacle locations. Results shows the success of current algorithm with plots of the paths tracked by both: robot and the target.

Project Report

Orish Jindal, 'A search-based motion planning algorithm to intercept a moving target

The images below represents the final map where the blue and red marks represent the robot and target position respectively, when the catching condition is met. Path travelled by the target is shown in Red and the path travelled by the robot is shown in Blue. Bigger blue mark represents the initial position of the robot and the smaller one represents the final position after the catching condition is met. Initial position of target is shown in green, and the final position is shown by red mark as before.

Details of code files (This is a class homework: ECE276B SP22 PR2)

Run the main.py Current setting: it will plot the final position as well as path for the map 3. To run other maps, change map name in two places:

  1. test_map
  2. argument of 'plotting(path)'. (give path location of the map that you want to run)

Folder attached: Results

Contains the results

Other files attached:

1. robotplanner.py

This file contains the algorythm RTAAstar which is used accordingly in the function robotplanner. Also contains other small helper functions needed for the algorith.

2. targetplanner.py

This file is not modified in any way (as instructed).

3. main.py

This file contains test functions.

This file is almost same as given. Changes:

  1. from robotplanner import *
  2. from path import *
  3. Arrays to store the states at each timestamp in order to use the data for plotting the path later
  4. tqdm to track the time and number of iterations in real time
  5. calling the 'plotting(path)' function at the end that plots the complete path (need to feed the map location)

4. path.py

This contains 'plotting(path)' function that plots the stored path

motion-planning-moving-target's People

Contributors

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