Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/jihoonerd/rrt

Implementation of RRT and RRT* Algorithm
https://github.com/jihoonerd/rrt

opencv python rrt rrt-star

Last synced: 2 days ago
JSON representation

Implementation of RRT and RRT* Algorithm

Awesome Lists containing this project

README

        

# RRT

Implementation of Rapidly-exploring Random Tree(RRT) and RRT Star(RRT*)

## Vanilla RRT

![RRT_PATH](asset/rrt.jpg)

## RRT*

![RRT_STAR_PATH](asset/rrt_star.jpg)

## Installation

```bash
$ pip install -r requirements.txt
```

## How to use

```python
$ python main.py --help
usage: main.py [-h] [--map MAP] [--stepsize STEPSIZE] [--alg ALG] [--radius RADIUS]

optional arguments:
-h, --help show this help message and exit
--map MAP path to map file
--stepsize STEPSIZE step size
--alg ALG rrtstar or rrt
--radius RADIUS radius for rrtstar
```

Example
```python
$ python main.py --map map.png --stepsize 40 --alg rrt
$ python main.py --map map.png --stepsize 40 --alg rrtstar --radius 40
```

When scren pops up, your first clicked position will be a starting point, and second clicked position will be a target point. Path finding process will launch automatically.