This small project aims to show the evolution of the algorithm of the Rapidly-exploring random tree.
Rapidly-exploring random tree algorithm is used to plan the motion of mobile robots. It uses random sampling of points on configuration space (
Open the file index.html
in your browser. You can change the speed of the simulation by clicking on the button in the top right corner. From the javascript code, you can change the color of the points and edges and add more stopping conditions of the algorithm.
The value of the 'delta' defines the distance between two points in the tree. Tuning this value will change the 'resolution' of the tree.
To start the simulation just click on the canvas. The canvas size is adjusted on the window size. To refresh the canvas, reload the page.
An example of the simulation is shown below.
Distributed under the MIT License. See LICENSE.txt
for more information.
Daniele Galletti - in/danielegalletti/ - galletti.dan@gmail.com