Skip to content

Commit 592c1ce

Browse files
committed
fix test and add test for EKF
1 parent 92cb693 commit 592c1ce

2 files changed

Lines changed: 14 additions & 0 deletions

File tree

PathPlanning/RRTStarReedsShepp/rrt_star_reeds_shepp.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,8 @@ def Planning(self, animation=True):
6565

6666
# generate coruse
6767
lastIndex = self.get_best_last_index()
68+
if lastIndex is None:
69+
return None
6870
path = self.gen_final_course(lastIndex)
6971
return path
7072

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
from unittest import TestCase
2+
3+
from Localization.extended_kalman_filter import extended_kalman_filter as m
4+
5+
print(__file__)
6+
7+
8+
class Test(TestCase):
9+
10+
def test1(self):
11+
m.show_animation = False
12+
m.main()

0 commit comments

Comments
 (0)