mirror of
https://github.com/AtsushiSakai/PythonRobotics.git
synced 2026-04-22 03:00:22 -04:00
Remove PathLen in informed RRT* and instead with cBest
This commit is contained in:
@@ -40,7 +40,6 @@ class InformedRRTStar:
|
||||
self.node_list = [self.start]
|
||||
# max length we expect to find in our 'informed' sample space, starts as infinite
|
||||
cBest = float('inf')
|
||||
pathLen = float('inf')
|
||||
solutionSet = set()
|
||||
path = None
|
||||
|
||||
@@ -89,7 +88,7 @@ class InformedRRTStar:
|
||||
lastIndex = len(self.node_list) - 1
|
||||
tempPath = self.get_final_course(lastIndex)
|
||||
tempPathLen = self.get_path_len(tempPath)
|
||||
if tempPathLen < pathLen:
|
||||
if tempPathLen < cBest:
|
||||
path = tempPath
|
||||
cBest = tempPathLen
|
||||
|
||||
|
||||
Reference in New Issue
Block a user