mirror of
https://github.com/AtsushiSakai/PythonRobotics.git
synced 2026-04-22 03:00:41 -04:00
add test for voronoi
This commit is contained in:
@@ -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)
|
||||
@@ -148,7 +149,7 @@ The red line is the final path of PRM.
|
||||
|
||||
## Voronoi Road-Map planning
|
||||
|
||||

|
||||

|
||||
|
||||
This Voronoi road-map planner uses Dijkstra method for graph search.
|
||||
|
||||
|
||||
@@ -5,7 +5,7 @@ sys.path.append("./PathTracking/stanley_controller/")
|
||||
|
||||
from PathTracking.stanley_controller import stanley_controller as m
|
||||
|
||||
print("stanley controller test")
|
||||
print(__file__)
|
||||
|
||||
|
||||
class Test(TestCase):
|
||||
|
||||
11
tests/test_voronoi_path_planner.py
Normal file
11
tests/test_voronoi_path_planner.py
Normal file
@@ -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()
|
||||
Reference in New Issue
Block a user