mirror of
https://github.com/AtsushiSakai/PythonRobotics.git
synced 2026-01-14 09:08:01 -05:00
add error handling
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user