update RRT

This commit is contained in:
zhm-real
2020-08-03 11:39:34 -07:00
parent db149a2d63
commit d80b0fe19a
4 changed files with 2 additions and 2 deletions
Binary file not shown.

Before

Width:  |  Height:  |  Size: 255 KiB

After

Width:  |  Height:  |  Size: 191 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 482 KiB

+2 -2
View File
@@ -102,11 +102,11 @@ def main():
x_start = (2, 2) # Starting node x_start = (2, 2) # Starting node
x_goal = (49, 24) # Goal node x_goal = (49, 24) # Goal node
rrt = Rrt(x_start, x_goal, 0.5, 0.03, 5000) rrt = Rrt(x_start, x_goal, 0.5, 0.00, 10000)
path = rrt.planning() path = rrt.planning()
if path: if path:
rrt.plotting.animation(rrt.vertex, path, "Goal-bias RRT", True) rrt.plotting.animation(rrt.vertex, path, "RRT", True)
else: else:
print("No Path Found!") print("No Path Found!")