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.
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.
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:
- test_map
- argument of 'plotting(path)'. (give path location of the map that you want to run)
Contains the results
Other files attached:
This file contains the algorythm RTAAstar which is used accordingly in the function robotplanner. Also contains other small helper functions needed for the algorith.
This file is not modified in any way (as instructed).
This file contains test functions.
This file is almost same as given. Changes:
- from robotplanner import *
- from path import *
- Arrays to store the states at each timestamp in order to use the data for plotting the path later
- tqdm to track the time and number of iterations in real time
- calling the 'plotting(path)' function at the end that plots the complete path (need to feed the map location)
This contains 'plotting(path)' function that plots the stored path