Sobol sampler implemented (#413)

This commit is contained in:
Rafael Rojas
2021-01-10 05:26:40 +01:00
committed by GitHub
parent d5ce0351b6
commit 44142564cc
4 changed files with 1212 additions and 0 deletions

View File

@@ -0,0 +1,30 @@
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()