This commit is contained in:
AtsushiSakai
2017-05-22 16:20:21 -07:00
parent d40d79864a
commit 839ef345f0
2 changed files with 11 additions and 3 deletions

View File

@@ -44,8 +44,17 @@ This script is a path planning code with RRT \*
Path planning for a car robot with RRT and dubins path planner.
## RRTStarCar
![PythonRobotics/figure_1.png at master · AtsushiSakai/PythonRobotics](https://github.com/AtsushiSakai/PythonRobotics/blob/master/scripts/PathPlanning/RRTStarCar/animation.gif)
Path planning for a car robot with RRT\* and ducings path planner.
## Dubins path planning
A sample code for Dubins path planning.
[Dubins path - Wikipedia](https://en.wikipedia.org/wiki/Dubins_path)

View File

@@ -60,10 +60,9 @@ class RRT():
self.nodeList.append(newNode)
self.rewire(newNode, nearinds)
if animation:
if animation and i % 5 == 0:
self.DrawGraph(rnd=rnd)
if i % 5 == 0:
matplotrecorder.save_frame() # save each frame
matplotrecorder.save_frame() # save each frame
# generate coruse
lastIndex = self.get_best_last_index()