This commit is contained in:
zhm-real
2020-07-28 00:48:51 -07:00
parent 36249933db
commit ffa911e80c
21 changed files with 417 additions and 72 deletions
+1 -1
View File
@@ -199,7 +199,7 @@ def steer(initparams, x, y):
return xnew
def cost(initparams, x):
'''here use the additive recursive cost function'''
'''here use the additive recursive Cost function'''
if x == initparams.x0:
return 0
return cost(initparams, initparams.Parent[x]) + getDist(x, initparams.Parent[x])