mirror of
https://github.com/pim-n/road-gen.git
synced 2026-02-03 09:23:09 +01:00
update README to add segmented road example
This commit is contained in:
12
README.md
12
README.md
@ -54,10 +54,20 @@ road-gen random -l 1000 -s 10 -v 10 --save
|
|||||||
|
|
||||||
which will produce 3 files starting with the unique seed number used to generate the road.
|
which will produce 3 files starting with the unique seed number used to generate the road.
|
||||||
|
|
||||||
|
## Example - segmented road
|
||||||
|
|
||||||
|
A minimal segmented road needs, besides length $L$, step size $\Delta s$ and velocity $v$, a list of segments.
|
||||||
|
|
||||||
|
```
|
||||||
|
road-gen segments --segments straight turn_left straight turn_right --length 1000 --ds 10 --velocity 10
|
||||||
|
```
|
||||||
|
|
||||||
|
The parameter $\alpha$ represents the concentration factor for the [Dirichlet distribution](https://numpy.org/doc/2.0/reference/random/generated/numpy.random.dirichlet.html).
|
||||||
|
|
||||||
## Reproducability
|
## Reproducability
|
||||||
|
|
||||||
You can reproduce results by adding a seed with the `--seed` flag.
|
You can reproduce results by adding a seed with the `--seed` flag.
|
||||||
|
|
||||||
## Other
|
## Other
|
||||||
|
|
||||||
For more info, just see `road-gen --help` or `road-gen random --help`.
|
For more info, see `road-gen --help` or `road-gen random --help`.
|
||||||
Reference in New Issue
Block a user