Giter VIP home page Giter VIP logo

dijkstra-algorithm-for-a-point-robot's Introduction

Description

Implemention of Dijkstra’s Algorithm to find a path between start and end point on a given map for a point robot (radius = 0; clearance = 5 mm). Checks the feasibility of all inputs/outputs (if user gives start and goal nodes that are in the obstacle space they will be informed by a message and they should try again). Code outputs an animation/video of optimal path generation between start and goal point on the map. It shows both the node exploration as well as the optimal path generated.

Work space

Dependencies

Plugin
time
numpy
cv2
queue
math
ast

Instructions to run

Clone or download the project repository and open the folder, Open terminal in the project folder and type below command:

python Dijkstra-pathplanning-rohit-patil.py

or

python3 Dijkstra-pathplanning-rohit-patil.py

Terminal asks for user input for start and goal location: Input start location as shown in below fashion, x-coordinate space y-coordinate

Enter start location point[x,y](eg: if (5,5), then enter: 10 10): 25 30

Input goal location as shown in below fashion, x-coordinate space y-coordinate

Enter goal location point[x,y](eg: if (5,5), then enter: 115 185): 120 190

Output

Test case 1: Start location: 10 10 Goal location: 115 185 . Visualization video: Test case 1. Optimal_path_testcase1

Test case 2: Start location: 20 50 Goal location: 395 245 . Visualization video: Test case 2. Optimal_path_testcase2

dijkstra-algorithm-for-a-point-robot's People

Contributors

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