mirror of
https://github.com/AtsushiSakai/PythonRobotics.git
synced 2026-01-13 23:37:56 -05:00
fix rrt star reeds shepp rewire and test
This commit is contained in:
@@ -1,7 +1,9 @@
|
||||
from unittest import TestCase
|
||||
from PathPlanning.DubinsPath import dubins_path_planning
|
||||
|
||||
import numpy as np
|
||||
|
||||
from PathPlanning.DubinsPath import dubins_path_planning
|
||||
|
||||
|
||||
class Test(TestCase):
|
||||
|
||||
@@ -19,8 +21,8 @@ class Test(TestCase):
|
||||
px, py, pyaw, mode, clen = dubins_path_planning.dubins_path_planning(
|
||||
start_x, start_y, start_yaw, end_x, end_y, end_yaw, curvature)
|
||||
|
||||
assert(abs(px[-1] - end_x) <= 0.1)
|
||||
assert(abs(py[-1] - end_y) <= 0.1)
|
||||
assert (abs(px[-1] - end_x) <= 0.5)
|
||||
assert (abs(py[-1] - end_y) <= 0.5)
|
||||
assert(abs(pyaw[-1] - end_yaw) <= 0.1)
|
||||
|
||||
def test2(self):
|
||||
|
||||
Reference in New Issue
Block a user