Skip to content

Commit

Permalink
add result
Browse files Browse the repository at this point in the history
  • Loading branch information
Jermmy committed Apr 15, 2018
1 parent 60c651f commit 2714985
Show file tree
Hide file tree
Showing 15 changed files with 392 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -99,3 +99,4 @@ ENV/

# mypy
.mypy_cache/

4 changes: 4 additions & 0 deletions .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions .idea/modules.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 13 additions & 0 deletions .idea/rapidly_exploring_random_tree.iml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

356 changes: 356 additions & 0 deletions .idea/workspace.xml

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# rapidly_exploring_random_tree
A simple implementation of Rapidly Exploring Random Tree using python3. Visualization is dependent on OpenCV3.

![result](result.gif)

### Reference

[Rapidly Exploring Random Tree (RRT) Path Planning](http://coecsl.ece.illinois.edu/ge423/spring13/RickRekoskeAvoid/rrt.html)
Binary file added data/rrt_20.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added data/rrt_30.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added data/rrt_35.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added data/rrt_smooth.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added data/rrt_start.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added data/rrt_unsmooth.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added result.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions src/rrt.py
Original file line number Diff line number Diff line change
Expand Up @@ -285,9 +285,9 @@ def obstacles_2(height, width):
goal_threshold = 20
max_iter, smooth_iter = 1000, 20
param = Param(width, height, border_size, max_iter, goal_threshold, smooth_iter)
p_start = np.array([100, 100], dtype=np.int32)
p_start = np.array([20, 20], dtype=np.int32)
p_goal = np.array([190, 190], dtype=np.int32)
obj_coord = obstacles_2(height, width)
obj_coord = obstacles_1(height, width)
rob = Rob(p_start, 2)
obst = []
for coord in obj_coord:
Expand Down

0 comments on commit 2714985

Please sign in to comment.