This is a Python implementation of the RRT* algorithm, a popular path planning algorithm in robotics, and an accompanying visualization of the algorithm's execution. The visualization is implemented using the Pygame library.
To run this program, you will need Python 3 installed on your machine, as well as the Pygame library. You can install Pygame using pip:
pip install pygame
To run the program for RRT* Smart, execute the rrt_start_smart.py file:
python rrt_start_smart.py
This will launch the visualization window. You can modify the start and goal positions, as well as the obstacle positions, in the main function of the code. The obstacles are listed as tuples represented by (x,y,radius)(* Obstacles here are circles).
Other factors like bias in case of *smart algorithms can be changed in the RRT_star function.
There are also other variations of the RRT algorithm in the codes folder like basic RRT, RRT* and RRT-smart.
The visualization shows the RRT* Smart Algorithm constructing a tree from the start node to the goal node while avoiding obstacles. The blue lines represent the connections between nodes in the tree, while the Red line represents the path from the start node to the goal node.