Crates.io | rtt |
lib.rs | rtt |
version | 0.4.4 |
source | src |
created_at | 2018-05-06 09:32:30.815254 |
updated_at | 2018-05-16 22:54:08.951664 |
description | Rapidly-Exploring random trees path planning algorithm. |
homepage | https://github.com/swizard0/rtt |
repository | https://github.com/swizard0/rtt |
max_upload_size | |
id | 63975 |
size | 24,881 |
Randomized data structure that is designed for a broad class of path planning problems.
Visualizer: rtt-demo
Theory:
rtt
is a Rust crate with a very abstract algorithm implementation. Everything outside of raw algorithm (sampling, memory management, nearest node search etc) is left to library user.
Several useful data structures and helpers are available in rtt::util
module for your convenience, such as:
Vec
Result<T, !>
typeTry the example yourself:
% cargo run --example rect_maze
Maze of 15 rows and 24 cols, start: (1, 3), finish: (8, 2)
Path planned in 2707 iterations:
###############
# ++ # ++++##########
# + # + +++++ #
# + # + ###+ #####
# +++# + # + #
# +++++ # + #
# # # + #
############### + #
#++ # +++++ #
#+ # +++##########
#+++ # + #
# + #++++ #
# + #+ #
# ++++++ #
###############