forked from AtsushiSakai/PythonRobotics
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
35ea4b9
commit afbcdfc
Showing
1 changed file
with
9 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,27 @@ | ||
import os | ||
import sys | ||
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: | ||
except ImportError: | ||
raise | ||
|
||
print(__file__) | ||
|
||
|
||
class Test(TestCase): | ||
|
||
def test1(self): | ||
class TestDynamicWindowApproach(TestCase): | ||
def test_main1(self): | ||
m.show_animation = False | ||
m.main(gx=1.0, gy=1.0) | ||
|
||
def test2(self): | ||
def test_main2(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() | ||
test = TestDynamicWindowApproach() | ||
test.test_main1() | ||
test.test_main2() |