Files
PythonRobotics/tests/test_dynamic_window_approach.py
2019-10-16 19:24:37 +03:00

29 lines
555 B
Python

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