add error handling

This commit is contained in:
Atsushi Sakai
2018-02-19 12:26:44 -08:00
parent 976bcb6b7d
commit 3d49cd1a4d

View File

@@ -66,6 +66,10 @@ class RRT():
# generate coruse
lastIndex = self.get_best_last_index()
# print(lastIndex)
if lastIndex is None:
return None
path = self.gen_final_course(lastIndex)
return path