Skip to content

Commit

Permalink
add test for voronoi
Browse files Browse the repository at this point in the history
  • Loading branch information
AtsushiSakai committed Dec 25, 2017
1 parent 52357a8 commit 1ac6df9
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 2 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ Python codes for robotics algorithm.
* [Biased polar sampling](#biased-polar-sampling)
* [Lane sampling](#lane-sampling)
* [Probabilistic Road-Map (PRM) planning](#probabilistic-road-map-prm-planning)
* [Voronoi Road-Map planning](#voronoi-road-map-planning)
* [Rapidly-Exploring Random Trees (RRT)](#rapidly-exploring-random-trees-rrt)
* [Basic RRT](#basic-rrt)
* [RRT*](#rrt)
Expand Down Expand Up @@ -148,7 +149,7 @@ The red line is the final path of PRM.

## Voronoi Road-Map planning

![PRM](https://github.com/AtsushiSakai/PythonRobotics/blob/master/PathPlanning/VornoiRoadMap/animation.gif)
![VRM](https://github.com/AtsushiSakai/PythonRobotics/blob/master/PathPlanning/VoronoiRoadMap/animation.gif)

This Voronoi road-map planner uses Dijkstra method for graph search.

Expand Down
2 changes: 1 addition & 1 deletion tests/test_stanley_controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

from PathTracking.stanley_controller import stanley_controller as m

print("stanley controller test")
print(__file__)


class Test(TestCase):
Expand Down
11 changes: 11 additions & 0 deletions tests/test_voronoi_path_planner.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
from unittest import TestCase
from PathPlanning.VoronoiRoadMap import voronoi_road_map as m

print(__file__)


class Test(TestCase):

def test1(self):
m.show_animation = False
m.main()

0 comments on commit 1ac6df9

Please sign in to comment.