Files
PythonRobotics/tests/test_rrt.py
Atsushi Sakai 29da707a9a clean rrt codes
2019-07-15 11:42:35 +09:00

31 lines
563 B
Python

import os
import sys
from unittest import TestCase
sys.path.append(os.path.dirname(os.path.abspath(__file__)) + "/../")
try:
from PathPlanning.RRT import rrt as m
from PathPlanning.RRT import rrt_with_pathsmoothing as m1
except ImportError:
raise
print(__file__)
class Test(TestCase):
def test1(self):
m.show_animation = False
m.main(gx=1.0, gy=1.0)
def test2(self):
m1.show_animation = False
m1.main()
if __name__ == '__main__': # pragma: no cover
test = Test()
test.test1()
test.test2()