Files
PythonRobotics/tests/test_rrt_with_sobol_sampler.py
2021-01-10 13:26:40 +09:00

31 lines
554 B
Python

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