Skip to content

Commit 1ac6df9

Browse files
committed
add test for voronoi
1 parent 52357a8 commit 1ac6df9

File tree

3 files changed

+14
-2
lines changed

3 files changed

+14
-2
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ Python codes for robotics algorithm.
2121
* [Biased polar sampling](#biased-polar-sampling)
2222
* [Lane sampling](#lane-sampling)
2323
* [Probabilistic Road-Map (PRM) planning](#probabilistic-road-map-prm-planning)
24+
* [Voronoi Road-Map planning](#voronoi-road-map-planning)
2425
* [Rapidly-Exploring Random Trees (RRT)](#rapidly-exploring-random-trees-rrt)
2526
* [Basic RRT](#basic-rrt)
2627
* [RRT*](#rrt)
@@ -148,7 +149,7 @@ The red line is the final path of PRM.
148149

149150
## Voronoi Road-Map planning
150151

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

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

tests/test_stanley_controller.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
from PathTracking.stanley_controller import stanley_controller as m
77

8-
print("stanley controller test")
8+
print(__file__)
99

1010

1111
class Test(TestCase):

tests/test_voronoi_path_planner.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
from unittest import TestCase
2+
from PathPlanning.VoronoiRoadMap import voronoi_road_map as m
3+
4+
print(__file__)
5+
6+
7+
class Test(TestCase):
8+
9+
def test1(self):
10+
m.show_animation = False
11+
m.main()

0 commit comments

Comments
 (0)