Skip to content

Commit e86aa2a

Browse files
committed
code clean up
1 parent 0272f3a commit e86aa2a

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

PathPlanning/RRT/simple_rrt.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ def __init__(self, start, goal, obstacleList,
3939
self.obstacleList = obstacleList
4040

4141
def Planning(self, animation=True):
42-
u"""
42+
"""
4343
Pathplanning
4444
4545
animation: flag for animation on or off
@@ -71,6 +71,7 @@ def Planning(self, animation=True):
7171
continue
7272

7373
self.nodeList.append(newNode)
74+
print("nNodelist:", len(self.nodeList))
7475

7576
# check goal
7677
dx = newNode.x - self.end.x
@@ -94,7 +95,7 @@ def Planning(self, animation=True):
9495
return path
9596

9697
def DrawGraph(self, rnd=None):
97-
u"""
98+
"""
9899
Draw Graph
99100
"""
100101
plt.clf()
@@ -133,7 +134,7 @@ def __CollisionCheck(self, node, obstacleList):
133134

134135

135136
class Node():
136-
u"""
137+
"""
137138
RRT Node
138139
"""
139140

@@ -144,7 +145,7 @@ def __init__(self, x, y):
144145

145146

146147
def main():
147-
print("start RRT path planning")
148+
print("start simple RRT path planning")
148149

149150
# ====Search Path with RRT====
150151
obstacleList = [

0 commit comments

Comments
 (0)