We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4264bde commit ae32cb3Copy full SHA for ae32cb3
PathPlanning/RRT/rrt.py
@@ -74,7 +74,7 @@ def planning(self, animation=True):
74
if animation and i % 5 == 0:
75
self.draw_graph(rnd_node)
76
77
- if self.calc_dist_to_goal(new_node.x, new_node.y) <= self.expand_dis:
+ if self.calc_dist_to_goal(self.node_list[-1].x, self.node_list[-1].y) <= self.expand_dis:
78
print("Goal!!")
79
return self.generate_final_course(len(self.node_list) - 1)
80
0 commit comments