Skip to content

Commit 3e5cad8

Browse files
fix indentation
1 parent 178dca3 commit 3e5cad8

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

PathPlanning/InformedRRTStar/informed_rrt_star.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -85,13 +85,13 @@ def informed_rrt_star_search(self, animation=True):
8585

8686
if self.is_near_goal(newNode):
8787
if self.check_segment_collision(newNode.x, newNode.y, self.goal.x , self.goal.y):
88-
solutionSet.add(newNode)
89-
lastIndex = len(self.node_list) - 1
90-
tempPath = self.get_final_course(lastIndex)
91-
tempPathLen = self.get_path_len(tempPath)
92-
if tempPathLen < pathLen:
93-
path = tempPath
94-
cBest = tempPathLen
88+
solutionSet.add(newNode)
89+
lastIndex = len(self.node_list) - 1
90+
tempPath = self.get_final_course(lastIndex)
91+
tempPathLen = self.get_path_len(tempPath)
92+
if tempPathLen < pathLen:
93+
path = tempPath
94+
cBest = tempPathLen
9595

9696
if animation:
9797
self.draw_graph(xCenter=xCenter,

0 commit comments

Comments
 (0)