This script contains an implementation of the Dijkstras algorithm for a point robot for navigation around obstacles in a 2D space.
- python 3.11 (any version above 3 should work)
- Python running IDE (We used Pycharm)
- OpenCV
- Numpy
- HeapQ
- Time
-
Download the zip file and extract it
-
Install python and the required dependencies:
pip install numpy opencv-python -
Run the code or use desired python IDE:
$python3 djikstra_point_robot.py
Input the X and Y coordinates of the start and goal node, when prompted in the Terminal
Note: The resolution of the output video is low because the array generated (image) is of high dimensions. You coud resize the output dimensions, by changing the 'resize' variable factor at the top of the code. If in case you get numpy exception error, where in memory is not enough to store the array, check this link: https://stackoverflow.com/questions/57507832/unable-to-allocate-array-with-shape-and-data-type
