RIOT
RIOT copied to clipboard
tools/zep_dispatch: topogen: allow to pass worldfile
Contribution description
Make it a bit more straightforward to set up a simulated network by just passing the x,y positions of the nodes via a world map file.
A world map file might look like
A 5 3 10
B 10
C 20 20
Testing procedure
Run topogen -f word.2d
# Connections
A
B
C
A B 0.66 0.95
B C 0.20 0.20
A C 0.00 0.18
# Node X Y range color
# A 5 3 10 0x13174ed1
# B 10 0 25 0x13174ed1
# C 20 20 25 0x13174ed1
Issues/PRs references
Murdock results
:heavy_check_mark: PASSED
4a2e81d2196072c2611f254ff74d236e386ceea3 tools/zep_dispatch: topogen: allow to pass worldfile
| Success | Failures | Total | Runtime |
|---|---|---|---|
| 1 | 0 | 1 | 01m:22s |
Artifacts
Nice addition! Is worldfile somehow an established or well-known standard or your own invention? In any case, we'd need documentation about its format in the accompanying README.
It's just a very simple, ad-hoc format. I added the description to README.md.