Skip to content

Using Dijkstra Path Planning algorithm to solve the shortest path problem for a mobile robot.

Notifications You must be signed in to change notification settings

HemanthJoseph/Dijkstra-Path-Planning-Mobile-Robot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

DIJKSTRA - Path Planning Algorithm for a Point Robot

The task was to designing a point robot that would traverse a map where the obstacels are already known to us.
We have a point robot that can move in eight directions and each action would have its respective costs. Action Set

Defining the map

We use the concepts of Algebraic Half planes to define the free space and the obstacles.
Obstacle Map

Exploring the Map

Use the defined actions set and as per the cost for each step, we traverse the graph

Action Sets = {(1,0), (-1,0), (0,1), (0,-1), (1,1), (-1,1),(1,-1),(-1,-1)}

In each action set generated we check if the new position is going to end up in the obstacle space. Exploration Map

Optimal path

After we explore the entire map, we use backtracking to find the path with the least cost.
The operation of the algorithm is shown below.
Shortest Path Map

Usage

  • Clone the repo to your local machine
git clone https://github.com/HemanthJoseph/Dijkstra-Path-Planning-Point-Robot.git
  • Change Directory
cd Dijkstra_Algorithm
  • Run the python file
python Dijkstra.py
  • In the command line enter the inputs values for start and goal coordinates and ensure that the points don't fall in the obstacles as the program will keep prompting you to enter points that aren't in the obstacle space.

Dependencies and libraries

  1. Python 3
  2. Matplotlib
  3. Queue

Video Link

https://drive.google.com/file/d/1XJp1R0PteTrX_R4la_C7ffUnGrDoOqul/view?usp=share_link

About

Using Dijkstra Path Planning algorithm to solve the shortest path problem for a mobile robot.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages