mirror of
https://github.com/zhm-real/PathPlanning.git
synced 2026-08-29 08:34:46 +08:00
update RRT
This commit is contained in:
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 |
Binary file not shown.
@@ -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!")
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user