Skip to content

Commit

Permalink
Update README and examples
Browse files Browse the repository at this point in the history
  • Loading branch information
eholum committed Mar 23, 2024
1 parent be9a25b commit c66dcd1
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Currently has rough cut versions of both `RRT` and `RRT*`, as well as a basic Ha
Includes [an example](examples/world_example.rs) using a planar world with geometric obstacles built with the [Geo](https://crates.io/crates/geo) crate.
The library will attempt to find a path using either RRT or RRT* and plot the result using [Plotly](https://crates.io/crates/plotly).

To run regular RRT,
To run regular RRT and return as soon as a path is found:
```
cargo run --example world_example -- 1.0 1.0 99.0 99.0 false
```
Expand All @@ -20,3 +20,10 @@ To run RRT*,
cargo run --example world_example -- 1.0 1.0 99.0 99.0 true
```
![alt text](examples/rrt_star_sample.png)

Or you can optionally specify a timeout to continue sampling to converge towards the optimal path,

```
cargo run --example world_example -- 1.0 1.0 99.0 99.0 true 10.0
```
![alt text](examples/rrt_star_optimal_sample.png)
Binary file modified examples/rrt_sample.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 examples/rrt_star_optimal_sample.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 modified examples/rrt_star_sample.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit c66dcd1

Please sign in to comment.