Skip to content

Commit

Permalink
Adding documentation for the new function
Browse files Browse the repository at this point in the history
  • Loading branch information
bernatx authored and bernatx committed Nov 5, 2021
1 parent 328cfca commit 5864183
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions PythonAPI/docs/world.yml
Original file line number Diff line number Diff line change
Expand Up @@ -660,6 +660,16 @@
note: >
Should be set before pedestrians are spawned.
# --------------------------------------
- def_name: set_pedestrians_seed
params:
- param_name: seed
type: int
doc: >
Sets the seed to use for any random number generated in relation to pedestrians.
note: >
Should be set before pedestrians are spawned.
If you want to repeat the same exact bodies (blueprint) for each pedestrian, then use the same seed in the Python code (where the blueprint is choosen randomly) and here, otherwise the pedestrians will repeat the same paths but the bodies will be different.
# --------------------------------------
- def_name: __str__
return:
string
Expand Down

0 comments on commit 5864183

Please sign in to comment.