README:
This projects demonstrates a robot(green triangle) that maneuvers through a series of obstacles(red polygons), avoiding any collisions, to reach the desired destination in the shortest path using Breadth First Search(BFS) graph algorithm.
The program is written in C++ and the output rendered using XLib graphics library interface.
REQUIREMENTS:
- Gcc compiler and xlib interface installed.
STEPS TO RUN:
-
The program can be compiled with : g++ main.cpp helpers.cpp -L/usr/X11R6/lib -lX11
-
The output file is generated with : ./a.out inputfile <-(pass in the inputfile here)
OUTPUT:
-
The yellow triangle with green outline shows the start position of the robot
-
The red polygons are the obstacles
-
The robot manuvers the obstacles and reaches the destination which is a yellow polygon with no green outline.
